Mesh¶
-
class
pmeshlab.Mesh¶ -
__init__(self: pmeshlab.Mesh, vertex_matrix: numpy.ndarray[numpy.float32[m, 3]] = array([], shape=(0, 3), dtype=float32), face_matrix: numpy.ndarray[numpy.int32[m, 3]] = array([], shape=(0, 3), dtype=int32), v_normals_matrix: numpy.ndarray[numpy.float32[m, 3]] = array([], shape=(0, 3), dtype=float32), f_normals_matrix: numpy.ndarray[numpy.float32[m, 3]] = array([], shape=(0, 3), dtype=float32)) → 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
MissingCompactnessExceptionif the array is not compact. Raises aMissingComponentExceptionif 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
MissingCompactnessExceptionif 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
MissingCompactnessExceptionif the array is not compact.
-
face_number(self: pmeshlab.Mesh) → int¶ Returns the number of faces of the mesh.
-
face_quality_matrix(self: pmeshlab.Mesh) → numpy.ndarray[numpy.float32[m, 1]]¶ Returns the face quality matrix of the mesh as a numpy array. Raises a
MissingCompactnessExceptionif the array is not compact. Raises aMissingComponentExceptionif the mesh has no face quality component.
-
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
MissingCompactnessExceptionif 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
MissingCompactnessExceptionif the array is not compact.
-
vertex_number(self: pmeshlab.Mesh) → int¶ Returns the number of vertices of the mesh.
-
vertex_quality_matrix(self: pmeshlab.Mesh) → numpy.ndarray[numpy.float32[m, 1]]¶ Returns the vertex quality matrix of the mesh as a numpy array. Raises a
MissingCompactnessExceptionif the array is not compact. Raises aMissingComponentExceptionif the mesh has no vertex quality component.
-
vertex_tex_coord_matrix(self: pmeshlab.Mesh) → numpy.ndarray[numpy.float64[m, n]]¶ Returns the vertex quality matrix of the mesh as a numpy array. Raises a
MissingCompactnessExceptionif the array is not compact. Raises aMissingComponentExceptionif the mesh has no vertex quality component.
-