Mesh

class pmeshlab.Mesh
__init__(self: pmeshlab.Mesh, vertex_matrix: numpy.ndarray[numpy.float64[m, 3]] = array([], shape=(0, 3), dtype=float64), face_matrix: numpy.ndarray[numpy.int32[m, 3]] = array([], shape=(0, 3), dtype=int32), v_normals_matrix: numpy.ndarray[numpy.float64[m, 3]] = array([], shape=(0, 3), dtype=float64), f_normals_matrix: numpy.ndarray[numpy.float64[m, 3]] = array([], shape=(0, 3), dtype=float64)) → None

Creates a mesh containing the data passed as input. If no data is passed as argument, an empty mesh will be created.

bounding_box(self: pmeshlab.Mesh) → pmeshlab.BoundingBox

Returns the bounding box of the mesh.

compact(self: pmeshlab.Mesh) → None

Compacts all the arrays of the mesh.

edge_number(self: pmeshlab.Mesh) → int

Returns the number of edges of the mesh.

face_face_adjacency_matrix(self: pmeshlab.Mesh) → numpy.ndarray[numpy.int32[m, n]]

Returns face-to-face adjacency matrix of the mesh as a numpy array. Raises a MissingCompactnessException if the array is not compact. Raises a MissingComponentException if the mesh has no face-to-face adjacency component.

face_matrix(self: pmeshlab.Mesh) → numpy.ndarray[numpy.int32[m, n]]

Returns the face matrix of the mesh as a numpy array. Raises a MissingCompactnessException if the array is not compact.

face_normal_matrix(self: pmeshlab.Mesh) → numpy.ndarray[numpy.float64[m, n]]

Returns the face normal matrix of the mesh as a numpy array. Raises a MissingCompactnessException if the array is not compact.

face_number(self: pmeshlab.Mesh) → int

Returns the number of faces of the mesh.

face_quality_array(self: pmeshlab.Mesh) → numpy.ndarray[numpy.float64[m, 1]]

Returns the face quality array of the mesh as a numpy array. Raises a MissingCompactnessException if the array is not compact. Raises a MissingComponentException if the mesh has no face quality component.

face_scalar_attribute_array(self: pmeshlab.Mesh, arg0: str) → numpy.ndarray[numpy.float64[m, 1]]

Returns a numpy array containing the scalar values of the given user defined attribute name associated to the faces of the mesh. Raisesa a PyMeshLabException if the given name does not represent a face scalar attribute in the mesh.

face_vector_attribute_matrix(self: pmeshlab.Mesh, arg0: str) → numpy.ndarray[numpy.float64[m, 3]]

Returns a numpy matrix containing the vector values of the given user defined attribute name associated to the faces of the mesh. Raisesa a PyMeshLabException if the given name does not represent a face vector attribute in the mesh.

is_compact(self: pmeshlab.Mesh) → bool

Returns true if all its arrays are compact.

selected_face_number(self: pmeshlab.Mesh) → int

Returns the number of selected faces of the mesh.

selected_vertex_number(self: pmeshlab.Mesh) → int

Returns the number of selected vertices of the mesh.

update_bounding_box(self: pmeshlab.Mesh) → None

Updates the bounding box of the mesh.

update_topology(self: pmeshlab.Mesh) → None

Updates the topology of the mesh.

vertex_matrix(self: pmeshlab.Mesh) → numpy.ndarray[numpy.float64[m, n]]

Returns the vertex matrix of the mesh as a numpy array. Raises a MissingCompactnessException if the array is not compact.

vertex_normal_matrix(self: pmeshlab.Mesh) → numpy.ndarray[numpy.float64[m, n]]

Returns the vertex normal matrix of the mesh as a numpy array. Raises a MissingCompactnessException if the array is not compact.

vertex_number(self: pmeshlab.Mesh) → int

Returns the number of vertices of the mesh.

vertex_quality_array(self: pmeshlab.Mesh) → numpy.ndarray[numpy.float64[m, 1]]

Returns the vertex quality array of the mesh as a numpy array. Raises a MissingCompactnessException if the array is not compact. Raises a MissingComponentException if the mesh has no vertex quality component.

vertex_scalar_attribute_array(self: pmeshlab.Mesh, arg0: str) → numpy.ndarray[numpy.float64[m, 1]]

Returns a numpy array containing the scalar values of the given user defined attribute name associated to the vertices of the mesh. Raisesa a PyMeshLabException if the given name does not represent a vertex scalar attribute in the mesh.

vertex_tex_coord_matrix(self: pmeshlab.Mesh) → numpy.ndarray[numpy.float64[m, n]]

Returns the vertex quality array of the mesh as a numpy array. Raises a MissingCompactnessException if the array is not compact. Raises a MissingComponentException if the mesh has no vertex quality component.

vertex_vector_attribute_matrix(self: pmeshlab.Mesh, arg0: str) → numpy.ndarray[numpy.float64[m, 3]]

Returns a numpy matrix containing the vector values of the given user defined attribute name associated to the vertices of the mesh. Raisesa a PyMeshLabException if the given name does not represent a vertex vector attribute in the mesh.