def convert_to_vertex_attribute(mesh, attr): """ Convert attribute ``attr`` from either per-face or per-voxel attribute into per-vertex attribute. Args: mesh (:py:class:`Mesh`): Input mesh. attr (``numpy.ndarray``): #vertices by k matrix of floats. Returns: Per-vertex attribute. The value at a vertex will be the average of the values at its neighboring faces or voxels. """ return PyMesh.convert_to_vertex_attribute(mesh.raw_mesh, attr)
def convert_to_vertex_attribute(mesh, attr): """ Convert attribute ``attr`` from either per-face or per-voxel attribute into per-vertex attribute. Args: mesh (:py:class:`Mesh`): Input mesh. attr (``numpy.ndarray``): #vertices by k matrix of floats. Returns: Per-vertex attribute. The value at a vertex will be the average of the values at its neighboring faces or voxels. """ return PyMesh.convert_to_vertex_attribute(mesh.raw_mesh, attr);
def convert_to_vertex_attribute(mesh, attr): return PyMesh.convert_to_vertex_attribute(mesh.raw_mesh, attr)