Esempio n. 1
0
def convert_to_face_attribute(mesh, attr):
    """ Convert attribute ``attr`` from either per-vertex or per-voxel attribute
    into per-face attribute.

    Args:
        mesh (:py:class:`Mesh`): Input mesh.
        attr (``numpy.ndarray``): #faces by k matrix of floats.

    Returns:
        Per-face attribute. The value at a face will be the average of
        the values at its neighboring vertices or its neighboring voxels.
    """
    return PyMesh.convert_to_face_attribute(mesh.raw_mesh, attr)
Esempio n. 2
0
def convert_to_face_attribute(mesh, attr):
    """ Convert attribute ``attr`` from either per-vertex or per-voxel attribute
    into per-face attribute.

    Args:
        mesh (:py:class:`Mesh`): Input mesh.
        attr (``numpy.ndarray``): #faces by k matrix of floats.

    Returns:
        Per-face attribute. The value at a face will be the average of
        the values at its neighboring vertices or its neighboring voxels.
    """
    return PyMesh.convert_to_face_attribute(mesh.raw_mesh, attr);
Esempio n. 3
0
def convert_to_face_attribute(mesh, attr):
    return PyMesh.convert_to_face_attribute(mesh.raw_mesh, attr)