pymeshlab API Reference
Full documentation for pymeshlab (Standard Library / Native)
pymeshlab.BoundingBox
Python Library Documentation: class BoundingBox in module pymeshlab.pmeshlab class BoundingBox(pybind11_builtins.pybind11_object) | Method resolution order: | BoundingBox | pybind11_builtins.pybind11_object | builtins.object | | Methods defined here: | | __init__(...) | __init__(self: pymeshlab.pmeshlab.BoundingBox) -> None | | Creates an invalid Bounding Box (min: [1,1,1], max:[-1,-1,-1]). | | center(...) | center(self: pymeshlab.pmeshlab.BoundingBox) -> numpy.ndarray[numpy.float64[3, 1]] | | Returns the center point coordinate of the Bounding Box. | | diagonal(...) | diagonal(self: pymeshlab.pmeshlab.BoundingBox) -> float | | Returns the diagonal of the Bounding Box. | | dim_x(...) | dim_x(self: pymeshlab.pmeshlab.BoundingBox) -> float | | Returns the X size of the Bounding Box. | | dim_y(...) | dim_y(self: pymeshlab.pmeshlab.BoundingBox) -> float | | Returns the Y size of the Bounding Box. | | dim_z(...) | dim_z(self: pymeshlab.pmeshlab.BoundingBox) -> float | | Returns the Z size of the Bounding Box. | | max(...) | max(self: pymeshlab.pmeshlab.BoundingBox) -> numpy.ndarray[numpy.float64[3, 1]] | | Returns the max coordinate of the Bounding Box. | | min(...) | min(self: pymeshlab.pmeshlab.BoundingBox) -> numpy.ndarray[numpy.float64[3, 1]] | | Returns the min coordinate of the Bounding Box. | | ---------------------------------------------------------------------- | Static methods inherited from pybind11_builtins.pybind11_object: | | __new__(*args, **kwargs) class method of pybind11_builtins.pybind11_object | Create and return a new object. See help(type) for accurate signature.
pymeshlab.Color
Python Library Documentation: class Color in module pymeshlab.pmeshlab class Color(pybind11_builtins.pybind11_object) | Method resolution order: | Color | pybind11_builtins.pybind11_object | builtins.object | | Methods defined here: | | __init__(...) | __init__(*args, **kwargs) | Overloaded function. | | 1. __init__(self: pymeshlab.pmeshlab.Color, r: int, g: int, b: int) -> None | | Constructs a color with the int RGB values r, g, b, and the alpha-channel (transparency) value of 255. | | 2. __init__(self: pymeshlab.pmeshlab.Color, r: int, g: int, b: int, a: int) -> None | | Constructs a color with the int RGB values r, g, b, and the alpha-channel (transparency) value of a. | | alpha(...) | alpha(self: pymeshlab.pmeshlab.Color) -> int | | Returns the alpha color component of this color as integer. | | alpha_f(...) | alpha_f(self: pymeshlab.pmeshlab.Color) -> float | | Returns the alpha color component of this color as float. | | blue(...) | blue(self: pymeshlab.pmeshlab.Color) -> int | | Returns the blue color component of this color as integer. | | blue_f(...) | blue_f(self: pymeshlab.pmeshlab.Color) -> float | | Returns the blue color component of this color as float. | | green(...) | green(self: pymeshlab.pmeshlab.Color) -> int | | Returns the green color component of this color as integer. | | green_f(...) | green_f(self: pymeshlab.pmeshlab.Color) -> float | | Returns the green color component of this color as float. | | red(...) | red(self: pymeshlab.pmeshlab.Color) -> int | | Returns the red color component of this color as integer. | | red_f(...) | red_f(self: pymeshlab.pmeshlab.Color) -> float | | Returns the red color component of this color as float. | | set_alpha(...) | set_alpha(self: pymeshlab.pmeshlab.Color, a: int) -> None | | Sets the alpha color component of this color to a. Integer components are specified in the range 0-255. | | set_alpha_f(...) | set_alpha_f(self: pymeshlab.pmeshlab.Color, a: float) -> None | | Sets the alpha color component of this color to a. Integer components are specified in the range 0-255. | | set_blue(...) | set_blue(self: pymeshlab.pmeshlab.Color, b: int) -> None | | Sets the blue color component of this color to b. Integer components are specified in the range 0-255. | | set_blue_f(...) | set_blue_f(self: pymeshlab.pmeshlab.Color, b: float) -> None | | Sets the blue color component of this color to b. Float components are specified in the range 0-1. | | set_green(...) | set_green(self: pymeshlab.pmeshlab.Color, g: int) -> None | | Sets the green color component of this color to g. Integer components are specified in the range 0-255. | | set_green_f(...) | set_green_f(self: pymeshlab.pmeshlab.Color, g: float) -> None | | Sets the green color component of this color to g. Float components are specified in the range 0-1. | | set_red(...) | set_red(self: pymeshlab.pmeshlab.Color, r: int) -> None | | Sets the red color component of this color to r. Integer components are specified in the range 0-255. | | set_red_f(...) | set_red_f(self: pymeshlab.pmeshlab.Color, r: float) -> None | | Sets the red color component of this color to r. Float components are specified in the range 0-1. | | to_array3(...) | to_array3(self: pymeshlab.pmeshlab.Color) -> numpy.ndarray[numpy.int32[3, 1]] | | Returns a numpy array of 3 integers containing the rgb components of this color. | | to_array3f(...) | to_array3f(self: pymeshlab.pmeshlab.Color) -> numpy.ndarray[numpy.float32[3, 1]] | | Returns a numpy array of 3 floats containing the rgb components of this color. | | to_array4(...) | to_array4(self: pymeshlab.pmeshlab.Color) -> numpy.ndarray[numpy.int32[4, 1]] | | Returns a numpy array of 4 integers containing the rgba components of this color. | | to_array4f(...) | to_array4f(self: pymeshlab.pmeshlab.Color) -> numpy.ndarray[numpy.float32[4, 1]] | | Returns a numpy array of 4 floats containing the rgba components of this color. | | ---------------------------------------------------------------------- | Static methods inherited from pybind11_builtins.pybind11_object: | | __new__(*args, **kwargs) class method of pybind11_builtins.pybind11_object | Create and return a new object. See help(type) for accurate signature.
pymeshlab.Image
Python Library Documentation: class Image in module pymeshlab.pmeshlab class Image(pybind11_builtins.pybind11_object) | Method resolution order: | Image | pybind11_builtins.pybind11_object | builtins.object | | Methods defined here: | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | height(...) | height(self: pymeshlab.pmeshlab.Image) -> int | | save(...) | save(self: pymeshlab.pmeshlab.Image, file_name: str, quality: int = -1) -> None | | Save the image to the given filename, deducing automatically the format from the file name, and with a given quality with default value -1 (default setting of the save process). Formats are the same supported by the QImage class. See the `QImage<https://doc.qt.io/qt-5/qimage.html#save>`_ documentation for more details. | | width(...) | width(self: pymeshlab.pmeshlab.Image) -> int | | ---------------------------------------------------------------------- | Static methods inherited from pybind11_builtins.pybind11_object: | | __new__(*args, **kwargs) class method of pybind11_builtins.pybind11_object | Create and return a new object. See help(type) for accurate signature.
pymeshlab.InvalidEnumException
Python Library Documentation: class InvalidEnumException in module pymeshlab.pmeshlab class InvalidEnumException(builtins.Exception) | Exception raised when an invalid enum value is used as argument of a filter. | | Method resolution order: | InvalidEnumException | builtins.Exception | builtins.BaseException | builtins.object | | Data descriptors defined here: | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Methods inherited from builtins.Exception: | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Static methods inherited from builtins.Exception: | | __new__(*args, **kwargs) class method of builtins.Exception | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from builtins.BaseException: | | __getattribute__(self, name, /) | Return getattr(self, name). | | __reduce__(...) | Helper for pickle. | | __repr__(self, /) | Return repr(self). | | __setstate__(...) | | __str__(self, /) | Return str(self). | | add_note(...) | Exception.add_note(note) -- | add a note to the exception | | with_traceback(...) | Exception.with_traceback(tb) -- | set self.__traceback__ to tb and return self. | | ---------------------------------------------------------------------- | Data descriptors inherited from builtins.BaseException: | | __cause__ | exception cause | | __context__ | exception context | | __dict__ | | __suppress_context__ | | __traceback__ | | args
pymeshlab.InvalidPercentageException
Python Library Documentation: class InvalidPercentageException in module pymeshlab.pmeshlab class InvalidPercentageException(builtins.Exception) | Exception raised when an invalid value (not between 0 and 100) is set in a :py:class:`Percentage` object. | | Method resolution order: | InvalidPercentageException | builtins.Exception | builtins.BaseException | builtins.object | | Data descriptors defined here: | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Methods inherited from builtins.Exception: | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Static methods inherited from builtins.Exception: | | __new__(*args, **kwargs) class method of builtins.Exception | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from builtins.BaseException: | | __getattribute__(self, name, /) | Return getattr(self, name). | | __reduce__(...) | Helper for pickle. | | __repr__(self, /) | Return repr(self). | | __setstate__(...) | | __str__(self, /) | Return str(self). | | add_note(...) | Exception.add_note(note) -- | add a note to the exception | | with_traceback(...) | Exception.with_traceback(tb) -- | set self.__traceback__ to tb and return self. | | ---------------------------------------------------------------------- | Data descriptors inherited from builtins.BaseException: | | __cause__ | exception cause | | __context__ | exception context | | __dict__ | | __suppress_context__ | | __traceback__ | | args
pymeshlab.Mesh
Python Library Documentation: class Mesh in module pymeshlab.pmeshlab class Mesh(pybind11_builtins.pybind11_object) | Method resolution order: | Mesh | pybind11_builtins.pybind11_object | builtins.object | | Methods defined here: | | __init__(...) | __init__(*args, **kwargs) | Overloaded function. | | 1. __init__(self: pymeshlab.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), edge_matrix: numpy.ndarray[numpy.int32[m, 2]] = array([], shape=(0, 2), 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), v_scalar_array: numpy.ndarray[numpy.float64[m, 1]] = array([], dtype=float64), f_scalar_array: numpy.ndarray[numpy.float64[m, 1]] = array([], dtype=float64), v_color_matrix: numpy.ndarray[numpy.float64[m, 4]] = array([], shape=(0, 4), dtype=float64), f_color_matrix: numpy.ndarray[numpy.float64[m, 4]] = array([], shape=(0, 4), dtype=float64), v_tex_coords_matrix: numpy.ndarray[numpy.float64[m, 2]] = array([], shape=(0, 2), dtype=float64), w_tex_coords_matrix: numpy.ndarray[numpy.float64[m, 2]] = array([], shape=(0, 2), 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. Color matrices have four columns (RGBA) and values are floats in the range [0-1]. Values outside this range will result in undefined behaviour. Wedge texture coordinates must be a matrix of NF*3 rows ant two columns (a texture coordinate for each edge of each triangle of the mesh). | | 2. __init__(self: pymeshlab.pmeshlab.Mesh, vertex_matrix: numpy.ndarray[numpy.float64[m, 3]], face_list_of_indices: list[numpy.ndarray[numpy.uint32[m, 1]]], 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), v_scalar_array: numpy.ndarray[numpy.float64[m, 1]] = array([], dtype=float64), f_scalar_array: numpy.ndarray[numpy.float64[m, 1]] = array([], dtype=float64), v_color_matrix: numpy.ndarray[numpy.float64[m, 4]] = array([], shape=(0, 4), dtype=float64), f_color_matrix: numpy.ndarray[numpy.float64[m, 4]] = array([], shape=(0, 4), dtype=float64), v_tex_coords_matrix: numpy.ndarray[numpy.float64[m, 2]] = array([], shape=(0, 2), dtype=float64)) -> None | | Creates a polygon mesh containing the data passed as input. At least a numpy array of vertices and a list of numpy arrays of face indices is required. Since MeshLab and PyMeshLab can store only triangle meshes, the newly created mesh is actually a triangle mesh with some edges that are marked as 'faux'. This constructor creates a custom per face scalar attribute called `poly_birth_faces` that stores, for each face of the newly created mesh, the index of the polygonal mesh that generated it.Color matrices have four columns (RGBA) and values are floats in the range [0-1]. Values outside this range will result in undefined behaviour. | | add_face_custom_point_attribute(...) | add_face_custom_point_attribute(self: pymeshlab.pmeshlab.Mesh, attribute_values: numpy.ndarray[numpy.float64[m, 3]], attribute_name: str) -> None | | Adds a new user defined 3D point attribute associated to the faces of the mesh. Takes as input numpy array of vectors having 3 columns and the number of rows equal to the number of faces of the mesh, and the name of the new attribute. Raises a :py:exc:`MissingCompactnessException` if the mesh is not compact. Raises a :py:exc:`PyMeshLabException` if the given array has not the correct sizes, or if the mesh already contains a face vector attribute with the given name. | | add_face_custom_scalar_attribute(...) | add_face_custom_scalar_attribute(self: pymeshlab.pmeshlab.Mesh, attribute_values: numpy.ndarray[numpy.float64[m, 1]], attribute_name: str) -> None | | Adds a new user defined scalar attribute associated to the faces of the mesh. Takes as input numpy array of scalar having the same size of the number of faces of the mesh, and the name of the new attribute. Raises a :py:exc:`MissingCompactnessException` if the mesh is not compact. Raises a :py:exc:`PyMeshLabException` if the given array has a different size from the face number of the mesh, or if the mesh already contains a face scalar attribute with the given name. | | add_vertex_custom_point_attribute(...) | add_vertex_custom_point_attribute(self: pymeshlab.pmeshlab.Mesh, attribute_values: numpy.ndarray[numpy.float64[m, 3]], attribute_name: str) -> None | | Adds a new user defined 3D point attribute associated to the vertices of the mesh. Takes as input numpy array of vectors having 3 columns and the number of rows equal to the number of vertices of the mesh, and the name of the new attribute. Raises a :py:exc:`MissingCompactnessException` if the mesh is not compact. Raises a :py:exc:`PyMeshLabException` if the given array has not the correct sizes, or if the mesh already contains a vertex vector attribute with the given name. | | add_vertex_custom_scalar_attribute(...) | add_vertex_custom_scalar_attribute(self: pymeshlab.pmeshlab.Mesh, attribute_values: numpy.ndarray[numpy.float64[m, 1]], attribute_name: str) -> None | | Adds a new user defined scalar attribute associated to the vertices of the mesh. Takes as input numpy array of scalar having the same size of the number of vertices of the mesh, and the name of the new attribute. Raises a :py:exc:`MissingCompactnessException` if the mesh is not compact. Raises a :py:exc:`PyMeshLabException` if the given array has a different size from the vertex number of the mesh, or if the mesh already contains a vertex scalar attribute with the given name. | | bounding_box(...) | bounding_box(self: pymeshlab.pmeshlab.Mesh) -> pymeshlab.pmeshlab.BoundingBox | | Returns the bounding box of the mesh. | | compact(...) | compact(self: pymeshlab.pmeshlab.Mesh) -> None | | Compacts all the arrays of the mesh. | | edge_matrix(...) | edge_matrix(self: pymeshlab.pmeshlab.Mesh) -> numpy.ndarray[numpy.int32[m, 2]] | | Returns the edge matrix of the mesh as a numpy array, which is a #E*2 matrix of vertex indices. Raises a :py:exc:`MissingCompactnessException` if the mesh is not compact. **Note**: The Edge Matrix, in VCGLib, MeshLab and PyMeshLab is not related and has nothing to do withthe Mesh Faces. Edges are used to store polylines or simple collections of edges that are unrelated with faces. Some filters that generate Edges in PyMeshLab are `generate_polyline_from_planar_section` and `generate_polyline_from_selection_perimeter`. | | edge_number(...) | edge_number(self: pymeshlab.pmeshlab.Mesh) -> int | | Returns the number of edges of the mesh. | | face_color_array(...) | face_color_array(self: pymeshlab.pmeshlab.Mesh) -> numpy.ndarray[numpy.uint32[m, 1]] | | Returns the face color array as a numpy array, which is a #F array of unsigned integers, each value is the ARGB packed in a 32bit unsigned int (8 bits per component). Raises a :py:exc:`MissingCompactnessException` if the mesh is not compact. Raises a :py:exc:`MissingComponentException` if the mesh has no face color component. | | face_color_matrix(...) | face_color_matrix(self: pymeshlab.pmeshlab.Mesh) -> numpy.ndarray[numpy.float64[m, 4]] | | Returns the face color matrix as a numpy array, which is a #V*4 matrix of floats, each component (RGBA) is in the interval [0, 1]. Raises a :py:exc:`MissingCompactnessException` if the mesh is not compact. Raises a :py:exc:`MissingComponentException` if the mesh has no face color component. | | face_curvature_principal_dir1_matrix(...) | face_curvature_principal_dir1_matrix(self: pymeshlab.pmeshlab.Mesh) -> numpy.ndarray[numpy.float64[m, 3]] | | Returns the face curvature - principal direction 1 matrix of the mesh as a numpy array. Raises a :py:exc:`MissingCompactnessException` if the mesh is not compact. Raises a :py:exc:`MissingComponentException` if the mesh has no face curvature component. | | face_curvature_principal_dir2_matrix(...) | face_curvature_principal_dir2_matrix(self: pymeshlab.pmeshlab.Mesh) -> numpy.ndarray[numpy.float64[m, 3]] | | Returns the face curvature - principal direction 2 matrix of the mesh as a numpy array. Raises a :py:exc:`MissingCompactnessException` if the mesh is not compact. Raises a :py:exc:`MissingComponentException` if the mesh has no face curvature component. | | face_custom_point_attribute_matrix(...) | face_custom_point_attribute_matrix(self: pymeshlab.pmeshlab.Mesh, arg0: str) -> numpy.ndarray[numpy.float64[m, 3]] | | Returns a numpy matrix containing the 3D point values of the given user defined attribute name associated to the faces of the mesh. Raises a :py:exc:`MissingCompactnessException` if the mesh is not compact. Raises a :py:exc:`PyMeshLabException` if the given name does not represent a face vector attribute in the mesh. | | face_custom_scalar_attribute_array(...) | face_custom_scalar_attribute_array(self: pymeshlab.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. Raises a :py:exc:`MissingCompactnessException` if the mesh is not compact. Raises a :py:exc:`PyMeshLabException` if the given name does not represent a face scalar attribute in the mesh. | | face_face_adjacency_matrix(...) | face_face_adjacency_matrix(self: pymeshlab.pmeshlab.Mesh) -> numpy.ndarray[numpy.int32[m, 3]] | | Returns face-to-face adjacency matrix of the mesh as a numpy array. Raises a :py:exc:`MissingCompactnessException` if the mesh is not compact. Raises a :py:exc:`MissingComponentException` if the mesh has no face-to-face adjacency component. | | face_matrix(...) | face_matrix(self: pymeshlab.pmeshlab.Mesh) -> numpy.ndarray[numpy.int32[m, 3]] | | Returns the face matrix of the mesh as a numpy array, which is a #F*3 matrix of vertex indices. Raises a :py:exc:`MissingCompactnessException` if the mesh is not compact. | | face_normal_matrix(...) | face_normal_matrix(self: pymeshlab.pmeshlab.Mesh) -> numpy.ndarray[numpy.float64[m, 3]] | | Returns the face normal matrix of the mesh as a numpy array, which is a #F*3 matrix of face normals. Raises a :py:exc:`MissingCompactnessException` if the mesh is not compact. | | face_number(...) | face_number(self: pymeshlab.pmeshlab.Mesh) -> int | | Returns the number of faces of the mesh. | | face_scalar_array(...) | face_scalar_array(self: pymeshlab.pmeshlab.Mesh) -> numpy.ndarray[numpy.float64[m, 1]] | | Returns the face scalar array of the mesh as a numpy array, which is a #F array of floats. Raises a :py:exc:`MissingCompactnessException` if the mesh is not compact. Raises a :py:exc:`MissingComponentException` if the mesh has no face quality component. | | face_selection_array(...) | face_selection_array(self: pymeshlab.pmeshlab.Mesh) -> numpy.ndarray[bool[m, 1]] | | Returns the face selection array of the mesh as a numpy array,which is a #F array of booleans (true if the corresponding face is selected, false otherwise). Raises a :py:exc:`MissingCompactnessException` if the mesh is not compact. | | has_face_color(...) | has_face_color(self: pymeshlab.pmeshlab.Mesh) -> bool | | Returns true if the mesh has the face color component, false otherwise. | | has_face_scalar(...) | has_face_scalar(self: pymeshlab.pmeshlab.Mesh) -> bool | | Returns true if the mesh has the face scalar component, false otherwise. | | has_vertex_color(...) | has_vertex_color(self: pymeshlab.pmeshlab.Mesh) -> bool | | Returns true if the mesh has the vertex color component, false otherwise. | | has_vertex_scalar(...) | has_vertex_scalar(self: pymeshlab.pmeshlab.Mesh) -> bool | | Returns true if the mesh has the vertex scalar component, false otherwise. | | has_vertex_tex_coord(...) | has_vertex_tex_coord(self: pymeshlab.pmeshlab.Mesh) -> bool | | Returns true if the mesh has the vertex texture coordinate component, false otherwise. | | has_wedge_tex_coord(...) | has_wedge_tex_coord(self: pymeshlab.pmeshlab.Mesh) -> bool | | Returns true if the mesh has the wedge texture coordinate component, false otherwise. | | id(...) | id(self: pymeshlab.pmeshlab.Mesh) -> int | | Returns the id of the mesh into a MeshSet. If the Mesh is not part of a MeshSet, the returned value is -1. | | is_compact(...) | is_compact(self: pymeshlab.pmeshlab.Mesh) -> bool | | Returns true if all its arrays are compact. | | is_point_cloud(...) | is_point_cloud(self: pymeshlab.pmeshlab.Mesh) -> bool | | Returns true if the mesh has no faces (it is a point cloud) | | is_visible(...) | is_visible(self: pymeshlab.pmeshlab.Mesh) -> bool | | Returns a boolean indicating whether the mesh is marked as visible or not. | | label(...) | label(self: pymeshlab.pmeshlab.Mesh) -> str | | Returns a the label associated to the Mesh. | | polygonal_face_list(...) | polygonal_face_list(self: pymeshlab.pmeshlab.Mesh) -> list[numpy.ndarray[numpy.uint32[m, 1]]] | | Returns a list of numpy arrays. Each numpy array contains the vertex indices composing the ith polygonal face. Raises a :py:exc:`MissingCompactnessException` if the mesh is not compact. | | selected_face_number(...) | selected_face_number(self: pymeshlab.pmeshlab.Mesh) -> int | | Returns the number of selected faces of the mesh. | | selected_vertex_number(...) | selected_vertex_number(self: pymeshlab.pmeshlab.Mesh) -> int | | Returns the number of selected vertices of the mesh. | | set_label(...) | set_label(self: pymeshlab.pmeshlab.Mesh, arg0: str) -> None | | Sets the label associated to the mesh. | | texture(...) | texture(*args, **kwargs) | Overloaded function. | | 1. texture(self: pymeshlab.pmeshlab.Mesh, arg0: int) -> pymeshlab.pmeshlab.Image | | Returns the texture of the Mesh at the given index. | | 2. texture(self: pymeshlab.pmeshlab.Mesh, arg0: str) -> pymeshlab.pmeshlab.Image | | Returns the texture of the Mesh with the given name. | | texture_number(...) | texture_number(self: pymeshlab.pmeshlab.Mesh) -> int | | Returns the number of textures contained in the mesh. | | textures(...) | textures(self: pymeshlab.pmeshlab.Mesh) -> dict[str, pymeshlab.pmeshlab.Image] | | Returns a dictionary with the texture names as keys and the texture images of the mesh as values. | | transform_matrix(...) | transform_matrix(self: pymeshlab.pmeshlab.Mesh) -> numpy.ndarray[numpy.float64[4, 4]] | | Returns the 4x4 transform matrix associated to the mesh. | | transformed_vertex_matrix(...) | transformed_vertex_matrix(self: pymeshlab.pmeshlab.Mesh) -> numpy.ndarray[numpy.float64[m, 3]] | | Returns the vertex matrix of the mesh as a numpy array, which is a #V*3 matrix of vertex coordinates. Coordinates are transformed w.r.t. the transformation matrix of the mesh. Raises a :py:exc:`MissingCompactnessException` if the mesh is not compact. | | update_bounding_box(...) | update_bounding_box(self: pymeshlab.pmeshlab.Mesh) -> None | | Updates the bounding box of the mesh. | | update_topology(...) | update_topology(self: pymeshlab.pmeshlab.Mesh) -> None | | Updates the topology of the mesh. | | vertex_color_array(...) | vertex_color_array(self: pymeshlab.pmeshlab.Mesh) -> numpy.ndarray[numpy.uint32[m, 1]] | | Returns the vertex color array as a numpy array, which is a #V array of unsigned integers, each value is the ARGB packed in a 32bit unsigned int (8 bits per component).Raises a :py:exc:`MissingCompactnessException` if the mesh is not compact. | | vertex_color_matrix(...) | vertex_color_matrix(self: pymeshlab.pmeshlab.Mesh) -> numpy.ndarray[numpy.float64[m, 4]] | | Returns the vertex color matrix as a numpy array, which is a #V*4 matrix of floats, each component (RGBA) is in the interval [0, 1]. Raises a :py:exc:`MissingCompactnessException` if the mesh is not compact. | | vertex_curvature_principal_dir1_matrix(...) | vertex_curvature_principal_dir1_matrix(self: pymeshlab.pmeshlab.Mesh) -> numpy.ndarray[numpy.float64[m, 3]] | | Returns the vertex curvature - principal direction 1 matrix of the mesh as a numpy array. Raises a :py:exc:`MissingCompactnessException` if the mesh is not compact. Raises a :py:exc:`MissingComponentException` if the mesh has no vertex curvature component. | | vertex_curvature_principal_dir2_matrix(...) | vertex_curvature_principal_dir2_matrix(self: pymeshlab.pmeshlab.Mesh) -> numpy.ndarray[numpy.float64[m, 3]] | | Returns the vertex curvature - principal direction 2 matrix of the mesh as a numpy array. Raises a :py:exc:`MissingCompactnessException` if the mesh is not compact. Raises a :py:exc:`MissingComponentException` if the mesh has no vertex curvature component. | | vertex_custom_point_attribute_matrix(...) | vertex_custom_point_attribute_matrix(self: pymeshlab.pmeshlab.Mesh, arg0: str) -> numpy.ndarray[numpy.float64[m, 3]] | | Returns a numpy matrix containing the 3D point values of the given user defined attribute name associated to the vertices of the mesh. Raises a :py:exc:`MissingCompactnessException` if the mesh is not compact. Raises a :py:exc:`PyMeshLabException` if the given name does not represent a vertex vector attribute in the mesh. | | vertex_custom_scalar_attribute_array(...) | vertex_custom_scalar_attribute_array(self: pymeshlab.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. Raises a :py:exc:`MissingCompactnessException` if the mesh is not compact. Raises a :py:exc:`PyMeshLabException` if the given name does not represent a vertex scalar attribute in the mesh. | | vertex_matrix(...) | vertex_matrix(self: pymeshlab.pmeshlab.Mesh) -> numpy.ndarray[numpy.float64[m, 3]] | | Returns the vertex matrix of the mesh as a numpy array, which is a #V*3 matrix of vertex coordinates. Raises a :py:exc:`MissingCompactnessException` if the mesh is not compact. | | vertex_normal_matrix(...) | vertex_normal_matrix(self: pymeshlab.pmeshlab.Mesh) -> numpy.ndarray[numpy.float64[m, 3]] | | Returns the vertex normal matrix of the mesh as a numpy array, which is a #V*3 matrix of vertex normals. Raises a :py:exc:`MissingCompactnessException` if the mesh is not compact. | | vertex_number(...) | vertex_number(self: pymeshlab.pmeshlab.Mesh) -> int | | Returns the number of vertices of the mesh. | | vertex_scalar_array(...) | vertex_scalar_array(self: pymeshlab.pmeshlab.Mesh) -> numpy.ndarray[numpy.float64[m, 1]] | | Returns the vertex scalar array of the mesh as a numpy array, which is a #V array of floats. Raises a :py:exc:`MissingCompactnessException` if the mesh is not compact. Raises a :py:exc:`MissingComponentException` if the mesh has no vertex quality component. | | vertex_selection_array(...) | vertex_selection_array(self: pymeshlab.pmeshlab.Mesh) -> numpy.ndarray[bool[m, 1]] | | Returns the vertex selection array of the mesh as a numpy array, which is a #V array of booleans (true if the corresponding vertex is selected, false otherwise). Raises a :py:exc:`MissingCompactnessException` if the mesh is not compact. | | vertex_tex_coord_matrix(...) | vertex_tex_coord_matrix(self: pymeshlab.pmeshlab.Mesh) -> numpy.ndarray[numpy.float64[m, 2]] | | Returns the vertex texcoord matrix of the mesh as a numpy array, which is a #V*2 matrix of uv texture coordinates. Raises a :py:exc:`MissingCompactnessException` if the mesh is not compact. Raises a :py:exc:`MissingComponentException` if the mesh has no per-wedge tex coordinates component. | | wedge_tex_coord_matrix(...) | wedge_tex_coord_matrix(self: pymeshlab.pmeshlab.Mesh) -> numpy.ndarray[numpy.float64[m, 2]] | | Returns the per-wedge texcoord matrix of the mesh as a numpy array, which is a #(F*3)*2 matrix of uv texture coordinates (triplets of wedges texcoords for each face). Raises a :py:exc:`MissingCompactnessException` if the mesh is not compact. Raises a :py:exc:`MissingComponentException` if the mesh has no vertex tex coordinates component. | | ---------------------------------------------------------------------- | Static methods inherited from pybind11_builtins.pybind11_object: | | __new__(*args, **kwargs) class method of pybind11_builtins.pybind11_object | Create and return a new object. See help(type) for accurate signature.
pymeshlab.MeshSet
Python Library Documentation: class MeshSet in module pymeshlab.pmeshlab class MeshSet(pybind11_builtins.pybind11_object) | Method resolution order: | MeshSet | pybind11_builtins.pybind11_object | builtins.object | | Methods defined here: | | __getitem__(...) | __getitem__(self: pymeshlab.pmeshlab.MeshSet, id: int) -> pymeshlab.pmeshlab.Mesh | | Returns a reference to the mesh having the given id in the MeshSet. Raises a :py:exc:`PyMeshLabException` if the given ID is not found in the MeshSet. | | __init__(...) | __init__(self: pymeshlab.pmeshlab.MeshSet, verbose: bool = False) -> None | | Initializes a MeshSet, setting the verbosity with the given value (default is ``False``). | | __iter__(...) | __iter__(self: pymeshlab.pmeshlab.MeshSet) -> Iterator[pymeshlab.pmeshlab.Mesh] | | __len__(...) | __len__(self: pymeshlab.pmeshlab.MeshSet) -> int | | **This function is deprecated.** Returns the number of meshes contained in the MeshSet. | | __str__(...) | __str__(self: pymeshlab.pmeshlab.MeshSet) -> None | | Prints the status of the MeshSet (number of meshes, and for every mesh its ID, its label and its full name.) | | add_mesh(...) | add_mesh(self: pymeshlab.pmeshlab.MeshSet, mesh: pymeshlab.pmeshlab.Mesh, mesh_name: str = '', set_as_current: bool = True) -> None | | Adds a **copy** of the given mesh in the current MeshSet, with the given name. By default, the added mesh will be set as the current mesh. This behaviour can be changed by setting the arg ``set_as_current`` to ``False``. If the name argument is left empty, the newly added mesh will have the same name of the mesh argument. | | apply_cameras_extrinsics_transformation(self, **kwargs) from pymeshlab.bind_function.<locals> | | apply_cameras_rotation(self, **kwargs) from pymeshlab.bind_function.<locals> | | apply_cameras_scaling(self, **kwargs) from pymeshlab.bind_function.<locals> | | apply_cameras_translation(self, **kwargs) from pymeshlab.bind_function.<locals> | | apply_color_brightness_contrast_gamma_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals> | | apply_color_desaturation_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals> | | apply_color_equalization_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals> | | apply_color_intensity_colourisation_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals> | | apply_color_inverse_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals> | | apply_color_laplacian_smoothing_per_face(self, **kwargs) from pymeshlab.bind_function.<locals> | | apply_color_laplacian_smoothing_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals> | | apply_color_level_adjustment_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals> | | apply_color_noising_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals> | | apply_color_thresholding_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals> | | apply_color_unsharp_mask_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals> | | apply_color_white_balance_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals> | | apply_coord_craters_from_point_cloud(self, **kwargs) from pymeshlab.bind_function.<locals> | | apply_coord_cubic_stylization(self, **kwargs) from pymeshlab.bind_function.<locals> | | apply_coord_depth_smoothing(self, **kwargs) from pymeshlab.bind_function.<locals> | | apply_coord_developability_of_mesh(self, **kwargs) from pymeshlab.bind_function.<locals> | | apply_coord_directional_preservation(self, **kwargs) from pymeshlab.bind_function.<locals> | | apply_coord_fractal_displacement(self, **kwargs) from pymeshlab.bind_function.<locals> | | apply_coord_hc_laplacian_smoothing(self, **kwargs) from pymeshlab.bind_function.<locals> | | apply_coord_laplacian_smoothing(self, **kwargs) from pymeshlab.bind_function.<locals> | | apply_coord_laplacian_smoothing_scale_dependent(self, **kwargs) from pymeshlab.bind_function.<locals> | | apply_coord_laplacian_smoothing_surface_preserving(self, **kwargs) from pymeshlab.bind_function.<locals> | | apply_coord_point_cloud_movement_over_mesh(self, **kwargs) from pymeshlab.bind_function.<locals> | | apply_coord_random_displacement(self, **kwargs) from pymeshlab.bind_function.<locals> | | apply_coord_taubin_smoothing(self, **kwargs) from pymeshlab.bind_function.<locals> | | apply_coord_two_steps_smoothing(self, **kwargs) from pymeshlab.bind_function.<locals> | | apply_coord_unsharp_mask(self, **kwargs) from pymeshlab.bind_function.<locals> | | apply_filter(...) | apply_filter(self: pymeshlab.pmeshlab.MeshSet, filter_name: str, **kwargs) -> dict | | Applies the filter having the given filter name in the MeshSet. Updates the current filter script, pushing the applied filter with the given parameters. Returns a dictionary containing pairs of [string - value] returned by the applied filter. See the :ref:`filter_list` page to a list of all the possible filters that can be applied using this function. | | apply_filter_script(...) | apply_filter_script(self: pymeshlab.pmeshlab.MeshSet) -> None | | Applies all the filters currently present in the filter script. | | apply_matrix_flip_or_swap_axis(self, **kwargs) from pymeshlab.bind_function.<locals> | | apply_matrix_freeze(self, **kwargs) from pymeshlab.bind_function.<locals> | | apply_matrix_inverse(self, **kwargs) from pymeshlab.bind_function.<locals> | | apply_normal_normalization_per_face(self, **kwargs) from pymeshlab.bind_function.<locals> | | apply_normal_normalization_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals> | | apply_normal_point_cloud_smoothing(self, **kwargs) from pymeshlab.bind_function.<locals> | | apply_normal_smoothing_per_face(self, **kwargs) from pymeshlab.bind_function.<locals> | | apply_normal_unsharp_mask_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals> | | apply_scalar_clamping_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals> | | apply_scalar_saturation_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals> | | apply_scalar_smoothing_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals> | | apply_scalar_unsharp_mask_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals> | | apply_selection_by_same_connected_component(self, **kwargs) from pymeshlab.bind_function.<locals> | | apply_selection_dilatation(self, **kwargs) from pymeshlab.bind_function.<locals> | | apply_selection_erosion(self, **kwargs) from pymeshlab.bind_function.<locals> | | apply_selection_inverse(self, **kwargs) from pymeshlab.bind_function.<locals> | | apply_texcoord_merge_per_wedge(self, **kwargs) from pymeshlab.bind_function.<locals> | | apply_texmap_defragmentation(self, **kwargs) from pymeshlab.bind_function.<locals> | | clear(...) | clear(self: pymeshlab.pmeshlab.MeshSet) -> None | | Clears the meshset, deleting all its content. | | clear_filter_script(...) | clear_filter_script(self: pymeshlab.pmeshlab.MeshSet) -> None | | Clears the current filter script. | | compute_color_and_texture_from_active_rasters_projection(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_color_by_conntected_component_per_face(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_color_by_function_per_face(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_color_by_function_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_color_by_point_cloud_voronoi_projection(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_color_from_active_rasters_projection(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_color_from_current_raster_projection(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_color_from_scalar_per_face(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_color_from_scalar_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_color_from_scalar_using_transfer_function_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_color_from_texture_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_color_perlin_noise_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_color_random_per_face(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_color_scattering_per_mesh(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_color_transfer_face_to_vertex(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_color_transfer_mesh_to_face(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_color_transfer_vertex_to_face(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_coord_by_function(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_coord_linear_morphing(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_curvature_and_color_apss_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_curvature_and_color_rimls_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_curvature_principal_directions_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_custom_radius_scalar_attribute_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_iso_parametrization(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_matrix_by_fitting_to_plane(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_matrix_by_icp_between_meshes(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_matrix_by_mesh_global_alignment(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_matrix_by_principal_axis(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_matrix_from_rotation(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_matrix_from_scaling_or_normalization(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_matrix_from_translation(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_matrix_from_translation_rotation_scale(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_mls_projection_apss(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_mls_projection_rimls(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_new_custom_point_attribute_per_face(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_new_custom_point_attribute_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_new_custom_scalar_attribute_per_face(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_new_custom_scalar_attribute_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_normal_by_function_per_face(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_normal_by_function_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_normal_for_point_clouds(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_normal_from_cameras_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_normal_per_face(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_normal_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_normal_polygon_mesh_per_face(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_scalar_ambient_occlusion(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_scalar_ambient_occlusion_gpu(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_scalar_by_aspect_ratio_per_face(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_scalar_by_border_distance_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_scalar_by_discrete_curvature_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_scalar_by_distance_from_another_mesh_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_scalar_by_distance_from_point_cloud_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_scalar_by_function_per_face(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_scalar_by_function_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_scalar_by_geodesic_distance_from_given_point_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_scalar_by_geodesic_distance_from_selection_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_scalar_by_heat_geodesic_distance_from_selection_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_scalar_by_scalar_harmonic_field_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_scalar_by_shape_diameter_function_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_scalar_by_shape_diameter_function_per_vertex_gpu(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_scalar_by_volumetric_obscurance(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_scalar_by_volumetric_obscurance_gpu(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_scalar_from_camera_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_scalar_from_raster_coverage_per_face(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_scalar_from_raster_coverage_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_scalar_transfer_face_to_vertex(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_scalar_transfer_vertex_to_face(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_selection_bad_faces(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_selection_by_angle_with_direction_per_face(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_selection_by_color_per_face(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_selection_by_condition_per_face(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_selection_by_condition_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_selection_by_edge_length(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_selection_by_non_manifold_edges_per_face(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_selection_by_non_manifold_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_selection_by_scalar_per_face(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_selection_by_scalar_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_selection_by_self_intersections_per_face(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_selection_by_small_disconnected_components_per_face(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_selection_by_texture_seams_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_selection_crease_per_edge(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_selection_from_mesh_border(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_selection_of_visible_convex_hull_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_selection_point_cloud_outliers(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_selection_transfer_face_to_vertex(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_selection_transfer_vertex_to_face(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_texcoord_by_function_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_texcoord_by_function_per_wedge(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_texcoord_parametrization_and_texture_from_registered_rasters(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_texcoord_parametrization_flat_plane_per_wedge(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_texcoord_parametrization_from_registered_rasters(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_texcoord_parametrization_harmonic(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_texcoord_parametrization_least_squares_conformal_maps(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_texcoord_parametrization_triangle_trivial_per_wedge(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_texcoord_transfer_vertex_to_wedge(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_texcoord_transfer_wedge_to_vertex(self, **kwargs) from pymeshlab.bind_function.<locals> | | compute_texmap_from_color(self, **kwargs) from pymeshlab.bind_function.<locals> | | create_annulus(self, **kwargs) from pymeshlab.bind_function.<locals> | | create_cone(self, **kwargs) from pymeshlab.bind_function.<locals> | | create_cube(self, **kwargs) from pymeshlab.bind_function.<locals> | | create_dodecahedron(self, **kwargs) from pymeshlab.bind_function.<locals> | | create_dodecahedron_sym(self, **kwargs) from pymeshlab.bind_function.<locals> | | create_fractal_terrain(self, **kwargs) from pymeshlab.bind_function.<locals> | | create_grid(self, **kwargs) from pymeshlab.bind_function.<locals> | | create_icosahedron(self, **kwargs) from pymeshlab.bind_function.<locals> | | create_implicit_surface(self, **kwargs) from pymeshlab.bind_function.<locals> | | create_mesh_by_grammar(self, **kwargs) from pymeshlab.bind_function.<locals> | | create_noisy_isosurface(self, **kwargs) from pymeshlab.bind_function.<locals> | | create_octahedron(self, **kwargs) from pymeshlab.bind_function.<locals> | | create_sphere(self, **kwargs) from pymeshlab.bind_function.<locals> | | create_sphere_cap(self, **kwargs) from pymeshlab.bind_function.<locals> | | create_sphere_points(self, **kwargs) from pymeshlab.bind_function.<locals> | | create_tetrahedron(self, **kwargs) from pymeshlab.bind_function.<locals> | | create_torus(self, **kwargs) from pymeshlab.bind_function.<locals> | | current_mesh(...) | current_mesh(self: pymeshlab.pmeshlab.MeshSet) -> pymeshlab.pmeshlab.Mesh | | Returns the current mesh of the MeshSet. Raises a :py:exc:`PyMeshLabException` if the MeshSet has no current mesh (zero meshes). | | current_mesh_id(...) | current_mesh_id(self: pymeshlab.pmeshlab.MeshSet) -> int | | Returns the id of the current mesh of the MeshSet. Raises a :py:exc:`PyMeshLabException` if the MeshSet has no current mesh (zero meshes). | | delete_current_mesh(self, **kwargs) from pymeshlab.bind_function.<locals> | | delete_current_raster(self, **kwargs) from pymeshlab.bind_function.<locals> | | delete_non_active_rasters(self, **kwargs) from pymeshlab.bind_function.<locals> | | delete_non_visible_meshes(self, **kwargs) from pymeshlab.bind_function.<locals> | | export_mesh_to_sketchfab(self, **kwargs) from pymeshlab.bind_function.<locals> | | filter_parameter_values(...) | filter_parameter_values(self: pymeshlab.pmeshlab.MeshSet, arg0: str, **kwargs) -> dict | | Returns a dictionary containing the parameters and their values that would be used by the given filter if the 'apply_filter' function is called in the current MeshSet. This function is useful to check which default values are set with the current status of the MeshSet. It takes also a (possibly empty) dictionary of parameters that could be set by the user: in this case, the output value of these parameters should be the same as input. This function works also for the 'save mesh' functions, just giving the format of the file as parameter instead of the filter name. This is useful for example when saving into a format that supports exporting custom parameters, which may have names that can be known only at runtime. | | generate_alpha_shape(self, **kwargs) from pymeshlab.bind_function.<locals> | | generate_alpha_wrap(self, **kwargs) from pymeshlab.bind_function.<locals> | | generate_boolean_difference(self, **kwargs) from pymeshlab.bind_function.<locals> | | generate_boolean_intersection(self, **kwargs) from pymeshlab.bind_function.<locals> | | generate_boolean_union(self, **kwargs) from pymeshlab.bind_function.<locals> | | generate_boolean_xor(self, **kwargs) from pymeshlab.bind_function.<locals> | | generate_by_merging_visible_meshes(self, **kwargs) from pymeshlab.bind_function.<locals> | | generate_convex_hull(self, **kwargs) from pymeshlab.bind_function.<locals> | | generate_copy_of_current_mesh(self, **kwargs) from pymeshlab.bind_function.<locals> | | generate_cylindrical_unwrapping(self, **kwargs) from pymeshlab.bind_function.<locals> | | generate_dust_accumulation_point_cloud(self, **kwargs) from pymeshlab.bind_function.<locals> | | generate_from_selected_faces(self, **kwargs) from pymeshlab.bind_function.<locals> | | generate_from_selected_vertices(self, **kwargs) from pymeshlab.bind_function.<locals> | | generate_iso_parametrization_atlased_mesh(self, **kwargs) from pymeshlab.bind_function.<locals> | | generate_iso_parametrization_remeshing(self, **kwargs) from pymeshlab.bind_function.<locals> | | generate_marching_cubes_apss(self, **kwargs) from pymeshlab.bind_function.<locals> | | generate_marching_cubes_rimls(self, **kwargs) from pymeshlab.bind_function.<locals> | | generate_plane_fitting_to_selection(self, **kwargs) from pymeshlab.bind_function.<locals> | | generate_polyline_from_planar_section(self, **kwargs) from pymeshlab.bind_function.<locals> | | generate_polyline_from_selected_edges(self, **kwargs) from pymeshlab.bind_function.<locals> | | generate_polyline_from_selection_perimeter(self, **kwargs) from pymeshlab.bind_function.<locals> | | generate_resampled_uniform_mesh(self, **kwargs) from pymeshlab.bind_function.<locals> | | generate_sampling_clustered_vertex(self, **kwargs) from pymeshlab.bind_function.<locals> | | generate_sampling_element(self, **kwargs) from pymeshlab.bind_function.<locals> | | generate_sampling_montecarlo(self, **kwargs) from pymeshlab.bind_function.<locals> | | generate_sampling_poisson_disk(self, **kwargs) from pymeshlab.bind_function.<locals> | | generate_sampling_regular_recursive(self, **kwargs) from pymeshlab.bind_function.<locals> | | generate_sampling_stratified_triangle(self, **kwargs) from pymeshlab.bind_function.<locals> | | generate_sampling_texel(self, **kwargs) from pymeshlab.bind_function.<locals> | | generate_sampling_volumetric(self, **kwargs) from pymeshlab.bind_function.<locals> | | generate_sampling_voronoi(self, **kwargs) from pymeshlab.bind_function.<locals> | | generate_simplified_point_cloud(self, **kwargs) from pymeshlab.bind_function.<locals> | | generate_solid_wireframe(self, **kwargs) from pymeshlab.bind_function.<locals> | | generate_splitting_by_connected_components(self, **kwargs) from pymeshlab.bind_function.<locals> | | generate_surface_reconstruction_ball_pivoting(self, **kwargs) from pymeshlab.bind_function.<locals> | | generate_surface_reconstruction_screened_poisson(self, **kwargs) from pymeshlab.bind_function.<locals> | | generate_surface_reconstruction_vcg(self, **kwargs) from pymeshlab.bind_function.<locals> | | generate_voronoi_atlas_parametrization(self, **kwargs) from pymeshlab.bind_function.<locals> | | generate_voronoi_filtering(self, **kwargs) from pymeshlab.bind_function.<locals> | | generate_voronoi_scaffolding(self, **kwargs) from pymeshlab.bind_function.<locals> | | get_area_and_perimeter_of_selection(self, **kwargs) from pymeshlab.bind_function.<locals> | | get_depth_complexity(self, **kwargs) from pymeshlab.bind_function.<locals> | | get_geometric_measures(self, **kwargs) from pymeshlab.bind_function.<locals> | | get_hausdorff_distance(self, **kwargs) from pymeshlab.bind_function.<locals> | | get_overlapping_meshes_graph(self, **kwargs) from pymeshlab.bind_function.<locals> | | get_scalar_histogram_per_face(self, **kwargs) from pymeshlab.bind_function.<locals> | | get_scalar_histogram_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals> | | get_scalar_statistics_per_face(self, **kwargs) from pymeshlab.bind_function.<locals> | | get_scalar_statistics_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals> | | get_topological_measures(self, **kwargs) from pymeshlab.bind_function.<locals> | | get_topological_measures_from_quad_mesh(self, **kwargs) from pymeshlab.bind_function.<locals> | | is_current_mesh_visible(...) | is_current_mesh_visible(self: pymeshlab.pmeshlab.MeshSet) -> bool | | Returns a boolean indicating whether the current mesh is visible or not.Raises a :py:exc:`PyMeshLabException` if the MeshSet has no current mesh (zero meshes). | | is_mesh_visible(...) | is_mesh_visible(self: pymeshlab.pmeshlab.MeshSet, id: int) -> bool | | Returns a boolean indicating whether the mesh with the given ID is visible or not.Raises a :py:exc:`PyMeshLabException` if the given ID is not found in the MeshSet. | | load_active_raster_cameras(self, **kwargs) from pymeshlab.bind_function.<locals> | | load_filter_script(...) | load_filter_script(self: pymeshlab.pmeshlab.MeshSet, filter_script_name: str) -> None | | Loads from a .mlx file the current filter script. | | load_new_mesh(...) | load_new_mesh(self: pymeshlab.pmeshlab.MeshSet, file_name: str, **kwargs) -> None | | Loads the mesh in the given filename and adds the mesh in the MeshSet. The loaded mesh becomes the current one. This method accepts a list of parameters that depends on the format of the file that is being loaded. The list of possible parameters is listed in the ::ref:`load_mesh_parameters` page. Raises a :py:exc:`PyMeshLabException` if the file is not found, if the format of the file is not known by PyMeshLab or if there was an error while loading the file. | | load_new_raster(...) | load_new_raster(self: pymeshlab.pmeshlab.MeshSet, file_name: str) -> None | | Loads the raster in the given filename and adds the raster in the MeshSet. The loaded raster becomes the current one. This method accepts a list of parameters that depends on the format of the file that is being loaded. The list of possible parameters is listed in the :ref:`load_raster_parameters` page. Raises a :py:exc:`PyMeshLabException` if the file is not found, if the format of the file is not known by PyMeshLab or if there was an error while loading the file. | | load_project(...) | load_project(self: pymeshlab.pmeshlab.MeshSet, file_name: object) -> None | | Loads a project from the given file name(s) and stores it in the MeshSet. This function can accept a string as a single filename, or a list of strings if the project is composed of more than one file. E.g. ``ms.load_project(['bundle.rd.out', 'cams.txt'])``. | | mesh(...) | mesh(self: pymeshlab.pmeshlab.MeshSet, id: int) -> pymeshlab.pmeshlab.Mesh | | Returns a reference to the mesh having the given id in the MeshSet. Raises a :py:exc:`PyMeshLabException` if the given ID is not found in the MeshSet. | | mesh_id_exists(...) | mesh_id_exists(self: pymeshlab.pmeshlab.MeshSet, id: int) -> bool | | Returns true if the given id exists in the MeshSet. | | mesh_number(...) | mesh_number(self: pymeshlab.pmeshlab.MeshSet) -> int | | Returns the number of meshes contained in the MeshSet. | | meshing_close_holes(self, **kwargs) from pymeshlab.bind_function.<locals> | | meshing_cut_along_crease_edges(self, **kwargs) from pymeshlab.bind_function.<locals> | | meshing_decimation_clustering(self, **kwargs) from pymeshlab.bind_function.<locals> | | meshing_decimation_edge_collapse_for_marching_cube_meshes(self, **kwargs) from pymeshlab.bind_function.<locals> | | meshing_decimation_quadric_edge_collapse(self, **kwargs) from pymeshlab.bind_function.<locals> | | meshing_decimation_quadric_edge_collapse_with_texture(self, **kwargs) from pymeshlab.bind_function.<locals> | | meshing_edge_flip_by_curvature_optimization(self, **kwargs) from pymeshlab.bind_function.<locals> | | meshing_edge_flip_by_planar_optimization(self, **kwargs) from pymeshlab.bind_function.<locals> | | meshing_invert_face_orientation(self, **kwargs) from pymeshlab.bind_function.<locals> | | meshing_isotropic_explicit_remeshing(self, **kwargs) from pymeshlab.bind_function.<locals> | | meshing_merge_close_vertices(self, **kwargs) from pymeshlab.bind_function.<locals> | | meshing_poly_to_tri(self, **kwargs) from pymeshlab.bind_function.<locals> | | meshing_re_orient_faces_by_geometry(self, **kwargs) from pymeshlab.bind_function.<locals> | | meshing_re_orient_faces_coherently(self, **kwargs) from pymeshlab.bind_function.<locals> | | meshing_refine_by_function(self, **kwargs) from pymeshlab.bind_function.<locals> | | meshing_remove_all_faces(self, **kwargs) from pymeshlab.bind_function.<locals> | | meshing_remove_connected_component_by_diameter(self, **kwargs) from pymeshlab.bind_function.<locals> | | meshing_remove_connected_component_by_face_number(self, **kwargs) from pymeshlab.bind_function.<locals> | | meshing_remove_duplicate_faces(self, **kwargs) from pymeshlab.bind_function.<locals> | | meshing_remove_duplicate_vertices(self, **kwargs) from pymeshlab.bind_function.<locals> | | meshing_remove_folded_faces(self, **kwargs) from pymeshlab.bind_function.<locals> | | meshing_remove_null_faces(self, **kwargs) from pymeshlab.bind_function.<locals> | | meshing_remove_selected_faces(self, **kwargs) from pymeshlab.bind_function.<locals> | | meshing_remove_selected_vertices(self, **kwargs) from pymeshlab.bind_function.<locals> | | meshing_remove_selected_vertices_and_faces(self, **kwargs) from pymeshlab.bind_function.<locals> | | meshing_remove_t_vertices(self, **kwargs) from pymeshlab.bind_function.<locals> | | meshing_remove_unreferenced_vertices(self, **kwargs) from pymeshlab.bind_function.<locals> | | meshing_remove_vertices_by_scalar(self, **kwargs) from pymeshlab.bind_function.<locals> | | meshing_repair_non_manifold_edges(self, **kwargs) from pymeshlab.bind_function.<locals> | | meshing_repair_non_manifold_vertices(self, **kwargs) from pymeshlab.bind_function.<locals> | | meshing_snap_mismatched_borders(self, **kwargs) from pymeshlab.bind_function.<locals> | | meshing_surface_subdivision_butterfly(self, **kwargs) from pymeshlab.bind_function.<locals> | | meshing_surface_subdivision_catmull_clark(self, **kwargs) from pymeshlab.bind_function.<locals> | | meshing_surface_subdivision_doo_sabin(self, **kwargs) from pymeshlab.bind_function.<locals> | | meshing_surface_subdivision_loop(self, **kwargs) from pymeshlab.bind_function.<locals> | | meshing_surface_subdivision_ls3_loop(self, **kwargs) from pymeshlab.bind_function.<locals> | | meshing_surface_subdivision_midpoint(self, **kwargs) from pymeshlab.bind_function.<locals> | | meshing_tri_to_quad_by_4_8_subdivision(self, **kwargs) from pymeshlab.bind_function.<locals> | | meshing_tri_to_quad_by_smart_triangle_pairing(self, **kwargs) from pymeshlab.bind_function.<locals> | | meshing_tri_to_quad_dominant(self, **kwargs) from pymeshlab.bind_function.<locals> | | meshing_vertex_attribute_seam(self, **kwargs) from pymeshlab.bind_function.<locals> | | number_meshes(...) | number_meshes(self: pymeshlab.pmeshlab.MeshSet) -> int | | **This function is deprecated.** Returns the number of meshes contained in the MeshSet. | | number_rasters(...) | number_rasters(self: pymeshlab.pmeshlab.MeshSet) -> int | | **This function is deprecated.** Returns the number of rasters contained in the MeshSet. | | nxs_build(self, **kwargs) from pymeshlab.bind_function.<locals> | | nxs_compress(self, **kwargs) from pymeshlab.bind_function.<locals> | | print_filter_script(...) | print_filter_script(self: pymeshlab.pmeshlab.MeshSet) -> None | | Prints all the filters present on the current filter script, with all the parameters and their values. | | print_status(...) | print_status(self: pymeshlab.pmeshlab.MeshSet) -> None | | Prints the status of the MeshSet (number of meshes, and for every mesh its ID, its label and its full name.) | | raster_alignment_mutual_information(self, **kwargs) from pymeshlab.bind_function.<locals> | | raster_global_refinement_mutual_information(self, **kwargs) from pymeshlab.bind_function.<locals> | | raster_number(...) | raster_number(self: pymeshlab.pmeshlab.MeshSet) -> int | | Returns the number of rasters contained in the MeshSet. | | save_active_raster_cameras(self, **kwargs) from pymeshlab.bind_function.<locals> | | save_current_mesh(...) | save_current_mesh(self: pymeshlab.pmeshlab.MeshSet, file_name: str, save_textures: bool = True, texture_quality: int = -1, **kwargs) -> None | | Saves the current mesh in the MeshSet in a file having the given file name. This method accepts a list of parameters that depends on the format of the file that is being saved. The list of possible parameters is listed in the :ref:`save_mesh_parameters` page. Raises a :py:exc:`PyMeshLabException` if the MeshSet has no current selected mesh, if the format of the file is not known by PyMeshLab or if there was an error while writing the file. | | save_filter_script(...) | save_filter_script(self: pymeshlab.pmeshlab.MeshSet, filter_script_name: str) -> None | | Saves in a .mlx file the current filter script. | | save_project(...) | save_project(self: pymeshlab.pmeshlab.MeshSet, file_name: str) -> None | | Saves the content of the MeshSet in a file having the given file name. | | save_snapshot(self, **kwargs) from pymeshlab.bind_function.<locals> | | set_camera_per_mesh(self, **kwargs) from pymeshlab.bind_function.<locals> | | set_camera_per_raster(self, **kwargs) from pymeshlab.bind_function.<locals> | | set_color_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals> | | set_current_mesh(...) | set_current_mesh(self: pymeshlab.pmeshlab.MeshSet, new_curr_id: int) -> None | | Selects as current mesh the mesh having the given ID. Raises a :py:exc:`PyMeshLabException` if the given ID is not found in the MeshSet. | | set_current_mesh_visibility(...) | set_current_mesh_visibility(self: pymeshlab.pmeshlab.MeshSet, visibility: bool) -> None | | Sets the visibility of the current mesh according to the given boolean argument.Raises a :py:exc:`PyMeshLabException` if the MeshSet has no current mesh (zero meshes). | | set_matrix(self, **kwargs) from pymeshlab.bind_function.<locals> | | set_matrix_identity(self, **kwargs) from pymeshlab.bind_function.<locals> | | set_mesh_name(self, **kwargs) from pymeshlab.bind_function.<locals> | | set_mesh_visibility(...) | set_mesh_visibility(self: pymeshlab.pmeshlab.MeshSet, id: int, visibility: bool) -> None | | Sets the visibility of the mesh with the given ID according to the given boolean argument.Raises a :py:exc:`PyMeshLabException` if the given ID is not found in the MeshSet. | | set_parameter_verbosity(...) | set_parameter_verbosity(self: pymeshlab.pmeshlab.MeshSet, verbosity: bool) -> None | | Sets the verbosity of the MeshSet, regarding only the print of the parameters when running afilter. When set to true, only the parameters of the filter with their values will be printed when a filter is executed. Other messages are not printed. | | set_raster_name(self, **kwargs) from pymeshlab.bind_function.<locals> | | set_selection_all(self, **kwargs) from pymeshlab.bind_function.<locals> | | set_selection_none(self, **kwargs) from pymeshlab.bind_function.<locals> | | set_texture_per_mesh(self, **kwargs) from pymeshlab.bind_function.<locals> | | set_verbosity(...) | set_verbosity(self: pymeshlab.pmeshlab.MeshSet, verbosity: bool) -> None | | Sets the verbosity when using the MeshSet class. When set to true, all the logs that usually are printed in the bottom left of MeshLab, along with other messages, are printed when filters are applied. | | show_polyscope(self) from pymeshlab.polyscope_functions | | transfer_attributes_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals> | | transfer_attributes_to_texture_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals> | | transfer_iso_parametrization_between_meshes(self, **kwargs) from pymeshlab.bind_function.<locals> | | transfer_texture_to_color_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals> | | ---------------------------------------------------------------------- | Static methods inherited from pybind11_builtins.pybind11_object: | | __new__(*args, **kwargs) class method of pybind11_builtins.pybind11_object | Create and return a new object. See help(type) for accurate signature.
pymeshlab.MissingCompactnessException
Python Library Documentation: class MissingCompactnessException in module pymeshlab.pmeshlab class MissingCompactnessException(builtins.Exception) | Exception raised when the compactness of some components of a :py:class:`Mesh` is required. Generally, a mesh is not compact when some elements have been removed. | | Method resolution order: | MissingCompactnessException | builtins.Exception | builtins.BaseException | builtins.object | | Data descriptors defined here: | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Methods inherited from builtins.Exception: | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Static methods inherited from builtins.Exception: | | __new__(*args, **kwargs) class method of builtins.Exception | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from builtins.BaseException: | | __getattribute__(self, name, /) | Return getattr(self, name). | | __reduce__(...) | Helper for pickle. | | __repr__(self, /) | Return repr(self). | | __setstate__(...) | | __str__(self, /) | Return str(self). | | add_note(...) | Exception.add_note(note) -- | add a note to the exception | | with_traceback(...) | Exception.with_traceback(tb) -- | set self.__traceback__ to tb and return self. | | ---------------------------------------------------------------------- | Data descriptors inherited from builtins.BaseException: | | __cause__ | exception cause | | __context__ | exception context | | __dict__ | | __suppress_context__ | | __traceback__ | | args
pymeshlab.MissingComponentException
Python Library Documentation: class MissingComponentException in module pymeshlab.pmeshlab class MissingComponentException(builtins.Exception) | Exception raised when a component required by a filter is missing in a :py:class:`Mesh` object. | | Method resolution order: | MissingComponentException | builtins.Exception | builtins.BaseException | builtins.object | | Data descriptors defined here: | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Methods inherited from builtins.Exception: | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Static methods inherited from builtins.Exception: | | __new__(*args, **kwargs) class method of builtins.Exception | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from builtins.BaseException: | | __getattribute__(self, name, /) | Return getattr(self, name). | | __reduce__(...) | Helper for pickle. | | __repr__(self, /) | Return repr(self). | | __setstate__(...) | | __str__(self, /) | Return str(self). | | add_note(...) | Exception.add_note(note) -- | add a note to the exception | | with_traceback(...) | Exception.with_traceback(tb) -- | set self.__traceback__ to tb and return self. | | ---------------------------------------------------------------------- | Data descriptors inherited from builtins.BaseException: | | __cause__ | exception cause | | __context__ | exception context | | __dict__ | | __suppress_context__ | | __traceback__ | | args
pymeshlab.PercentageValue
Python Library Documentation: class PercentageValue in module pymeshlab.pmeshlab class PercentageValue(pybind11_builtins.pybind11_object) | Method resolution order: | PercentageValue | pybind11_builtins.pybind11_object | builtins.object | | Methods defined here: | | __init__(...) | __init__(self: pymeshlab.pmeshlab.PercentageValue, arg0: float) -> None | | Constructor of the :py:class:`Percentage` class. Takes as input a float value between 0 and 100 (default: 0) and initializes the percentage. Raises a :py:exc:`InvalidPercentageException` if the value is not between 0 and 100. | | set_value(...) | set_value(self: pymeshlab.pmeshlab.PercentageValue, arg0: float) -> None | | Sets the value of the percentage. Raises a :py:exc:`InvalidPercentageException` if the value is not between 0 and 100. | | value(...) | value(self: pymeshlab.pmeshlab.PercentageValue) -> float | | Returns the value of the percentage [0-100]. | | ---------------------------------------------------------------------- | Static methods inherited from pybind11_builtins.pybind11_object: | | __new__(*args, **kwargs) class method of pybind11_builtins.pybind11_object | Create and return a new object. See help(type) for accurate signature.
pymeshlab.PureValue
Python Library Documentation: class PureValue in module pymeshlab.pmeshlab class PureValue(pybind11_builtins.pybind11_object) | Method resolution order: | PureValue | pybind11_builtins.pybind11_object | builtins.object | | Methods defined here: | | __init__(...) | __init__(self: pymeshlab.pmeshlab.PureValue, arg0: float) -> None | | Constructor of the :py:class:`AbsoluteValue` class. Takes as input a float value (default: 0) and initializes the absolute value. | | set_value(...) | set_value(self: pymeshlab.pmeshlab.PureValue, arg0: float) -> None | | Sets the value of the absolute value. | | value(...) | value(self: pymeshlab.pmeshlab.PureValue) -> float | | Returns the value of the absolute value. | | ---------------------------------------------------------------------- | Static methods inherited from pybind11_builtins.pybind11_object: | | __new__(*args, **kwargs) class method of pybind11_builtins.pybind11_object | Create and return a new object. See help(type) for accurate signature.
pymeshlab.PyMeshLabException
Python Library Documentation: class PyMeshLabException in module pymeshlab.pmeshlab class PyMeshLabException(builtins.Exception) | Generic PyMeshLab exception. | | Method resolution order: | PyMeshLabException | builtins.Exception | builtins.BaseException | builtins.object | | Data descriptors defined here: | | __weakref__ | list of weak references to the object | | ---------------------------------------------------------------------- | Methods inherited from builtins.Exception: | | __init__(self, /, *args, **kwargs) | Initialize self. See help(type(self)) for accurate signature. | | ---------------------------------------------------------------------- | Static methods inherited from builtins.Exception: | | __new__(*args, **kwargs) class method of builtins.Exception | Create and return a new object. See help(type) for accurate signature. | | ---------------------------------------------------------------------- | Methods inherited from builtins.BaseException: | | __getattribute__(self, name, /) | Return getattr(self, name). | | __reduce__(...) | Helper for pickle. | | __repr__(self, /) | Return repr(self). | | __setstate__(...) | | __str__(self, /) | Return str(self). | | add_note(...) | Exception.add_note(note) -- | add a note to the exception | | with_traceback(...) | Exception.with_traceback(tb) -- | set self.__traceback__ to tb and return self. | | ---------------------------------------------------------------------- | Data descriptors inherited from builtins.BaseException: | | __cause__ | exception cause | | __context__ | exception context | | __dict__ | | __suppress_context__ | | __traceback__ | | args
pymeshlab.bind_function
Python Library Documentation: function bind_function in module pymeshlab
bind_function(name)
# function that binds a name to a method of a class that calls the apply_filter function
pymeshlab.do_not_use_cpu_opengl
Python Library Documentation: function do_not_use_cpu_opengl in module pymeshlab
do_not_use_cpu_opengl()
# utility function to undo the change made by the use_cpu_opengl function
pymeshlab.filter_list
Python Library Documentation: built-in function filter_list in module pymeshlab.pmeshlab
filter_list(...) method of builtins.PyCapsule instance
filter_list() -> list[str]
Returns a list of all the (python names of the) filters that have been loaded in the current session of PyMeshLab.
pymeshlab.filter_name
Error rendering doc: No Python documentation found for 'transfer_texture_to_color_per_vertex'. Use help() to get the interactive help utility. Use help(str) for help on the str class.
pymeshlab.load_default_plugins
Python Library Documentation: built-in function load_default_plugins in module pymeshlab.pmeshlab
load_default_plugins(...) method of builtins.PyCapsule instance
load_default_plugins() -> None
Loads the set of default plugins that are shipped with pymeshlab. This function is automatically run when importing pymeshlab, and it should be called just one time per session. If called when plugins are already loaded, a :py:exc:`PyMeshLabException` will be raised.
pymeshlab.load_plugin
Python Library Documentation: built-in function load_plugin in module pymeshlab.pmeshlab
load_plugin(...) method of builtins.PyCapsule instance
load_plugin(arg0: str) -> None
Allows to load an extra plugin into PyMeshLab, given the file name of the MeshLab plugin. Throws a :py:exc:`PyMeshLabException` if the load of the plugin fails.
pymeshlab.number_plugins
Python Library Documentation: built-in function number_plugins in module pymeshlab.pmeshlab
number_plugins(...) method of builtins.PyCapsule instance
number_plugins() -> int
Returns the number of plugins loaded in the current session of PyMeshLab.
pymeshlab.os
Python Library Documentation: module os
NAME
os - OS routines for NT or Posix depending on what system we're on.
MODULE REFERENCE
https://docs.python.org/3.12/library/os.html
The following documentation is automatically generated from the Python
source files. It may be incomplete, incorrect or include features that
are considered implementation detail and may vary between Python
implementations. When in doubt, consult the module reference at the
location listed above.
DESCRIPTION
This exports:
- all functions from posix or nt, e.g. unlink, stat, etc.
- os.path is either posixpath or ntpath
- os.name is either 'posix' or 'nt'
- os.curdir is a string representing the current directory (always '.')
- os.pardir is a string representing the parent directory (always '..')
- os.sep is the (or a most common) pathname separator ('/' or '\\')
- os.extsep is the extension separator (always '.')
- os.altsep is the alternate pathname separator (None or '/')
- os.pathsep is the component separator used in $PATH etc
- os.linesep is the line separator in text files ('\r' or '\n' or '\r\n')
- os.defpath is the default search path for executables
- os.devnull is the file path of the null device ('/dev/null', etc.)
Programs that import and use 'os' stand a better chance of being
portable between different platforms. Of course, they must then
only use functions that are defined by all platforms (e.g., unlink
and opendir), and leave all pathname manipulation to os.path
(e.g., split and join).
CLASSES
builtins.Exception(builtins.BaseException)
builtins.OSError
builtins.object
nt.DirEntry
builtins.tuple(builtins.object)
nt.times_result
nt.uname_result
stat_result
statvfs_result
terminal_size
class DirEntry(builtins.object)
| Methods defined here:
|
| __fspath__(self, /)
| Returns the path for the entry.
|
| __repr__(self, /)
| Return repr(self).
|
| inode(self, /)
| Return inode of the entry; cached per entry.
|
| is_dir(self, /, *, follow_symlinks=True)
| Return True if the entry is a directory; cached per entry.
|
| is_file(self, /, *, follow_symlinks=True)
| Return True if the entry is a file; cached per entry.
|
| is_junction(self, /)
| Return True if the entry is a junction; cached per entry.
|
| is_symlink(self, /)
| Return True if the entry is a symbolic link; cached per entry.
|
| stat(self, /, *, follow_symlinks=True)
| Return stat_result object for the entry; cached per entry.
|
| ----------------------------------------------------------------------
| Class methods defined here:
|
| __class_getitem__(...)
| See PEP 585
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| name
| the entry's base filename, relative to scandir() "path" argument
|
| path
| the entry's full path name; equivalent to os.path.join(scandir_path, entry.name)
error = class OSError(Exception)
| Base class for I/O related errors.
|
| Method resolution order:
| OSError
| Exception
| BaseException
| object
|
| Built-in subclasses:
| BlockingIOError
| ChildProcessError
| ConnectionError
| FileExistsError
| ... and 7 other subclasses
|
| Methods defined here:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| __reduce__(...)
| Helper for pickle.
|
| __str__(self, /)
| Return str(self).
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| characters_written
|
| errno
| POSIX exception code
|
| filename
| exception filename
|
| filename2
| second exception filename
|
| strerror
| exception strerror
|
| winerror
| Win32 exception code
|
| ----------------------------------------------------------------------
| Methods inherited from BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class stat_result(builtins.tuple)
| stat_result(iterable=(), /)
|
| stat_result: Result from stat, fstat, or lstat.
|
| This object may be accessed either as a tuple of
| (mode, ino, dev, nlink, uid, gid, size, atime, mtime, ctime)
| or via the attributes st_mode, st_ino, st_dev, st_nlink, st_uid, and so on.
|
| Posix/windows: If your platform supports st_blksize, st_blocks, st_rdev,
| or st_flags, they are available as attributes only.
|
| See os.stat for more information.
|
| Method resolution order:
| stat_result
| builtins.tuple
| builtins.object
|
| Methods defined here:
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| st_atime
| time of last access
|
| st_atime_ns
| time of last access in nanoseconds
|
| st_birthtime
| time of creation
|
| st_birthtime_ns
| time of creation in nanoseconds
|
| st_ctime
| time of last change
|
| st_ctime_ns
| time of last change in nanoseconds
|
| st_dev
| device
|
| st_file_attributes
| Windows file attribute bits
|
| st_gid
| group ID of owner
|
| st_ino
| inode
|
| st_mode
| protection bits
|
| st_mtime
| time of last modification
|
| st_mtime_ns
| time of last modification in nanoseconds
|
| st_nlink
| number of hard links
|
| st_reparse_tag
| Windows reparse tag
|
| st_size
| total size, in bytes
|
| st_uid
| user ID of owner
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| __match_args__ = ('st_mode', 'st_ino', 'st_dev', 'st_nlink', 'st_uid',...
|
| n_fields = 20
|
| n_sequence_fields = 10
|
| n_unnamed_fields = 3
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.tuple:
|
| __add__(self, value, /)
| Return self+value.
|
| __contains__(self, key, /)
| Return bool(key in self).
|
| __eq__(self, value, /)
| Return self==value.
|
| __ge__(self, value, /)
| Return self>=value.
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __getitem__(self, key, /)
| Return self[key].
|
| __getnewargs__(self, /)
|
| __gt__(self, value, /)
| Return self>value.
|
| __hash__(self, /)
| Return hash(self).
|
| __iter__(self, /)
| Implement iter(self).
|
| __le__(self, value, /)
| Return self<=value.
|
| __len__(self, /)
| Return len(self).
|
| __lt__(self, value, /)
| Return self<value.
|
| __mul__(self, value, /)
| Return self*value.
|
| __ne__(self, value, /)
| Return self!=value.
|
| __rmul__(self, value, /)
| Return value*self.
|
| count(self, value, /)
| Return number of occurrences of value.
|
| index(self, value, start=0, stop=9223372036854775807, /)
| Return first index of value.
|
| Raises ValueError if the value is not present.
|
| ----------------------------------------------------------------------
| Class methods inherited from builtins.tuple:
|
| __class_getitem__(...)
| See PEP 585
class statvfs_result(builtins.tuple)
| statvfs_result(iterable=(), /)
|
| statvfs_result: Result from statvfs or fstatvfs.
|
| This object may be accessed either as a tuple of
| (bsize, frsize, blocks, bfree, bavail, files, ffree, favail, flag, namemax),
| or via the attributes f_bsize, f_frsize, f_blocks, f_bfree, and so on.
|
| See os.statvfs for more information.
|
| Method resolution order:
| statvfs_result
| builtins.tuple
| builtins.object
|
| Methods defined here:
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| f_bavail
|
| f_bfree
|
| f_blocks
|
| f_bsize
|
| f_favail
|
| f_ffree
|
| f_files
|
| f_flag
|
| f_frsize
|
| f_fsid
|
| f_namemax
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| __match_args__ = ('f_bsize', 'f_frsize', 'f_blocks', 'f_bfree', 'f_bav...
|
| n_fields = 11
|
| n_sequence_fields = 10
|
| n_unnamed_fields = 0
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.tuple:
|
| __add__(self, value, /)
| Return self+value.
|
| __contains__(self, key, /)
| Return bool(key in self).
|
| __eq__(self, value, /)
| Return self==value.
|
| __ge__(self, value, /)
| Return self>=value.
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __getitem__(self, key, /)
| Return self[key].
|
| __getnewargs__(self, /)
|
| __gt__(self, value, /)
| Return self>value.
|
| __hash__(self, /)
| Return hash(self).
|
| __iter__(self, /)
| Implement iter(self).
|
| __le__(self, value, /)
| Return self<=value.
|
| __len__(self, /)
| Return len(self).
|
| __lt__(self, value, /)
| Return self<value.
|
| __mul__(self, value, /)
| Return self*value.
|
| __ne__(self, value, /)
| Return self!=value.
|
| __rmul__(self, value, /)
| Return value*self.
|
| count(self, value, /)
| Return number of occurrences of value.
|
| index(self, value, start=0, stop=9223372036854775807, /)
| Return first index of value.
|
| Raises ValueError if the value is not present.
|
| ----------------------------------------------------------------------
| Class methods inherited from builtins.tuple:
|
| __class_getitem__(...)
| See PEP 585
class terminal_size(builtins.tuple)
| terminal_size(iterable=(), /)
|
| A tuple of (columns, lines) for holding terminal window size
|
| Method resolution order:
| terminal_size
| builtins.tuple
| builtins.object
|
| Methods defined here:
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| columns
| width of the terminal window in characters
|
| lines
| height of the terminal window in characters
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| __match_args__ = ('columns', 'lines')
|
| n_fields = 2
|
| n_sequence_fields = 2
|
| n_unnamed_fields = 0
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.tuple:
|
| __add__(self, value, /)
| Return self+value.
|
| __contains__(self, key, /)
| Return bool(key in self).
|
| __eq__(self, value, /)
| Return self==value.
|
| __ge__(self, value, /)
| Return self>=value.
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __getitem__(self, key, /)
| Return self[key].
|
| __getnewargs__(self, /)
|
| __gt__(self, value, /)
| Return self>value.
|
| __hash__(self, /)
| Return hash(self).
|
| __iter__(self, /)
| Implement iter(self).
|
| __le__(self, value, /)
| Return self<=value.
|
| __len__(self, /)
| Return len(self).
|
| __lt__(self, value, /)
| Return self<value.
|
| __mul__(self, value, /)
| Return self*value.
|
| __ne__(self, value, /)
| Return self!=value.
|
| __rmul__(self, value, /)
| Return value*self.
|
| count(self, value, /)
| Return number of occurrences of value.
|
| index(self, value, start=0, stop=9223372036854775807, /)
| Return first index of value.
|
| Raises ValueError if the value is not present.
|
| ----------------------------------------------------------------------
| Class methods inherited from builtins.tuple:
|
| __class_getitem__(...)
| See PEP 585
class times_result(builtins.tuple)
| times_result(iterable=(), /)
|
| times_result: Result from os.times().
|
| This object may be accessed either as a tuple of
| (user, system, children_user, children_system, elapsed),
| or via the attributes user, system, children_user, children_system,
| and elapsed.
|
| See os.times for more information.
|
| Method resolution order:
| times_result
| builtins.tuple
| builtins.object
|
| Methods defined here:
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| children_system
| system time of children
|
| children_user
| user time of children
|
| elapsed
| elapsed time since an arbitrary point in the past
|
| system
| system time
|
| user
| user time
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| __match_args__ = ('user', 'system', 'children_user', 'children_system'...
|
| n_fields = 5
|
| n_sequence_fields = 5
|
| n_unnamed_fields = 0
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.tuple:
|
| __add__(self, value, /)
| Return self+value.
|
| __contains__(self, key, /)
| Return bool(key in self).
|
| __eq__(self, value, /)
| Return self==value.
|
| __ge__(self, value, /)
| Return self>=value.
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __getitem__(self, key, /)
| Return self[key].
|
| __getnewargs__(self, /)
|
| __gt__(self, value, /)
| Return self>value.
|
| __hash__(self, /)
| Return hash(self).
|
| __iter__(self, /)
| Implement iter(self).
|
| __le__(self, value, /)
| Return self<=value.
|
| __len__(self, /)
| Return len(self).
|
| __lt__(self, value, /)
| Return self<value.
|
| __mul__(self, value, /)
| Return self*value.
|
| __ne__(self, value, /)
| Return self!=value.
|
| __rmul__(self, value, /)
| Return value*self.
|
| count(self, value, /)
| Return number of occurrences of value.
|
| index(self, value, start=0, stop=9223372036854775807, /)
| Return first index of value.
|
| Raises ValueError if the value is not present.
|
| ----------------------------------------------------------------------
| Class methods inherited from builtins.tuple:
|
| __class_getitem__(...)
| See PEP 585
class uname_result(builtins.tuple)
| uname_result(iterable=(), /)
|
| uname_result: Result from os.uname().
|
| This object may be accessed either as a tuple of
| (sysname, nodename, release, version, machine),
| or via the attributes sysname, nodename, release, version, and machine.
|
| See os.uname for more information.
|
| Method resolution order:
| uname_result
| builtins.tuple
| builtins.object
|
| Methods defined here:
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(*args, **kwargs)
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Data descriptors defined here:
|
| machine
| hardware identifier
|
| nodename
| name of machine on network (implementation-defined)
|
| release
| operating system release
|
| sysname
| operating system name
|
| version
| operating system version
|
| ----------------------------------------------------------------------
| Data and other attributes defined here:
|
| __match_args__ = ('sysname', 'nodename', 'release', 'version', 'machin...
|
| n_fields = 5
|
| n_sequence_fields = 5
|
| n_unnamed_fields = 0
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.tuple:
|
| __add__(self, value, /)
| Return self+value.
|
| __contains__(self, key, /)
| Return bool(key in self).
|
| __eq__(self, value, /)
| Return self==value.
|
| __ge__(self, value, /)
| Return self>=value.
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __getitem__(self, key, /)
| Return self[key].
|
| __getnewargs__(self, /)
|
| __gt__(self, value, /)
| Return self>value.
|
| __hash__(self, /)
| Return hash(self).
|
| __iter__(self, /)
| Implement iter(self).
|
| __le__(self, value, /)
| Return self<=value.
|
| __len__(self, /)
| Return len(self).
|
| __lt__(self, value, /)
| Return self<value.
|
| __mul__(self, value, /)
| Return self*value.
|
| __ne__(self, value, /)
| Return self!=value.
|
| __rmul__(self, value, /)
| Return value*self.
|
| count(self, value, /)
| Return number of occurrences of value.
|
| index(self, value, start=0, stop=9223372036854775807, /)
| Return first index of value.
|
| Raises ValueError if the value is not present.
|
| ----------------------------------------------------------------------
| Class methods inherited from builtins.tuple:
|
| __class_getitem__(...)
| See PEP 585
FUNCTIONS
_exit(status)
Exit to the system with specified status, without normal exit processing.
abort()
Abort the interpreter immediately.
This function 'dumps core' or otherwise fails in the hardest way possible
on the hosting operating system. This function never returns.
access(path, mode, *, dir_fd=None, effective_ids=False, follow_symlinks=True)
Use the real uid/gid to test for access to a path.
path
Path to be tested; can be string, bytes, or a path-like object.
mode
Operating-system mode bitfield. Can be F_OK to test existence,
or the inclusive-OR of R_OK, W_OK, and X_OK.
dir_fd
If not None, it should be a file descriptor open to a directory,
and path should be relative; path will then be relative to that
directory.
effective_ids
If True, access will use the effective uid/gid instead of
the real uid/gid.
follow_symlinks
If False, and the last element of the path is a symbolic link,
access will examine the symbolic link itself instead of the file
the link points to.
dir_fd, effective_ids, and follow_symlinks may not be implemented
on your platform. If they are unavailable, using them will raise a
NotImplementedError.
Note that most operations will use the effective uid/gid, therefore this
routine can be used in a suid/sgid environment to test if the invoking user
has the specified access to the path.
chdir(path)
Change the current working directory to the specified path.
path may always be specified as a string.
On some platforms, path may also be specified as an open file descriptor.
If this functionality is unavailable, using it raises an exception.
chmod(path, mode, *, dir_fd=None, follow_symlinks=True)
Change the access permissions of a file.
path
Path to be modified. May always be specified as a str, bytes, or a path-like object.
On some platforms, path may also be specified as an open file descriptor.
If this functionality is unavailable, using it raises an exception.
mode
Operating-system mode bitfield.
Be careful when using number literals for *mode*. The conventional UNIX notation for
numeric modes uses an octal base, which needs to be indicated with a ``0o`` prefix in
Python.
dir_fd
If not None, it should be a file descriptor open to a directory,
and path should be relative; path will then be relative to that
directory.
follow_symlinks
If False, and the last element of the path is a symbolic link,
chmod will modify the symbolic link itself instead of the file
the link points to.
It is an error to use dir_fd or follow_symlinks when specifying path as
an open file descriptor.
dir_fd and follow_symlinks may not be implemented on your platform.
If they are unavailable, using them will raise a NotImplementedError.
close(fd)
Close a file descriptor.
closerange(fd_low, fd_high, /)
Closes all file descriptors in [fd_low, fd_high), ignoring errors.
cpu_count()
Return the number of CPUs in the system; return None if indeterminable.
This number is not equivalent to the number of CPUs the current process can
use. The number of usable CPUs can be obtained with
``len(os.sched_getaffinity(0))``
device_encoding(fd)
Return a string describing the encoding of a terminal's file descriptor.
The file descriptor must be attached to a terminal.
If the device is not a terminal, return None.
dup(fd, /)
Return a duplicate of a file descriptor.
dup2(fd, fd2, inheritable=True)
Duplicate file descriptor.
execl(file, *args)
execl(file, *args)
Execute the executable file with argument list args, replacing the
current process.
execle(file, *args)
execle(file, *args, env)
Execute the executable file with argument list args and
environment env, replacing the current process.
execlp(file, *args)
execlp(file, *args)
Execute the executable file (which is searched for along $PATH)
with argument list args, replacing the current process.
execlpe(file, *args)
execlpe(file, *args, env)
Execute the executable file (which is searched for along $PATH)
with argument list args and environment env, replacing the current
process.
execv(path, argv, /)
Execute an executable path with arguments, replacing current process.
path
Path of executable file.
argv
Tuple or list of strings.
execve(path, argv, env)
Execute an executable path with arguments, replacing current process.
path
Path of executable file.
argv
Tuple or list of strings.
env
Dictionary of strings mapping to strings.
execvp(file, args)
execvp(file, args)
Execute the executable file (which is searched for along $PATH)
with argument list args, replacing the current process.
args may be a list or tuple of strings.
execvpe(file, args, env)
execvpe(file, args, env)
Execute the executable file (which is searched for along $PATH)
with argument list args and environment env, replacing the
current process.
args may be a list or tuple of strings.
fdopen(fd, mode='r', buffering=-1, encoding=None, *args, **kwargs)
fsdecode(filename)
Decode filename (an os.PathLike, bytes, or str) from the filesystem
encoding with 'surrogateescape' error handler, return str unchanged. On
Windows, use 'strict' error handler if the file system encoding is
'mbcs' (which is the default encoding).
fsencode(filename)
Encode filename (an os.PathLike, bytes, or str) to the filesystem
encoding with 'surrogateescape' error handler, return bytes unchanged.
On Windows, use 'strict' error handler if the file system encoding is
'mbcs' (which is the default encoding).
fspath(path)
Return the file system path representation of the object.
If the object is str or bytes, then allow it to pass through as-is. If the
object defines __fspath__(), then return the result of that method. All other
types raise a TypeError.
fstat(fd)
Perform a stat system call on the given file descriptor.
Like stat(), but for an open file descriptor.
Equivalent to os.stat(fd).
fsync(fd)
Force write of fd to disk.
ftruncate(fd, length, /)
Truncate a file, specified by file descriptor, to a specific length.
get_blocking(fd, /)
Get the blocking mode of the file descriptor.
Return False if the O_NONBLOCK flag is set, True if the flag is cleared.
get_exec_path(env=None)
Returns the sequence of directories that will be searched for the
named executable (similar to a shell) when launching a process.
*env* must be an environment variable dict or None. If *env* is None,
os.environ will be used.
get_handle_inheritable(handle, /)
Get the close-on-exe flag of the specified file descriptor.
get_inheritable(fd, /)
Get the close-on-exe flag of the specified file descriptor.
get_terminal_size(...)
Return the size of the terminal window as (columns, lines).
The optional argument fd (default standard output) specifies
which file descriptor should be queried.
If the file descriptor is not connected to a terminal, an OSError
is thrown.
This function will only be defined if an implementation is
available for this system.
shutil.get_terminal_size is the high-level function which should
normally be used, os.get_terminal_size is the low-level implementation.
getcwd()
Return a unicode string representing the current working directory.
getcwdb()
Return a bytes string representing the current working directory.
getenv(key, default=None)
Get an environment variable, return None if it doesn't exist.
The optional second argument can specify an alternate default.
key, default and the result are str.
getlogin()
Return the actual login name.
getpid()
Return the current process id.
getppid()
Return the parent's process id.
If the parent process has already exited, Windows machines will still
return its id; others systems will return the id of the 'init' process (1).
isatty(fd, /)
Return True if the fd is connected to a terminal.
Return True if the file descriptor is an open file descriptor
connected to the slave end of a terminal.
kill(pid, signal, /)
Kill a process with a signal.
link(src, dst, *, src_dir_fd=None, dst_dir_fd=None, follow_symlinks=True)
Create a hard link to a file.
If either src_dir_fd or dst_dir_fd is not None, it should be a file
descriptor open to a directory, and the respective path string (src or dst)
should be relative; the path will then be relative to that directory.
If follow_symlinks is False, and the last element of src is a symbolic
link, link will create a link to the symbolic link itself instead of the
file the link points to.
src_dir_fd, dst_dir_fd, and follow_symlinks may not be implemented on your
platform. If they are unavailable, using them will raise a
NotImplementedError.
listdir(path=None)
Return a list containing the names of the files in the directory.
path can be specified as either str, bytes, or a path-like object. If path is bytes,
the filenames returned will also be bytes; in all other circumstances
the filenames returned will be str.
If path is None, uses the path='.'.
On some platforms, path may also be specified as an open file descriptor;\
the file descriptor must refer to a directory.
If this functionality is unavailable, using it raises NotImplementedError.
The list is in arbitrary order. It does not include the special
entries '.' and '..' even if they are present in the directory.
listdrives()
Return a list containing the names of drives in the system.
A drive name typically looks like 'C:\\'.
listmounts(volume)
Return a list containing mount points for a particular volume.
'volume' should be a GUID path as returned from os.listvolumes.
listvolumes()
Return a list containing the volumes in the system.
Volumes are typically represented as a GUID path.
lseek(fd, position, whence, /)
Set the position of a file descriptor. Return the new position.
fd
An open file descriptor, as returned by os.open().
position
Position, interpreted relative to 'whence'.
whence
The relative position to seek from. Valid values are:
- SEEK_SET: seek from the start of the file.
- SEEK_CUR: seek from the current file position.
- SEEK_END: seek from the end of the file.
The return value is the number of bytes relative to the beginning of the file.
lstat(path, *, dir_fd=None)
Perform a stat system call on the given path, without following symbolic links.
Like stat(), but do not follow symbolic links.
Equivalent to stat(path, follow_symlinks=False).
makedirs(name, mode=511, exist_ok=False)
makedirs(name [, mode=0o777][, exist_ok=False])
Super-mkdir; create a leaf directory and all intermediate ones. Works like
mkdir, except that any intermediate path segment (not just the rightmost)
will be created if it does not exist. If the target directory already
exists, raise an OSError if exist_ok is False. Otherwise no exception is
raised. This is recursive.
mkdir(path, mode=511, *, dir_fd=None)
Create a directory.
If dir_fd is not None, it should be a file descriptor open to a directory,
and path should be relative; path will then be relative to that directory.
dir_fd may not be implemented on your platform.
If it is unavailable, using it will raise a NotImplementedError.
The mode argument is ignored on Windows. Where it is used, the current umask
value is first masked out.
open(path, flags, mode=511, *, dir_fd=None)
Open a file for low level IO. Returns a file descriptor (integer).
If dir_fd is not None, it should be a file descriptor open to a directory,
and path should be relative; path will then be relative to that directory.
dir_fd may not be implemented on your platform.
If it is unavailable, using it will raise a NotImplementedError.
pipe()
Create a pipe.
Returns a tuple of two file descriptors:
(read_fd, write_fd)
popen(cmd, mode='r', buffering=-1)
putenv(name, value, /)
Change or add an environment variable.
read(fd, length, /)
Read from a file descriptor. Returns a bytes object.
readlink(path, *, dir_fd=None)
Return a string representing the path to which the symbolic link points.
If dir_fd is not None, it should be a file descriptor open to a directory,
and path should be relative; path will then be relative to that directory.
dir_fd may not be implemented on your platform. If it is unavailable,
using it will raise a NotImplementedError.
remove(path, *, dir_fd=None)
Remove a file (same as unlink()).
If dir_fd is not None, it should be a file descriptor open to a directory,
and path should be relative; path will then be relative to that directory.
dir_fd may not be implemented on your platform.
If it is unavailable, using it will raise a NotImplementedError.
removedirs(name)
removedirs(name)
Super-rmdir; remove a leaf directory and all empty intermediate
ones. Works like rmdir except that, if the leaf directory is
successfully removed, directories corresponding to rightmost path
segments will be pruned away until either the whole path is
consumed or an error occurs. Errors during this latter phase are
ignored -- they generally mean that a directory was not empty.
rename(src, dst, *, src_dir_fd=None, dst_dir_fd=None)
Rename a file or directory.
If either src_dir_fd or dst_dir_fd is not None, it should be a file
descriptor open to a directory, and the respective path string (src or dst)
should be relative; the path will then be relative to that directory.
src_dir_fd and dst_dir_fd, may not be implemented on your platform.
If they are unavailable, using them will raise a NotImplementedError.
renames(old, new)
renames(old, new)
Super-rename; create directories as necessary and delete any left
empty. Works like rename, except creation of any intermediate
directories needed to make the new pathname good is attempted
first. After the rename, directories corresponding to rightmost
path segments of the old name will be pruned until either the
whole path is consumed or a nonempty directory is found.
Note: this function can fail with the new directory structure made
if you lack permissions needed to unlink the leaf directory or
file.
replace(src, dst, *, src_dir_fd=None, dst_dir_fd=None)
Rename a file or directory, overwriting the destination.
If either src_dir_fd or dst_dir_fd is not None, it should be a file
descriptor open to a directory, and the respective path string (src or dst)
should be relative; the path will then be relative to that directory.
src_dir_fd and dst_dir_fd, may not be implemented on your platform.
If they are unavailable, using them will raise a NotImplementedError.
rmdir(path, *, dir_fd=None)
Remove a directory.
If dir_fd is not None, it should be a file descriptor open to a directory,
and path should be relative; path will then be relative to that directory.
dir_fd may not be implemented on your platform.
If it is unavailable, using it will raise a NotImplementedError.
scandir(path=None)
Return an iterator of DirEntry objects for given path.
path can be specified as either str, bytes, or a path-like object. If path
is bytes, the names of yielded DirEntry objects will also be bytes; in
all other circumstances they will be str.
If path is None, uses the path='.'.
set_blocking(fd, blocking, /)
Set the blocking mode of the specified file descriptor.
Set the O_NONBLOCK flag if blocking is False,
clear the O_NONBLOCK flag otherwise.
set_handle_inheritable(handle, inheritable, /)
Set the inheritable flag of the specified handle.
set_inheritable(fd, inheritable, /)
Set the inheritable flag of the specified file descriptor.
spawnl(mode, file, *args)
spawnl(mode, file, *args) -> integer
Execute file with arguments from args in a subprocess.
If mode == P_NOWAIT return the pid of the process.
If mode == P_WAIT return the process's exit code if it exits normally;
otherwise return -SIG, where SIG is the signal that killed it.
spawnle(mode, file, *args)
spawnle(mode, file, *args, env) -> integer
Execute file with arguments from args in a subprocess with the
supplied environment.
If mode == P_NOWAIT return the pid of the process.
If mode == P_WAIT return the process's exit code if it exits normally;
otherwise return -SIG, where SIG is the signal that killed it.
spawnv(mode, path, argv, /)
Execute the program specified by path in a new process.
mode
Mode of process creation.
path
Path of executable file.
argv
Tuple or list of strings.
spawnve(mode, path, argv, env, /)
Execute the program specified by path in a new process.
mode
Mode of process creation.
path
Path of executable file.
argv
Tuple or list of strings.
env
Dictionary of strings mapping to strings.
startfile(...)
Start a file with its associated application.
When "operation" is not specified or "open", this acts like
double-clicking the file in Explorer, or giving the file name as an
argument to the DOS "start" command: the file is opened with whatever
application (if any) its extension is associated.
When another "operation" is given, it specifies what should be done with
the file. A typical operation is "print".
"arguments" is passed to the application, but should be omitted if the
file is a document.
"cwd" is the working directory for the operation. If "filepath" is
relative, it will be resolved against this directory. This argument
should usually be an absolute path.
"show_cmd" can be used to override the recommended visibility option.
See the Windows ShellExecute documentation for values.
startfile returns as soon as the associated application is launched.
There is no option to wait for the application to close, and no way
to retrieve the application's exit status.
The filepath is relative to the current directory. If you want to use
an absolute path, make sure the first character is not a slash ("/");
the underlying Win32 ShellExecute function doesn't work if it is.
stat(path, *, dir_fd=None, follow_symlinks=True)
Perform a stat system call on the given path.
path
Path to be examined; can be string, bytes, a path-like object or
open-file-descriptor int.
dir_fd
If not None, it should be a file descriptor open to a directory,
and path should be a relative string; path will then be relative to
that directory.
follow_symlinks
If False, and the last element of the path is a symbolic link,
stat will examine the symbolic link itself instead of the file
the link points to.
dir_fd and follow_symlinks may not be implemented
on your platform. If they are unavailable, using them will raise a
NotImplementedError.
It's an error to use dir_fd or follow_symlinks when specifying path as
an open file descriptor.
strerror(code, /)
Translate an error code to a message string.
symlink(src, dst, target_is_directory=False, *, dir_fd=None)
Create a symbolic link pointing to src named dst.
target_is_directory is required on Windows if the target is to be
interpreted as a directory. (On Windows, symlink requires
Windows 6.0 or greater, and raises a NotImplementedError otherwise.)
target_is_directory is ignored on non-Windows platforms.
If dir_fd is not None, it should be a file descriptor open to a directory,
and path should be relative; path will then be relative to that directory.
dir_fd may not be implemented on your platform.
If it is unavailable, using it will raise a NotImplementedError.
system(command)
Execute the command in a subshell.
times()
Return a collection containing process timing information.
The object returned behaves like a named tuple with these fields:
(utime, stime, cutime, cstime, elapsed_time)
All fields are floating-point numbers.
truncate(path, length)
Truncate a file, specified by path, to a specific length.
On some platforms, path may also be specified as an open file descriptor.
If this functionality is unavailable, using it raises an exception.
umask(mask, /)
Set the current numeric umask and return the previous umask.
unlink(path, *, dir_fd=None)
Remove a file (same as remove()).
If dir_fd is not None, it should be a file descriptor open to a directory,
and path should be relative; path will then be relative to that directory.
dir_fd may not be implemented on your platform.
If it is unavailable, using it will raise a NotImplementedError.
unsetenv(name, /)
Delete an environment variable.
urandom(size, /)
Return a bytes object containing random bytes suitable for cryptographic use.
utime(...)
Set the access and modified time of path.
path may always be specified as a string.
On some platforms, path may also be specified as an open file descriptor.
If this functionality is unavailable, using it raises an exception.
If times is not None, it must be a tuple (atime, mtime);
atime and mtime should be expressed as float seconds since the epoch.
If ns is specified, it must be a tuple (atime_ns, mtime_ns);
atime_ns and mtime_ns should be expressed as integer nanoseconds
since the epoch.
If times is None and ns is unspecified, utime uses the current time.
Specifying tuples for both times and ns is an error.
If dir_fd is not None, it should be a file descriptor open to a directory,
and path should be relative; path will then be relative to that directory.
If follow_symlinks is False, and the last element of the path is a symbolic
link, utime will modify the symbolic link itself instead of the file the
link points to.
It is an error to use dir_fd or follow_symlinks when specifying path
as an open file descriptor.
dir_fd and follow_symlinks may not be available on your platform.
If they are unavailable, using them will raise a NotImplementedError.
waitpid(pid, options, /)
Wait for completion of a given process.
Returns a tuple of information regarding the process:
(pid, status << 8)
The options argument is ignored on Windows.
waitstatus_to_exitcode(status)
Convert a wait status to an exit code.
On Unix:
* If WIFEXITED(status) is true, return WEXITSTATUS(status).
* If WIFSIGNALED(status) is true, return -WTERMSIG(status).
* Otherwise, raise a ValueError.
On Windows, return status shifted right by 8 bits.
On Unix, if the process is being traced or if waitpid() was called with
WUNTRACED option, the caller must first check if WIFSTOPPED(status) is true.
This function must not be called if WIFSTOPPED(status) is true.
walk(top, topdown=True, onerror=None, followlinks=False)
Directory tree generator.
For each directory in the directory tree rooted at top (including top
itself, but excluding '.' and '..'), yields a 3-tuple
dirpath, dirnames, filenames
dirpath is a string, the path to the directory. dirnames is a list of
the names of the subdirectories in dirpath (including symlinks to directories,
and excluding '.' and '..').
filenames is a list of the names of the non-directory files in dirpath.
Note that the names in the lists are just names, with no path components.
To get a full path (which begins with top) to a file or directory in
dirpath, do os.path.join(dirpath, name).
If optional arg 'topdown' is true or not specified, the triple for a
directory is generated before the triples for any of its subdirectories
(directories are generated top down). If topdown is false, the triple
for a directory is generated after the triples for all of its
subdirectories (directories are generated bottom up).
When topdown is true, the caller can modify the dirnames list in-place
(e.g., via del or slice assignment), and walk will only recurse into the
subdirectories whose names remain in dirnames; this can be used to prune the
search, or to impose a specific order of visiting. Modifying dirnames when
topdown is false has no effect on the behavior of os.walk(), since the
directories in dirnames have already been generated by the time dirnames
itself is generated. No matter the value of topdown, the list of
subdirectories is retrieved before the tuples for the directory and its
subdirectories are generated.
By default errors from the os.scandir() call are ignored. If
optional arg 'onerror' is specified, it should be a function; it
will be called with one argument, an OSError instance. It can
report the error to continue with the walk, or raise the exception
to abort the walk. Note that the filename is available as the
filename attribute of the exception object.
By default, os.walk does not follow symbolic links to subdirectories on
systems that support them. In order to get this functionality, set the
optional argument 'followlinks' to true.
Caution: if you pass a relative pathname for top, don't change the
current working directory between resumptions of walk. walk never
changes the current directory, and assumes that the client doesn't
either.
Example:
import os
from os.path import join, getsize
for root, dirs, files in os.walk('python/Lib/email'):
print(root, "consumes ")
print(sum(getsize(join(root, name)) for name in files), end=" ")
print("bytes in", len(files), "non-directory files")
if 'CVS' in dirs:
dirs.remove('CVS') # don't visit CVS directories
write(fd, data, /)
Write a bytes object to a file descriptor.
DATA
EX_OK = 0
F_OK = 0
O_APPEND = 8
O_BINARY = 32768
O_CREAT = 256
O_EXCL = 1024
O_NOINHERIT = 128
O_RANDOM = 16
O_RDONLY = 0
O_RDWR = 2
O_SEQUENTIAL = 32
O_SHORT_LIVED = 4096
O_TEMPORARY = 64
O_TEXT = 16384
O_TRUNC = 512
O_WRONLY = 1
P_DETACH = 4
P_NOWAIT = 1
P_NOWAITO = 3
P_OVERLAY = 2
P_WAIT = 0
R_OK = 4
SEEK_CUR = 1
SEEK_END = 2
SEEK_SET = 0
TMP_MAX = 2147483647
W_OK = 2
X_OK = 1
__all__ = ['altsep', 'curdir', 'pardir', 'sep', 'pathsep', 'linesep', ...
altsep = '/'
curdir = '.'
defpath = r'.;C:\bin'
devnull = 'nul'
environ = environ({'ALLUSERSPROFILE': 'C:\\ProgramData', '...thon\\Pyt...
extsep = '.'
linesep = '\r\n'
name = 'nt'
pardir = '..'
pathsep = ';'
sep = r'\'
supports_bytes_environ = False
FILE
c:\users\youse\appdata\local\programs\python\python312\lib\os.py
pymeshlab.pathlib
Python Library Documentation: module pathlib
NAME
pathlib - Object-oriented filesystem paths.
MODULE REFERENCE
https://docs.python.org/3.12/library/pathlib.html
The following documentation is automatically generated from the Python
source files. It may be incomplete, incorrect or include features that
are considered implementation detail and may vary between Python
implementations. When in doubt, consult the module reference at the
location listed above.
DESCRIPTION
This module provides classes to represent abstract paths and concrete
paths with operations that have semantics appropriate for different
operating systems.
CLASSES
builtins.object
PurePath
Path
PosixPath(Path, PurePosixPath)
WindowsPath(Path, PureWindowsPath)
PurePosixPath
PureWindowsPath
class Path(PurePath)
| Path(*args, **kwargs)
|
| PurePath subclass that can make system calls.
|
| Path represents a filesystem path but unlike PurePath, also offers
| methods to do system calls on path objects. Depending on your system,
| instantiating a Path will return either a PosixPath or a WindowsPath
| object. You can also instantiate a PosixPath or WindowsPath directly,
| but cannot instantiate a WindowsPath on a POSIX system or vice versa.
|
| Method resolution order:
| Path
| PurePath
| builtins.object
|
| Methods defined here:
|
| __enter__(self)
|
| __exit__(self, t, v, tb)
|
| __init__(self, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| absolute(self)
| Return an absolute version of this path by prepending the current
| working directory. No normalization or symlink resolution is performed.
|
| Use resolve() to get the canonical path to a file.
|
| chmod(self, mode, *, follow_symlinks=True)
| Change the permissions of the path, like os.chmod().
|
| exists(self, *, follow_symlinks=True)
| Whether this path exists.
|
| This method normally follows symlinks; to check whether a symlink exists,
| add the argument follow_symlinks=False.
|
| expanduser(self)
| Return a new path with expanded ~ and ~user constructs
| (as returned by os.path.expanduser)
|
| glob(self, pattern, *, case_sensitive=None)
| Iterate over this subtree and yield all existing files (of any
| kind, including directories) matching the given relative pattern.
|
| group(self)
| Return the group name of the file gid.
|
| hardlink_to(self, target)
| Make this path a hard link pointing to the same file as *target*.
|
| Note the order of arguments (self, target) is the reverse of os.link's.
|
| is_block_device(self)
| Whether this path is a block device.
|
| is_char_device(self)
| Whether this path is a character device.
|
| is_dir(self)
| Whether this path is a directory.
|
| is_fifo(self)
| Whether this path is a FIFO.
|
| is_file(self)
| Whether this path is a regular file (also True for symlinks pointing
| to regular files).
|
| is_junction(self)
| Whether this path is a junction.
|
| is_mount(self)
| Check if this path is a mount point
|
| is_socket(self)
| Whether this path is a socket.
|
| is_symlink(self)
| Whether this path is a symbolic link.
|
| iterdir(self)
| Yield path objects of the directory contents.
|
| The children are yielded in arbitrary order, and the
| special entries '.' and '..' are not included.
|
| lchmod(self, mode)
| Like chmod(), except if the path points to a symlink, the symlink's
| permissions are changed, rather than its target's.
|
| lstat(self)
| Like stat(), except if the path points to a symlink, the symlink's
| status information is returned, rather than its target's.
|
| mkdir(self, mode=511, parents=False, exist_ok=False)
| Create a new directory at this given path.
|
| open(self, mode='r', buffering=-1, encoding=None, errors=None, newline=None)
| Open the file pointed to by this path and return a file object, as
| the built-in open() function does.
|
| owner(self)
| Return the login name of the file owner.
|
| read_bytes(self)
| Open the file in bytes mode, read it, and close the file.
|
| read_text(self, encoding=None, errors=None)
| Open the file in text mode, read it, and close the file.
|
| readlink(self)
| Return the path to which the symbolic link points.
|
| rename(self, target)
| Rename this path to the target path.
|
| The target path may be absolute or relative. Relative paths are
| interpreted relative to the current working directory, *not* the
| directory of the Path object.
|
| Returns the new Path instance pointing to the target path.
|
| replace(self, target)
| Rename this path to the target path, overwriting if that path exists.
|
| The target path may be absolute or relative. Relative paths are
| interpreted relative to the current working directory, *not* the
| directory of the Path object.
|
| Returns the new Path instance pointing to the target path.
|
| resolve(self, strict=False)
| Make the path absolute, resolving all symlinks on the way and also
| normalizing it.
|
| rglob(self, pattern, *, case_sensitive=None)
| Recursively yield all existing files (of any kind, including
| directories) matching the given relative pattern, anywhere in
| this subtree.
|
| rmdir(self)
| Remove this directory. The directory must be empty.
|
| samefile(self, other_path)
| Return whether other_path is the same or not as this file
| (as returned by os.path.samefile()).
|
| stat(self, *, follow_symlinks=True)
| Return the result of the stat() system call on this path, like
| os.stat() does.
|
| symlink_to(self, target, target_is_directory=False)
| Make this path a symlink pointing to the target path.
| Note the order of arguments (link, target) is the reverse of os.symlink.
|
| touch(self, mode=438, exist_ok=True)
| Create this file with the given access mode, if it doesn't exist.
|
| unlink(self, missing_ok=False)
| Remove this file or link.
| If the path is a directory, use rmdir() instead.
|
| walk(self, top_down=True, on_error=None, follow_symlinks=False)
| Walk the directory tree from this directory, similar to os.walk().
|
| write_bytes(self, data)
| Open the file in bytes mode, write to it, and close the file.
|
| write_text(self, data, encoding=None, errors=None, newline=None)
| Open the file in text mode, write to it, and close the file.
|
| ----------------------------------------------------------------------
| Class methods defined here:
|
| cwd()
| Return a new path pointing to the current working directory.
|
| home()
| Return a new path pointing to the user's home directory (as
| returned by os.path.expanduser('~')).
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(cls, *args, **kwargs)
| Construct a PurePath from one or several strings and or existing
| PurePath objects. The strings and path objects are combined so as
| to yield a canonicalized path, which is incorporated into the
| new PurePath object.
|
| ----------------------------------------------------------------------
| Methods inherited from PurePath:
|
| __bytes__(self)
| Return the bytes representation of the path. This is only
| recommended to use under Unix.
|
| __eq__(self, other)
| Return self==value.
|
| __fspath__(self)
|
| __ge__(self, other)
| Return self>=value.
|
| __gt__(self, other)
| Return self>value.
|
| __hash__(self)
| Return hash(self).
|
| __le__(self, other)
| Return self<=value.
|
| __lt__(self, other)
| Return self<value.
|
| __reduce__(self)
| Helper for pickle.
|
| __repr__(self)
| Return repr(self).
|
| __rtruediv__(self, key)
|
| __str__(self)
| Return the string representation of the path, suitable for
| passing to system calls.
|
| __truediv__(self, key)
|
| as_posix(self)
| Return the string representation of the path with forward (/)
| slashes.
|
| as_uri(self)
| Return the path as a 'file' URI.
|
| is_absolute(self)
| True if the path is absolute (has both a root and, if applicable,
| a drive).
|
| is_relative_to(self, other, /, *_deprecated)
| Return True if the path is relative to another path or False.
|
| is_reserved(self)
| Return True if the path contains one of the special names reserved
| by the system, if any.
|
| joinpath(self, *pathsegments)
| Combine this path with one or several arguments, and return a
| new path representing either a subpath (if all arguments are relative
| paths) or a totally different path (if one of the arguments is
| anchored).
|
| match(self, path_pattern, *, case_sensitive=None)
| Return True if this path matches the given pattern.
|
| relative_to(self, other, /, *_deprecated, walk_up=False)
| Return the relative path to another path identified by the passed
| arguments. If the operation is not possible (because this is not
| related to the other path), raise ValueError.
|
| The *walk_up* parameter controls whether `..` may be used to resolve
| the path.
|
| with_name(self, name)
| Return a new path with the file name changed.
|
| with_segments(self, *pathsegments)
| Construct a new path object from any number of path-like objects.
| Subclasses may override this method to customize how new path objects
| are created from methods like `iterdir()`.
|
| with_stem(self, stem)
| Return a new path with the stem changed.
|
| with_suffix(self, suffix)
| Return a new path with the file suffix changed. If the path
| has no suffix, add given suffix. If the given suffix is an empty
| string, remove the suffix from the path.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from PurePath:
|
| anchor
| The concatenation of the drive and root, or ''.
|
| drive
| The drive prefix (letter or UNC path), if any.
|
| name
| The final path component, if any.
|
| parent
| The logical parent of the path.
|
| parents
| A sequence of this path's logical parents.
|
| parts
| An object providing sequence-like access to the
| components in the filesystem path.
|
| root
| The root of the path, if any.
|
| stem
| The final path component, minus its last suffix.
|
| suffix
| The final component's last suffix, if any.
|
| This includes the leading period. For example: '.txt'
|
| suffixes
| A list of the final component's suffixes, if any.
|
| These include the leading periods. For example: ['.tar', '.gz']
class PosixPath(Path, PurePosixPath)
| PosixPath(*args, **kwargs)
|
| Path subclass for non-Windows systems.
|
| On a POSIX system, instantiating a Path should return this object.
|
| Method resolution order:
| PosixPath
| Path
| PurePosixPath
| PurePath
| builtins.object
|
| Static methods defined here:
|
| __new__(cls, *args, **kwargs)
| Construct a PurePath from one or several strings and or existing
| PurePath objects. The strings and path objects are combined so as
| to yield a canonicalized path, which is incorporated into the
| new PurePath object.
|
| ----------------------------------------------------------------------
| Methods inherited from Path:
|
| __enter__(self)
|
| __exit__(self, t, v, tb)
|
| __init__(self, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| absolute(self)
| Return an absolute version of this path by prepending the current
| working directory. No normalization or symlink resolution is performed.
|
| Use resolve() to get the canonical path to a file.
|
| chmod(self, mode, *, follow_symlinks=True)
| Change the permissions of the path, like os.chmod().
|
| exists(self, *, follow_symlinks=True)
| Whether this path exists.
|
| This method normally follows symlinks; to check whether a symlink exists,
| add the argument follow_symlinks=False.
|
| expanduser(self)
| Return a new path with expanded ~ and ~user constructs
| (as returned by os.path.expanduser)
|
| glob(self, pattern, *, case_sensitive=None)
| Iterate over this subtree and yield all existing files (of any
| kind, including directories) matching the given relative pattern.
|
| group(self)
| Return the group name of the file gid.
|
| hardlink_to(self, target)
| Make this path a hard link pointing to the same file as *target*.
|
| Note the order of arguments (self, target) is the reverse of os.link's.
|
| is_block_device(self)
| Whether this path is a block device.
|
| is_char_device(self)
| Whether this path is a character device.
|
| is_dir(self)
| Whether this path is a directory.
|
| is_fifo(self)
| Whether this path is a FIFO.
|
| is_file(self)
| Whether this path is a regular file (also True for symlinks pointing
| to regular files).
|
| is_junction(self)
| Whether this path is a junction.
|
| is_mount(self)
| Check if this path is a mount point
|
| is_socket(self)
| Whether this path is a socket.
|
| is_symlink(self)
| Whether this path is a symbolic link.
|
| iterdir(self)
| Yield path objects of the directory contents.
|
| The children are yielded in arbitrary order, and the
| special entries '.' and '..' are not included.
|
| lchmod(self, mode)
| Like chmod(), except if the path points to a symlink, the symlink's
| permissions are changed, rather than its target's.
|
| lstat(self)
| Like stat(), except if the path points to a symlink, the symlink's
| status information is returned, rather than its target's.
|
| mkdir(self, mode=511, parents=False, exist_ok=False)
| Create a new directory at this given path.
|
| open(self, mode='r', buffering=-1, encoding=None, errors=None, newline=None)
| Open the file pointed to by this path and return a file object, as
| the built-in open() function does.
|
| owner(self)
| Return the login name of the file owner.
|
| read_bytes(self)
| Open the file in bytes mode, read it, and close the file.
|
| read_text(self, encoding=None, errors=None)
| Open the file in text mode, read it, and close the file.
|
| readlink(self)
| Return the path to which the symbolic link points.
|
| rename(self, target)
| Rename this path to the target path.
|
| The target path may be absolute or relative. Relative paths are
| interpreted relative to the current working directory, *not* the
| directory of the Path object.
|
| Returns the new Path instance pointing to the target path.
|
| replace(self, target)
| Rename this path to the target path, overwriting if that path exists.
|
| The target path may be absolute or relative. Relative paths are
| interpreted relative to the current working directory, *not* the
| directory of the Path object.
|
| Returns the new Path instance pointing to the target path.
|
| resolve(self, strict=False)
| Make the path absolute, resolving all symlinks on the way and also
| normalizing it.
|
| rglob(self, pattern, *, case_sensitive=None)
| Recursively yield all existing files (of any kind, including
| directories) matching the given relative pattern, anywhere in
| this subtree.
|
| rmdir(self)
| Remove this directory. The directory must be empty.
|
| samefile(self, other_path)
| Return whether other_path is the same or not as this file
| (as returned by os.path.samefile()).
|
| stat(self, *, follow_symlinks=True)
| Return the result of the stat() system call on this path, like
| os.stat() does.
|
| symlink_to(self, target, target_is_directory=False)
| Make this path a symlink pointing to the target path.
| Note the order of arguments (link, target) is the reverse of os.symlink.
|
| touch(self, mode=438, exist_ok=True)
| Create this file with the given access mode, if it doesn't exist.
|
| unlink(self, missing_ok=False)
| Remove this file or link.
| If the path is a directory, use rmdir() instead.
|
| walk(self, top_down=True, on_error=None, follow_symlinks=False)
| Walk the directory tree from this directory, similar to os.walk().
|
| write_bytes(self, data)
| Open the file in bytes mode, write to it, and close the file.
|
| write_text(self, data, encoding=None, errors=None, newline=None)
| Open the file in text mode, write to it, and close the file.
|
| ----------------------------------------------------------------------
| Class methods inherited from Path:
|
| cwd()
| Return a new path pointing to the current working directory.
|
| home()
| Return a new path pointing to the user's home directory (as
| returned by os.path.expanduser('~')).
|
| ----------------------------------------------------------------------
| Methods inherited from PurePath:
|
| __bytes__(self)
| Return the bytes representation of the path. This is only
| recommended to use under Unix.
|
| __eq__(self, other)
| Return self==value.
|
| __fspath__(self)
|
| __ge__(self, other)
| Return self>=value.
|
| __gt__(self, other)
| Return self>value.
|
| __hash__(self)
| Return hash(self).
|
| __le__(self, other)
| Return self<=value.
|
| __lt__(self, other)
| Return self<value.
|
| __reduce__(self)
| Helper for pickle.
|
| __repr__(self)
| Return repr(self).
|
| __rtruediv__(self, key)
|
| __str__(self)
| Return the string representation of the path, suitable for
| passing to system calls.
|
| __truediv__(self, key)
|
| as_posix(self)
| Return the string representation of the path with forward (/)
| slashes.
|
| as_uri(self)
| Return the path as a 'file' URI.
|
| is_absolute(self)
| True if the path is absolute (has both a root and, if applicable,
| a drive).
|
| is_relative_to(self, other, /, *_deprecated)
| Return True if the path is relative to another path or False.
|
| is_reserved(self)
| Return True if the path contains one of the special names reserved
| by the system, if any.
|
| joinpath(self, *pathsegments)
| Combine this path with one or several arguments, and return a
| new path representing either a subpath (if all arguments are relative
| paths) or a totally different path (if one of the arguments is
| anchored).
|
| match(self, path_pattern, *, case_sensitive=None)
| Return True if this path matches the given pattern.
|
| relative_to(self, other, /, *_deprecated, walk_up=False)
| Return the relative path to another path identified by the passed
| arguments. If the operation is not possible (because this is not
| related to the other path), raise ValueError.
|
| The *walk_up* parameter controls whether `..` may be used to resolve
| the path.
|
| with_name(self, name)
| Return a new path with the file name changed.
|
| with_segments(self, *pathsegments)
| Construct a new path object from any number of path-like objects.
| Subclasses may override this method to customize how new path objects
| are created from methods like `iterdir()`.
|
| with_stem(self, stem)
| Return a new path with the stem changed.
|
| with_suffix(self, suffix)
| Return a new path with the file suffix changed. If the path
| has no suffix, add given suffix. If the given suffix is an empty
| string, remove the suffix from the path.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from PurePath:
|
| anchor
| The concatenation of the drive and root, or ''.
|
| drive
| The drive prefix (letter or UNC path), if any.
|
| name
| The final path component, if any.
|
| parent
| The logical parent of the path.
|
| parents
| A sequence of this path's logical parents.
|
| parts
| An object providing sequence-like access to the
| components in the filesystem path.
|
| root
| The root of the path, if any.
|
| stem
| The final path component, minus its last suffix.
|
| suffix
| The final component's last suffix, if any.
|
| This includes the leading period. For example: '.txt'
|
| suffixes
| A list of the final component's suffixes, if any.
|
| These include the leading periods. For example: ['.tar', '.gz']
class PurePath(builtins.object)
| PurePath(*args, **kwargs)
|
| Base class for manipulating paths without I/O.
|
| PurePath represents a filesystem path and offers operations which
| don't imply any actual filesystem I/O. Depending on your system,
| instantiating a PurePath will return either a PurePosixPath or a
| PureWindowsPath object. You can also instantiate either of these classes
| directly, regardless of your system.
|
| Methods defined here:
|
| __bytes__(self)
| Return the bytes representation of the path. This is only
| recommended to use under Unix.
|
| __eq__(self, other)
| Return self==value.
|
| __fspath__(self)
|
| __ge__(self, other)
| Return self>=value.
|
| __gt__(self, other)
| Return self>value.
|
| __hash__(self)
| Return hash(self).
|
| __init__(self, *args)
| Initialize self. See help(type(self)) for accurate signature.
|
| __le__(self, other)
| Return self<=value.
|
| __lt__(self, other)
| Return self<value.
|
| __reduce__(self)
| Helper for pickle.
|
| __repr__(self)
| Return repr(self).
|
| __rtruediv__(self, key)
|
| __str__(self)
| Return the string representation of the path, suitable for
| passing to system calls.
|
| __truediv__(self, key)
|
| as_posix(self)
| Return the string representation of the path with forward (/)
| slashes.
|
| as_uri(self)
| Return the path as a 'file' URI.
|
| is_absolute(self)
| True if the path is absolute (has both a root and, if applicable,
| a drive).
|
| is_relative_to(self, other, /, *_deprecated)
| Return True if the path is relative to another path or False.
|
| is_reserved(self)
| Return True if the path contains one of the special names reserved
| by the system, if any.
|
| joinpath(self, *pathsegments)
| Combine this path with one or several arguments, and return a
| new path representing either a subpath (if all arguments are relative
| paths) or a totally different path (if one of the arguments is
| anchored).
|
| match(self, path_pattern, *, case_sensitive=None)
| Return True if this path matches the given pattern.
|
| relative_to(self, other, /, *_deprecated, walk_up=False)
| Return the relative path to another path identified by the passed
| arguments. If the operation is not possible (because this is not
| related to the other path), raise ValueError.
|
| The *walk_up* parameter controls whether `..` may be used to resolve
| the path.
|
| with_name(self, name)
| Return a new path with the file name changed.
|
| with_segments(self, *pathsegments)
| Construct a new path object from any number of path-like objects.
| Subclasses may override this method to customize how new path objects
| are created from methods like `iterdir()`.
|
| with_stem(self, stem)
| Return a new path with the stem changed.
|
| with_suffix(self, suffix)
| Return a new path with the file suffix changed. If the path
| has no suffix, add given suffix. If the given suffix is an empty
| string, remove the suffix from the path.
|
| ----------------------------------------------------------------------
| Static methods defined here:
|
| __new__(cls, *args, **kwargs)
| Construct a PurePath from one or several strings and or existing
| PurePath objects. The strings and path objects are combined so as
| to yield a canonicalized path, which is incorporated into the
| new PurePath object.
|
| ----------------------------------------------------------------------
| Readonly properties defined here:
|
| anchor
| The concatenation of the drive and root, or ''.
|
| drive
| The drive prefix (letter or UNC path), if any.
|
| name
| The final path component, if any.
|
| parent
| The logical parent of the path.
|
| parents
| A sequence of this path's logical parents.
|
| parts
| An object providing sequence-like access to the
| components in the filesystem path.
|
| root
| The root of the path, if any.
|
| stem
| The final path component, minus its last suffix.
|
| suffix
| The final component's last suffix, if any.
|
| This includes the leading period. For example: '.txt'
|
| suffixes
| A list of the final component's suffixes, if any.
|
| These include the leading periods. For example: ['.tar', '.gz']
class PurePosixPath(PurePath)
| PurePosixPath(*args, **kwargs)
|
| PurePath subclass for non-Windows systems.
|
| On a POSIX system, instantiating a PurePath should return this object.
| However, you can also instantiate it directly on any system.
|
| Method resolution order:
| PurePosixPath
| PurePath
| builtins.object
|
| Methods inherited from PurePath:
|
| __bytes__(self)
| Return the bytes representation of the path. This is only
| recommended to use under Unix.
|
| __eq__(self, other)
| Return self==value.
|
| __fspath__(self)
|
| __ge__(self, other)
| Return self>=value.
|
| __gt__(self, other)
| Return self>value.
|
| __hash__(self)
| Return hash(self).
|
| __init__(self, *args)
| Initialize self. See help(type(self)) for accurate signature.
|
| __le__(self, other)
| Return self<=value.
|
| __lt__(self, other)
| Return self<value.
|
| __reduce__(self)
| Helper for pickle.
|
| __repr__(self)
| Return repr(self).
|
| __rtruediv__(self, key)
|
| __str__(self)
| Return the string representation of the path, suitable for
| passing to system calls.
|
| __truediv__(self, key)
|
| as_posix(self)
| Return the string representation of the path with forward (/)
| slashes.
|
| as_uri(self)
| Return the path as a 'file' URI.
|
| is_absolute(self)
| True if the path is absolute (has both a root and, if applicable,
| a drive).
|
| is_relative_to(self, other, /, *_deprecated)
| Return True if the path is relative to another path or False.
|
| is_reserved(self)
| Return True if the path contains one of the special names reserved
| by the system, if any.
|
| joinpath(self, *pathsegments)
| Combine this path with one or several arguments, and return a
| new path representing either a subpath (if all arguments are relative
| paths) or a totally different path (if one of the arguments is
| anchored).
|
| match(self, path_pattern, *, case_sensitive=None)
| Return True if this path matches the given pattern.
|
| relative_to(self, other, /, *_deprecated, walk_up=False)
| Return the relative path to another path identified by the passed
| arguments. If the operation is not possible (because this is not
| related to the other path), raise ValueError.
|
| The *walk_up* parameter controls whether `..` may be used to resolve
| the path.
|
| with_name(self, name)
| Return a new path with the file name changed.
|
| with_segments(self, *pathsegments)
| Construct a new path object from any number of path-like objects.
| Subclasses may override this method to customize how new path objects
| are created from methods like `iterdir()`.
|
| with_stem(self, stem)
| Return a new path with the stem changed.
|
| with_suffix(self, suffix)
| Return a new path with the file suffix changed. If the path
| has no suffix, add given suffix. If the given suffix is an empty
| string, remove the suffix from the path.
|
| ----------------------------------------------------------------------
| Static methods inherited from PurePath:
|
| __new__(cls, *args, **kwargs)
| Construct a PurePath from one or several strings and or existing
| PurePath objects. The strings and path objects are combined so as
| to yield a canonicalized path, which is incorporated into the
| new PurePath object.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from PurePath:
|
| anchor
| The concatenation of the drive and root, or ''.
|
| drive
| The drive prefix (letter or UNC path), if any.
|
| name
| The final path component, if any.
|
| parent
| The logical parent of the path.
|
| parents
| A sequence of this path's logical parents.
|
| parts
| An object providing sequence-like access to the
| components in the filesystem path.
|
| root
| The root of the path, if any.
|
| stem
| The final path component, minus its last suffix.
|
| suffix
| The final component's last suffix, if any.
|
| This includes the leading period. For example: '.txt'
|
| suffixes
| A list of the final component's suffixes, if any.
|
| These include the leading periods. For example: ['.tar', '.gz']
class PureWindowsPath(PurePath)
| PureWindowsPath(*args, **kwargs)
|
| PurePath subclass for Windows systems.
|
| On a Windows system, instantiating a PurePath should return this object.
| However, you can also instantiate it directly on any system.
|
| Method resolution order:
| PureWindowsPath
| PurePath
| builtins.object
|
| Methods inherited from PurePath:
|
| __bytes__(self)
| Return the bytes representation of the path. This is only
| recommended to use under Unix.
|
| __eq__(self, other)
| Return self==value.
|
| __fspath__(self)
|
| __ge__(self, other)
| Return self>=value.
|
| __gt__(self, other)
| Return self>value.
|
| __hash__(self)
| Return hash(self).
|
| __init__(self, *args)
| Initialize self. See help(type(self)) for accurate signature.
|
| __le__(self, other)
| Return self<=value.
|
| __lt__(self, other)
| Return self<value.
|
| __reduce__(self)
| Helper for pickle.
|
| __repr__(self)
| Return repr(self).
|
| __rtruediv__(self, key)
|
| __str__(self)
| Return the string representation of the path, suitable for
| passing to system calls.
|
| __truediv__(self, key)
|
| as_posix(self)
| Return the string representation of the path with forward (/)
| slashes.
|
| as_uri(self)
| Return the path as a 'file' URI.
|
| is_absolute(self)
| True if the path is absolute (has both a root and, if applicable,
| a drive).
|
| is_relative_to(self, other, /, *_deprecated)
| Return True if the path is relative to another path or False.
|
| is_reserved(self)
| Return True if the path contains one of the special names reserved
| by the system, if any.
|
| joinpath(self, *pathsegments)
| Combine this path with one or several arguments, and return a
| new path representing either a subpath (if all arguments are relative
| paths) or a totally different path (if one of the arguments is
| anchored).
|
| match(self, path_pattern, *, case_sensitive=None)
| Return True if this path matches the given pattern.
|
| relative_to(self, other, /, *_deprecated, walk_up=False)
| Return the relative path to another path identified by the passed
| arguments. If the operation is not possible (because this is not
| related to the other path), raise ValueError.
|
| The *walk_up* parameter controls whether `..` may be used to resolve
| the path.
|
| with_name(self, name)
| Return a new path with the file name changed.
|
| with_segments(self, *pathsegments)
| Construct a new path object from any number of path-like objects.
| Subclasses may override this method to customize how new path objects
| are created from methods like `iterdir()`.
|
| with_stem(self, stem)
| Return a new path with the stem changed.
|
| with_suffix(self, suffix)
| Return a new path with the file suffix changed. If the path
| has no suffix, add given suffix. If the given suffix is an empty
| string, remove the suffix from the path.
|
| ----------------------------------------------------------------------
| Static methods inherited from PurePath:
|
| __new__(cls, *args, **kwargs)
| Construct a PurePath from one or several strings and or existing
| PurePath objects. The strings and path objects are combined so as
| to yield a canonicalized path, which is incorporated into the
| new PurePath object.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from PurePath:
|
| anchor
| The concatenation of the drive and root, or ''.
|
| drive
| The drive prefix (letter or UNC path), if any.
|
| name
| The final path component, if any.
|
| parent
| The logical parent of the path.
|
| parents
| A sequence of this path's logical parents.
|
| parts
| An object providing sequence-like access to the
| components in the filesystem path.
|
| root
| The root of the path, if any.
|
| stem
| The final path component, minus its last suffix.
|
| suffix
| The final component's last suffix, if any.
|
| This includes the leading period. For example: '.txt'
|
| suffixes
| A list of the final component's suffixes, if any.
|
| These include the leading periods. For example: ['.tar', '.gz']
class WindowsPath(Path, PureWindowsPath)
| WindowsPath(*args, **kwargs)
|
| Path subclass for Windows systems.
|
| On a Windows system, instantiating a Path should return this object.
|
| Method resolution order:
| WindowsPath
| Path
| PureWindowsPath
| PurePath
| builtins.object
|
| Methods inherited from Path:
|
| __enter__(self)
|
| __exit__(self, t, v, tb)
|
| __init__(self, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| absolute(self)
| Return an absolute version of this path by prepending the current
| working directory. No normalization or symlink resolution is performed.
|
| Use resolve() to get the canonical path to a file.
|
| chmod(self, mode, *, follow_symlinks=True)
| Change the permissions of the path, like os.chmod().
|
| exists(self, *, follow_symlinks=True)
| Whether this path exists.
|
| This method normally follows symlinks; to check whether a symlink exists,
| add the argument follow_symlinks=False.
|
| expanduser(self)
| Return a new path with expanded ~ and ~user constructs
| (as returned by os.path.expanduser)
|
| glob(self, pattern, *, case_sensitive=None)
| Iterate over this subtree and yield all existing files (of any
| kind, including directories) matching the given relative pattern.
|
| group(self)
| Return the group name of the file gid.
|
| hardlink_to(self, target)
| Make this path a hard link pointing to the same file as *target*.
|
| Note the order of arguments (self, target) is the reverse of os.link's.
|
| is_block_device(self)
| Whether this path is a block device.
|
| is_char_device(self)
| Whether this path is a character device.
|
| is_dir(self)
| Whether this path is a directory.
|
| is_fifo(self)
| Whether this path is a FIFO.
|
| is_file(self)
| Whether this path is a regular file (also True for symlinks pointing
| to regular files).
|
| is_junction(self)
| Whether this path is a junction.
|
| is_mount(self)
| Check if this path is a mount point
|
| is_socket(self)
| Whether this path is a socket.
|
| is_symlink(self)
| Whether this path is a symbolic link.
|
| iterdir(self)
| Yield path objects of the directory contents.
|
| The children are yielded in arbitrary order, and the
| special entries '.' and '..' are not included.
|
| lchmod(self, mode)
| Like chmod(), except if the path points to a symlink, the symlink's
| permissions are changed, rather than its target's.
|
| lstat(self)
| Like stat(), except if the path points to a symlink, the symlink's
| status information is returned, rather than its target's.
|
| mkdir(self, mode=511, parents=False, exist_ok=False)
| Create a new directory at this given path.
|
| open(self, mode='r', buffering=-1, encoding=None, errors=None, newline=None)
| Open the file pointed to by this path and return a file object, as
| the built-in open() function does.
|
| owner(self)
| Return the login name of the file owner.
|
| read_bytes(self)
| Open the file in bytes mode, read it, and close the file.
|
| read_text(self, encoding=None, errors=None)
| Open the file in text mode, read it, and close the file.
|
| readlink(self)
| Return the path to which the symbolic link points.
|
| rename(self, target)
| Rename this path to the target path.
|
| The target path may be absolute or relative. Relative paths are
| interpreted relative to the current working directory, *not* the
| directory of the Path object.
|
| Returns the new Path instance pointing to the target path.
|
| replace(self, target)
| Rename this path to the target path, overwriting if that path exists.
|
| The target path may be absolute or relative. Relative paths are
| interpreted relative to the current working directory, *not* the
| directory of the Path object.
|
| Returns the new Path instance pointing to the target path.
|
| resolve(self, strict=False)
| Make the path absolute, resolving all symlinks on the way and also
| normalizing it.
|
| rglob(self, pattern, *, case_sensitive=None)
| Recursively yield all existing files (of any kind, including
| directories) matching the given relative pattern, anywhere in
| this subtree.
|
| rmdir(self)
| Remove this directory. The directory must be empty.
|
| samefile(self, other_path)
| Return whether other_path is the same or not as this file
| (as returned by os.path.samefile()).
|
| stat(self, *, follow_symlinks=True)
| Return the result of the stat() system call on this path, like
| os.stat() does.
|
| symlink_to(self, target, target_is_directory=False)
| Make this path a symlink pointing to the target path.
| Note the order of arguments (link, target) is the reverse of os.symlink.
|
| touch(self, mode=438, exist_ok=True)
| Create this file with the given access mode, if it doesn't exist.
|
| unlink(self, missing_ok=False)
| Remove this file or link.
| If the path is a directory, use rmdir() instead.
|
| walk(self, top_down=True, on_error=None, follow_symlinks=False)
| Walk the directory tree from this directory, similar to os.walk().
|
| write_bytes(self, data)
| Open the file in bytes mode, write to it, and close the file.
|
| write_text(self, data, encoding=None, errors=None, newline=None)
| Open the file in text mode, write to it, and close the file.
|
| ----------------------------------------------------------------------
| Class methods inherited from Path:
|
| cwd()
| Return a new path pointing to the current working directory.
|
| home()
| Return a new path pointing to the user's home directory (as
| returned by os.path.expanduser('~')).
|
| ----------------------------------------------------------------------
| Static methods inherited from Path:
|
| __new__(cls, *args, **kwargs)
| Construct a PurePath from one or several strings and or existing
| PurePath objects. The strings and path objects are combined so as
| to yield a canonicalized path, which is incorporated into the
| new PurePath object.
|
| ----------------------------------------------------------------------
| Methods inherited from PurePath:
|
| __bytes__(self)
| Return the bytes representation of the path. This is only
| recommended to use under Unix.
|
| __eq__(self, other)
| Return self==value.
|
| __fspath__(self)
|
| __ge__(self, other)
| Return self>=value.
|
| __gt__(self, other)
| Return self>value.
|
| __hash__(self)
| Return hash(self).
|
| __le__(self, other)
| Return self<=value.
|
| __lt__(self, other)
| Return self<value.
|
| __reduce__(self)
| Helper for pickle.
|
| __repr__(self)
| Return repr(self).
|
| __rtruediv__(self, key)
|
| __str__(self)
| Return the string representation of the path, suitable for
| passing to system calls.
|
| __truediv__(self, key)
|
| as_posix(self)
| Return the string representation of the path with forward (/)
| slashes.
|
| as_uri(self)
| Return the path as a 'file' URI.
|
| is_absolute(self)
| True if the path is absolute (has both a root and, if applicable,
| a drive).
|
| is_relative_to(self, other, /, *_deprecated)
| Return True if the path is relative to another path or False.
|
| is_reserved(self)
| Return True if the path contains one of the special names reserved
| by the system, if any.
|
| joinpath(self, *pathsegments)
| Combine this path with one or several arguments, and return a
| new path representing either a subpath (if all arguments are relative
| paths) or a totally different path (if one of the arguments is
| anchored).
|
| match(self, path_pattern, *, case_sensitive=None)
| Return True if this path matches the given pattern.
|
| relative_to(self, other, /, *_deprecated, walk_up=False)
| Return the relative path to another path identified by the passed
| arguments. If the operation is not possible (because this is not
| related to the other path), raise ValueError.
|
| The *walk_up* parameter controls whether `..` may be used to resolve
| the path.
|
| with_name(self, name)
| Return a new path with the file name changed.
|
| with_segments(self, *pathsegments)
| Construct a new path object from any number of path-like objects.
| Subclasses may override this method to customize how new path objects
| are created from methods like `iterdir()`.
|
| with_stem(self, stem)
| Return a new path with the stem changed.
|
| with_suffix(self, suffix)
| Return a new path with the file suffix changed. If the path
| has no suffix, add given suffix. If the given suffix is an empty
| string, remove the suffix from the path.
|
| ----------------------------------------------------------------------
| Readonly properties inherited from PurePath:
|
| anchor
| The concatenation of the drive and root, or ''.
|
| drive
| The drive prefix (letter or UNC path), if any.
|
| name
| The final path component, if any.
|
| parent
| The logical parent of the path.
|
| parents
| A sequence of this path's logical parents.
|
| parts
| An object providing sequence-like access to the
| components in the filesystem path.
|
| root
| The root of the path, if any.
|
| stem
| The final path component, minus its last suffix.
|
| suffix
| The final component's last suffix, if any.
|
| This includes the leading period. For example: '.txt'
|
| suffixes
| A list of the final component's suffixes, if any.
|
| These include the leading periods. For example: ['.tar', '.gz']
DATA
__all__ = ['PurePath', 'PurePosixPath', 'PureWindowsPath', 'Path', 'Po...
FILE
c:\users\youse\appdata\local\programs\python\python312\lib\pathlib.py
pymeshlab.platform
Python Library Documentation: package win32
NAME
win32
PACKAGE CONTENTS
_win32sysloader
_winxptheme
mmapfile
odbc
perfmon
servicemanager
timer
win32api
win32clipboard
win32console
win32cred
win32crypt
win32event
win32evtlog
win32file
win32gui
win32help
win32inet
win32job
win32lz
win32net
win32pdh
win32pipe
win32print
win32process
win32profile
win32ras
win32security
win32service
win32trace
win32transaction
win32ts
win32wnet
winxpgui
FILE
(built-in)
pymeshlab.plugin_number
Python Library Documentation: built-in function plugin_number in module pymeshlab.pmeshlab
plugin_number(...) method of builtins.PyCapsule instance
plugin_number() -> int
Returns the number of plugins loaded in the current session of PyMeshLab.
pymeshlab.pmeshlab
Python Library Documentation: module pymeshlab.pmeshlab in pymeshlab
NAME
pymeshlab.pmeshlab
CLASSES
builtins.Exception(builtins.BaseException)
InvalidEnumException
InvalidPercentageException
MissingCompactnessException
MissingComponentException
PyMeshLabException
pybind11_builtins.pybind11_object(builtins.object)
BoundingBox
Color
Image
Mesh
MeshSet
PercentageValue
PureValue
class BoundingBox(pybind11_builtins.pybind11_object)
| Method resolution order:
| BoundingBox
| pybind11_builtins.pybind11_object
| builtins.object
|
| Methods defined here:
|
| __init__(...)
| __init__(self: pymeshlab.pmeshlab.BoundingBox) -> None
|
| Creates an invalid Bounding Box (min: [1,1,1], max:[-1,-1,-1]).
|
| center(...)
| center(self: pymeshlab.pmeshlab.BoundingBox) -> numpy.ndarray[numpy.float64[3, 1]]
|
| Returns the center point coordinate of the Bounding Box.
|
| diagonal(...)
| diagonal(self: pymeshlab.pmeshlab.BoundingBox) -> float
|
| Returns the diagonal of the Bounding Box.
|
| dim_x(...)
| dim_x(self: pymeshlab.pmeshlab.BoundingBox) -> float
|
| Returns the X size of the Bounding Box.
|
| dim_y(...)
| dim_y(self: pymeshlab.pmeshlab.BoundingBox) -> float
|
| Returns the Y size of the Bounding Box.
|
| dim_z(...)
| dim_z(self: pymeshlab.pmeshlab.BoundingBox) -> float
|
| Returns the Z size of the Bounding Box.
|
| max(...)
| max(self: pymeshlab.pmeshlab.BoundingBox) -> numpy.ndarray[numpy.float64[3, 1]]
|
| Returns the max coordinate of the Bounding Box.
|
| min(...)
| min(self: pymeshlab.pmeshlab.BoundingBox) -> numpy.ndarray[numpy.float64[3, 1]]
|
| Returns the min coordinate of the Bounding Box.
|
| ----------------------------------------------------------------------
| Static methods inherited from pybind11_builtins.pybind11_object:
|
| __new__(*args, **kwargs) class method of pybind11_builtins.pybind11_object
| Create and return a new object. See help(type) for accurate signature.
class Color(pybind11_builtins.pybind11_object)
| Method resolution order:
| Color
| pybind11_builtins.pybind11_object
| builtins.object
|
| Methods defined here:
|
| __init__(...)
| __init__(*args, **kwargs)
| Overloaded function.
|
| 1. __init__(self: pymeshlab.pmeshlab.Color, r: int, g: int, b: int) -> None
|
| Constructs a color with the int RGB values r, g, b, and the alpha-channel (transparency) value of 255.
|
| 2. __init__(self: pymeshlab.pmeshlab.Color, r: int, g: int, b: int, a: int) -> None
|
| Constructs a color with the int RGB values r, g, b, and the alpha-channel (transparency) value of a.
|
| alpha(...)
| alpha(self: pymeshlab.pmeshlab.Color) -> int
|
| Returns the alpha color component of this color as integer.
|
| alpha_f(...)
| alpha_f(self: pymeshlab.pmeshlab.Color) -> float
|
| Returns the alpha color component of this color as float.
|
| blue(...)
| blue(self: pymeshlab.pmeshlab.Color) -> int
|
| Returns the blue color component of this color as integer.
|
| blue_f(...)
| blue_f(self: pymeshlab.pmeshlab.Color) -> float
|
| Returns the blue color component of this color as float.
|
| green(...)
| green(self: pymeshlab.pmeshlab.Color) -> int
|
| Returns the green color component of this color as integer.
|
| green_f(...)
| green_f(self: pymeshlab.pmeshlab.Color) -> float
|
| Returns the green color component of this color as float.
|
| red(...)
| red(self: pymeshlab.pmeshlab.Color) -> int
|
| Returns the red color component of this color as integer.
|
| red_f(...)
| red_f(self: pymeshlab.pmeshlab.Color) -> float
|
| Returns the red color component of this color as float.
|
| set_alpha(...)
| set_alpha(self: pymeshlab.pmeshlab.Color, a: int) -> None
|
| Sets the alpha color component of this color to a. Integer components are specified in the range 0-255.
|
| set_alpha_f(...)
| set_alpha_f(self: pymeshlab.pmeshlab.Color, a: float) -> None
|
| Sets the alpha color component of this color to a. Integer components are specified in the range 0-255.
|
| set_blue(...)
| set_blue(self: pymeshlab.pmeshlab.Color, b: int) -> None
|
| Sets the blue color component of this color to b. Integer components are specified in the range 0-255.
|
| set_blue_f(...)
| set_blue_f(self: pymeshlab.pmeshlab.Color, b: float) -> None
|
| Sets the blue color component of this color to b. Float components are specified in the range 0-1.
|
| set_green(...)
| set_green(self: pymeshlab.pmeshlab.Color, g: int) -> None
|
| Sets the green color component of this color to g. Integer components are specified in the range 0-255.
|
| set_green_f(...)
| set_green_f(self: pymeshlab.pmeshlab.Color, g: float) -> None
|
| Sets the green color component of this color to g. Float components are specified in the range 0-1.
|
| set_red(...)
| set_red(self: pymeshlab.pmeshlab.Color, r: int) -> None
|
| Sets the red color component of this color to r. Integer components are specified in the range 0-255.
|
| set_red_f(...)
| set_red_f(self: pymeshlab.pmeshlab.Color, r: float) -> None
|
| Sets the red color component of this color to r. Float components are specified in the range 0-1.
|
| to_array3(...)
| to_array3(self: pymeshlab.pmeshlab.Color) -> numpy.ndarray[numpy.int32[3, 1]]
|
| Returns a numpy array of 3 integers containing the rgb components of this color.
|
| to_array3f(...)
| to_array3f(self: pymeshlab.pmeshlab.Color) -> numpy.ndarray[numpy.float32[3, 1]]
|
| Returns a numpy array of 3 floats containing the rgb components of this color.
|
| to_array4(...)
| to_array4(self: pymeshlab.pmeshlab.Color) -> numpy.ndarray[numpy.int32[4, 1]]
|
| Returns a numpy array of 4 integers containing the rgba components of this color.
|
| to_array4f(...)
| to_array4f(self: pymeshlab.pmeshlab.Color) -> numpy.ndarray[numpy.float32[4, 1]]
|
| Returns a numpy array of 4 floats containing the rgba components of this color.
|
| ----------------------------------------------------------------------
| Static methods inherited from pybind11_builtins.pybind11_object:
|
| __new__(*args, **kwargs) class method of pybind11_builtins.pybind11_object
| Create and return a new object. See help(type) for accurate signature.
class Image(pybind11_builtins.pybind11_object)
| Method resolution order:
| Image
| pybind11_builtins.pybind11_object
| builtins.object
|
| Methods defined here:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| height(...)
| height(self: pymeshlab.pmeshlab.Image) -> int
|
| save(...)
| save(self: pymeshlab.pmeshlab.Image, file_name: str, quality: int = -1) -> None
|
| Save the image to the given filename, deducing automatically the format from the file name, and with a given quality with default value -1 (default setting of the save process). Formats are the same supported by the QImage class. See the `QImage<https://doc.qt.io/qt-5/qimage.html#save>`_ documentation for more details.
|
| width(...)
| width(self: pymeshlab.pmeshlab.Image) -> int
|
| ----------------------------------------------------------------------
| Static methods inherited from pybind11_builtins.pybind11_object:
|
| __new__(*args, **kwargs) class method of pybind11_builtins.pybind11_object
| Create and return a new object. See help(type) for accurate signature.
class InvalidEnumException(builtins.Exception)
| Exception raised when an invalid enum value is used as argument of a filter.
|
| Method resolution order:
| InvalidEnumException
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Data descriptors defined here:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.Exception:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class InvalidPercentageException(builtins.Exception)
| Exception raised when an invalid value (not between 0 and 100) is set in a :py:class:`Percentage` object.
|
| Method resolution order:
| InvalidPercentageException
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Data descriptors defined here:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.Exception:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class Mesh(pybind11_builtins.pybind11_object)
| Method resolution order:
| Mesh
| pybind11_builtins.pybind11_object
| builtins.object
|
| Methods defined here:
|
| __init__(...)
| __init__(*args, **kwargs)
| Overloaded function.
|
| 1. __init__(self: pymeshlab.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), edge_matrix: numpy.ndarray[numpy.int32[m, 2]] = array([], shape=(0, 2), 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), v_scalar_array: numpy.ndarray[numpy.float64[m, 1]] = array([], dtype=float64), f_scalar_array: numpy.ndarray[numpy.float64[m, 1]] = array([], dtype=float64), v_color_matrix: numpy.ndarray[numpy.float64[m, 4]] = array([], shape=(0, 4), dtype=float64), f_color_matrix: numpy.ndarray[numpy.float64[m, 4]] = array([], shape=(0, 4), dtype=float64), v_tex_coords_matrix: numpy.ndarray[numpy.float64[m, 2]] = array([], shape=(0, 2), dtype=float64), w_tex_coords_matrix: numpy.ndarray[numpy.float64[m, 2]] = array([], shape=(0, 2), 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. Color matrices have four columns (RGBA) and values are floats in the range [0-1]. Values outside this range will result in undefined behaviour. Wedge texture coordinates must be a matrix of NF*3 rows ant two columns (a texture coordinate for each edge of each triangle of the mesh).
|
| 2. __init__(self: pymeshlab.pmeshlab.Mesh, vertex_matrix: numpy.ndarray[numpy.float64[m, 3]], face_list_of_indices: list[numpy.ndarray[numpy.uint32[m, 1]]], 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), v_scalar_array: numpy.ndarray[numpy.float64[m, 1]] = array([], dtype=float64), f_scalar_array: numpy.ndarray[numpy.float64[m, 1]] = array([], dtype=float64), v_color_matrix: numpy.ndarray[numpy.float64[m, 4]] = array([], shape=(0, 4), dtype=float64), f_color_matrix: numpy.ndarray[numpy.float64[m, 4]] = array([], shape=(0, 4), dtype=float64), v_tex_coords_matrix: numpy.ndarray[numpy.float64[m, 2]] = array([], shape=(0, 2), dtype=float64)) -> None
|
| Creates a polygon mesh containing the data passed as input. At least a numpy array of vertices and a list of numpy arrays of face indices is required. Since MeshLab and PyMeshLab can store only triangle meshes, the newly created mesh is actually a triangle mesh with some edges that are marked as 'faux'. This constructor creates a custom per face scalar attribute called `poly_birth_faces` that stores, for each face of the newly created mesh, the index of the polygonal mesh that generated it.Color matrices have four columns (RGBA) and values are floats in the range [0-1]. Values outside this range will result in undefined behaviour.
|
| add_face_custom_point_attribute(...)
| add_face_custom_point_attribute(self: pymeshlab.pmeshlab.Mesh, attribute_values: numpy.ndarray[numpy.float64[m, 3]], attribute_name: str) -> None
|
| Adds a new user defined 3D point attribute associated to the faces of the mesh. Takes as input numpy array of vectors having 3 columns and the number of rows equal to the number of faces of the mesh, and the name of the new attribute. Raises a :py:exc:`MissingCompactnessException` if the mesh is not compact. Raises a :py:exc:`PyMeshLabException` if the given array has not the correct sizes, or if the mesh already contains a face vector attribute with the given name.
|
| add_face_custom_scalar_attribute(...)
| add_face_custom_scalar_attribute(self: pymeshlab.pmeshlab.Mesh, attribute_values: numpy.ndarray[numpy.float64[m, 1]], attribute_name: str) -> None
|
| Adds a new user defined scalar attribute associated to the faces of the mesh. Takes as input numpy array of scalar having the same size of the number of faces of the mesh, and the name of the new attribute. Raises a :py:exc:`MissingCompactnessException` if the mesh is not compact. Raises a :py:exc:`PyMeshLabException` if the given array has a different size from the face number of the mesh, or if the mesh already contains a face scalar attribute with the given name.
|
| add_vertex_custom_point_attribute(...)
| add_vertex_custom_point_attribute(self: pymeshlab.pmeshlab.Mesh, attribute_values: numpy.ndarray[numpy.float64[m, 3]], attribute_name: str) -> None
|
| Adds a new user defined 3D point attribute associated to the vertices of the mesh. Takes as input numpy array of vectors having 3 columns and the number of rows equal to the number of vertices of the mesh, and the name of the new attribute. Raises a :py:exc:`MissingCompactnessException` if the mesh is not compact. Raises a :py:exc:`PyMeshLabException` if the given array has not the correct sizes, or if the mesh already contains a vertex vector attribute with the given name.
|
| add_vertex_custom_scalar_attribute(...)
| add_vertex_custom_scalar_attribute(self: pymeshlab.pmeshlab.Mesh, attribute_values: numpy.ndarray[numpy.float64[m, 1]], attribute_name: str) -> None
|
| Adds a new user defined scalar attribute associated to the vertices of the mesh. Takes as input numpy array of scalar having the same size of the number of vertices of the mesh, and the name of the new attribute. Raises a :py:exc:`MissingCompactnessException` if the mesh is not compact. Raises a :py:exc:`PyMeshLabException` if the given array has a different size from the vertex number of the mesh, or if the mesh already contains a vertex scalar attribute with the given name.
|
| bounding_box(...)
| bounding_box(self: pymeshlab.pmeshlab.Mesh) -> pymeshlab.pmeshlab.BoundingBox
|
| Returns the bounding box of the mesh.
|
| compact(...)
| compact(self: pymeshlab.pmeshlab.Mesh) -> None
|
| Compacts all the arrays of the mesh.
|
| edge_matrix(...)
| edge_matrix(self: pymeshlab.pmeshlab.Mesh) -> numpy.ndarray[numpy.int32[m, 2]]
|
| Returns the edge matrix of the mesh as a numpy array, which is a #E*2 matrix of vertex indices. Raises a :py:exc:`MissingCompactnessException` if the mesh is not compact. **Note**: The Edge Matrix, in VCGLib, MeshLab and PyMeshLab is not related and has nothing to do withthe Mesh Faces. Edges are used to store polylines or simple collections of edges that are unrelated with faces. Some filters that generate Edges in PyMeshLab are `generate_polyline_from_planar_section` and `generate_polyline_from_selection_perimeter`.
|
| edge_number(...)
| edge_number(self: pymeshlab.pmeshlab.Mesh) -> int
|
| Returns the number of edges of the mesh.
|
| face_color_array(...)
| face_color_array(self: pymeshlab.pmeshlab.Mesh) -> numpy.ndarray[numpy.uint32[m, 1]]
|
| Returns the face color array as a numpy array, which is a #F array of unsigned integers, each value is the ARGB packed in a 32bit unsigned int (8 bits per component). Raises a :py:exc:`MissingCompactnessException` if the mesh is not compact. Raises a :py:exc:`MissingComponentException` if the mesh has no face color component.
|
| face_color_matrix(...)
| face_color_matrix(self: pymeshlab.pmeshlab.Mesh) -> numpy.ndarray[numpy.float64[m, 4]]
|
| Returns the face color matrix as a numpy array, which is a #V*4 matrix of floats, each component (RGBA) is in the interval [0, 1]. Raises a :py:exc:`MissingCompactnessException` if the mesh is not compact. Raises a :py:exc:`MissingComponentException` if the mesh has no face color component.
|
| face_curvature_principal_dir1_matrix(...)
| face_curvature_principal_dir1_matrix(self: pymeshlab.pmeshlab.Mesh) -> numpy.ndarray[numpy.float64[m, 3]]
|
| Returns the face curvature - principal direction 1 matrix of the mesh as a numpy array. Raises a :py:exc:`MissingCompactnessException` if the mesh is not compact. Raises a :py:exc:`MissingComponentException` if the mesh has no face curvature component.
|
| face_curvature_principal_dir2_matrix(...)
| face_curvature_principal_dir2_matrix(self: pymeshlab.pmeshlab.Mesh) -> numpy.ndarray[numpy.float64[m, 3]]
|
| Returns the face curvature - principal direction 2 matrix of the mesh as a numpy array. Raises a :py:exc:`MissingCompactnessException` if the mesh is not compact. Raises a :py:exc:`MissingComponentException` if the mesh has no face curvature component.
|
| face_custom_point_attribute_matrix(...)
| face_custom_point_attribute_matrix(self: pymeshlab.pmeshlab.Mesh, arg0: str) -> numpy.ndarray[numpy.float64[m, 3]]
|
| Returns a numpy matrix containing the 3D point values of the given user defined attribute name associated to the faces of the mesh. Raises a :py:exc:`MissingCompactnessException` if the mesh is not compact. Raises a :py:exc:`PyMeshLabException` if the given name does not represent a face vector attribute in the mesh.
|
| face_custom_scalar_attribute_array(...)
| face_custom_scalar_attribute_array(self: pymeshlab.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. Raises a :py:exc:`MissingCompactnessException` if the mesh is not compact. Raises a :py:exc:`PyMeshLabException` if the given name does not represent a face scalar attribute in the mesh.
|
| face_face_adjacency_matrix(...)
| face_face_adjacency_matrix(self: pymeshlab.pmeshlab.Mesh) -> numpy.ndarray[numpy.int32[m, 3]]
|
| Returns face-to-face adjacency matrix of the mesh as a numpy array. Raises a :py:exc:`MissingCompactnessException` if the mesh is not compact. Raises a :py:exc:`MissingComponentException` if the mesh has no face-to-face adjacency component.
|
| face_matrix(...)
| face_matrix(self: pymeshlab.pmeshlab.Mesh) -> numpy.ndarray[numpy.int32[m, 3]]
|
| Returns the face matrix of the mesh as a numpy array, which is a #F*3 matrix of vertex indices. Raises a :py:exc:`MissingCompactnessException` if the mesh is not compact.
|
| face_normal_matrix(...)
| face_normal_matrix(self: pymeshlab.pmeshlab.Mesh) -> numpy.ndarray[numpy.float64[m, 3]]
|
| Returns the face normal matrix of the mesh as a numpy array, which is a #F*3 matrix of face normals. Raises a :py:exc:`MissingCompactnessException` if the mesh is not compact.
|
| face_number(...)
| face_number(self: pymeshlab.pmeshlab.Mesh) -> int
|
| Returns the number of faces of the mesh.
|
| face_scalar_array(...)
| face_scalar_array(self: pymeshlab.pmeshlab.Mesh) -> numpy.ndarray[numpy.float64[m, 1]]
|
| Returns the face scalar array of the mesh as a numpy array, which is a #F array of floats. Raises a :py:exc:`MissingCompactnessException` if the mesh is not compact. Raises a :py:exc:`MissingComponentException` if the mesh has no face quality component.
|
| face_selection_array(...)
| face_selection_array(self: pymeshlab.pmeshlab.Mesh) -> numpy.ndarray[bool[m, 1]]
|
| Returns the face selection array of the mesh as a numpy array,which is a #F array of booleans (true if the corresponding face is selected, false otherwise). Raises a :py:exc:`MissingCompactnessException` if the mesh is not compact.
|
| has_face_color(...)
| has_face_color(self: pymeshlab.pmeshlab.Mesh) -> bool
|
| Returns true if the mesh has the face color component, false otherwise.
|
| has_face_scalar(...)
| has_face_scalar(self: pymeshlab.pmeshlab.Mesh) -> bool
|
| Returns true if the mesh has the face scalar component, false otherwise.
|
| has_vertex_color(...)
| has_vertex_color(self: pymeshlab.pmeshlab.Mesh) -> bool
|
| Returns true if the mesh has the vertex color component, false otherwise.
|
| has_vertex_scalar(...)
| has_vertex_scalar(self: pymeshlab.pmeshlab.Mesh) -> bool
|
| Returns true if the mesh has the vertex scalar component, false otherwise.
|
| has_vertex_tex_coord(...)
| has_vertex_tex_coord(self: pymeshlab.pmeshlab.Mesh) -> bool
|
| Returns true if the mesh has the vertex texture coordinate component, false otherwise.
|
| has_wedge_tex_coord(...)
| has_wedge_tex_coord(self: pymeshlab.pmeshlab.Mesh) -> bool
|
| Returns true if the mesh has the wedge texture coordinate component, false otherwise.
|
| id(...)
| id(self: pymeshlab.pmeshlab.Mesh) -> int
|
| Returns the id of the mesh into a MeshSet. If the Mesh is not part of a MeshSet, the returned value is -1.
|
| is_compact(...)
| is_compact(self: pymeshlab.pmeshlab.Mesh) -> bool
|
| Returns true if all its arrays are compact.
|
| is_point_cloud(...)
| is_point_cloud(self: pymeshlab.pmeshlab.Mesh) -> bool
|
| Returns true if the mesh has no faces (it is a point cloud)
|
| is_visible(...)
| is_visible(self: pymeshlab.pmeshlab.Mesh) -> bool
|
| Returns a boolean indicating whether the mesh is marked as visible or not.
|
| label(...)
| label(self: pymeshlab.pmeshlab.Mesh) -> str
|
| Returns a the label associated to the Mesh.
|
| polygonal_face_list(...)
| polygonal_face_list(self: pymeshlab.pmeshlab.Mesh) -> list[numpy.ndarray[numpy.uint32[m, 1]]]
|
| Returns a list of numpy arrays. Each numpy array contains the vertex indices composing the ith polygonal face. Raises a :py:exc:`MissingCompactnessException` if the mesh is not compact.
|
| selected_face_number(...)
| selected_face_number(self: pymeshlab.pmeshlab.Mesh) -> int
|
| Returns the number of selected faces of the mesh.
|
| selected_vertex_number(...)
| selected_vertex_number(self: pymeshlab.pmeshlab.Mesh) -> int
|
| Returns the number of selected vertices of the mesh.
|
| set_label(...)
| set_label(self: pymeshlab.pmeshlab.Mesh, arg0: str) -> None
|
| Sets the label associated to the mesh.
|
| texture(...)
| texture(*args, **kwargs)
| Overloaded function.
|
| 1. texture(self: pymeshlab.pmeshlab.Mesh, arg0: int) -> pymeshlab.pmeshlab.Image
|
| Returns the texture of the Mesh at the given index.
|
| 2. texture(self: pymeshlab.pmeshlab.Mesh, arg0: str) -> pymeshlab.pmeshlab.Image
|
| Returns the texture of the Mesh with the given name.
|
| texture_number(...)
| texture_number(self: pymeshlab.pmeshlab.Mesh) -> int
|
| Returns the number of textures contained in the mesh.
|
| textures(...)
| textures(self: pymeshlab.pmeshlab.Mesh) -> dict[str, pymeshlab.pmeshlab.Image]
|
| Returns a dictionary with the texture names as keys and the texture images of the mesh as values.
|
| transform_matrix(...)
| transform_matrix(self: pymeshlab.pmeshlab.Mesh) -> numpy.ndarray[numpy.float64[4, 4]]
|
| Returns the 4x4 transform matrix associated to the mesh.
|
| transformed_vertex_matrix(...)
| transformed_vertex_matrix(self: pymeshlab.pmeshlab.Mesh) -> numpy.ndarray[numpy.float64[m, 3]]
|
| Returns the vertex matrix of the mesh as a numpy array, which is a #V*3 matrix of vertex coordinates. Coordinates are transformed w.r.t. the transformation matrix of the mesh. Raises a :py:exc:`MissingCompactnessException` if the mesh is not compact.
|
| update_bounding_box(...)
| update_bounding_box(self: pymeshlab.pmeshlab.Mesh) -> None
|
| Updates the bounding box of the mesh.
|
| update_topology(...)
| update_topology(self: pymeshlab.pmeshlab.Mesh) -> None
|
| Updates the topology of the mesh.
|
| vertex_color_array(...)
| vertex_color_array(self: pymeshlab.pmeshlab.Mesh) -> numpy.ndarray[numpy.uint32[m, 1]]
|
| Returns the vertex color array as a numpy array, which is a #V array of unsigned integers, each value is the ARGB packed in a 32bit unsigned int (8 bits per component).Raises a :py:exc:`MissingCompactnessException` if the mesh is not compact.
|
| vertex_color_matrix(...)
| vertex_color_matrix(self: pymeshlab.pmeshlab.Mesh) -> numpy.ndarray[numpy.float64[m, 4]]
|
| Returns the vertex color matrix as a numpy array, which is a #V*4 matrix of floats, each component (RGBA) is in the interval [0, 1]. Raises a :py:exc:`MissingCompactnessException` if the mesh is not compact.
|
| vertex_curvature_principal_dir1_matrix(...)
| vertex_curvature_principal_dir1_matrix(self: pymeshlab.pmeshlab.Mesh) -> numpy.ndarray[numpy.float64[m, 3]]
|
| Returns the vertex curvature - principal direction 1 matrix of the mesh as a numpy array. Raises a :py:exc:`MissingCompactnessException` if the mesh is not compact. Raises a :py:exc:`MissingComponentException` if the mesh has no vertex curvature component.
|
| vertex_curvature_principal_dir2_matrix(...)
| vertex_curvature_principal_dir2_matrix(self: pymeshlab.pmeshlab.Mesh) -> numpy.ndarray[numpy.float64[m, 3]]
|
| Returns the vertex curvature - principal direction 2 matrix of the mesh as a numpy array. Raises a :py:exc:`MissingCompactnessException` if the mesh is not compact. Raises a :py:exc:`MissingComponentException` if the mesh has no vertex curvature component.
|
| vertex_custom_point_attribute_matrix(...)
| vertex_custom_point_attribute_matrix(self: pymeshlab.pmeshlab.Mesh, arg0: str) -> numpy.ndarray[numpy.float64[m, 3]]
|
| Returns a numpy matrix containing the 3D point values of the given user defined attribute name associated to the vertices of the mesh. Raises a :py:exc:`MissingCompactnessException` if the mesh is not compact. Raises a :py:exc:`PyMeshLabException` if the given name does not represent a vertex vector attribute in the mesh.
|
| vertex_custom_scalar_attribute_array(...)
| vertex_custom_scalar_attribute_array(self: pymeshlab.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. Raises a :py:exc:`MissingCompactnessException` if the mesh is not compact. Raises a :py:exc:`PyMeshLabException` if the given name does not represent a vertex scalar attribute in the mesh.
|
| vertex_matrix(...)
| vertex_matrix(self: pymeshlab.pmeshlab.Mesh) -> numpy.ndarray[numpy.float64[m, 3]]
|
| Returns the vertex matrix of the mesh as a numpy array, which is a #V*3 matrix of vertex coordinates. Raises a :py:exc:`MissingCompactnessException` if the mesh is not compact.
|
| vertex_normal_matrix(...)
| vertex_normal_matrix(self: pymeshlab.pmeshlab.Mesh) -> numpy.ndarray[numpy.float64[m, 3]]
|
| Returns the vertex normal matrix of the mesh as a numpy array, which is a #V*3 matrix of vertex normals. Raises a :py:exc:`MissingCompactnessException` if the mesh is not compact.
|
| vertex_number(...)
| vertex_number(self: pymeshlab.pmeshlab.Mesh) -> int
|
| Returns the number of vertices of the mesh.
|
| vertex_scalar_array(...)
| vertex_scalar_array(self: pymeshlab.pmeshlab.Mesh) -> numpy.ndarray[numpy.float64[m, 1]]
|
| Returns the vertex scalar array of the mesh as a numpy array, which is a #V array of floats. Raises a :py:exc:`MissingCompactnessException` if the mesh is not compact. Raises a :py:exc:`MissingComponentException` if the mesh has no vertex quality component.
|
| vertex_selection_array(...)
| vertex_selection_array(self: pymeshlab.pmeshlab.Mesh) -> numpy.ndarray[bool[m, 1]]
|
| Returns the vertex selection array of the mesh as a numpy array, which is a #V array of booleans (true if the corresponding vertex is selected, false otherwise). Raises a :py:exc:`MissingCompactnessException` if the mesh is not compact.
|
| vertex_tex_coord_matrix(...)
| vertex_tex_coord_matrix(self: pymeshlab.pmeshlab.Mesh) -> numpy.ndarray[numpy.float64[m, 2]]
|
| Returns the vertex texcoord matrix of the mesh as a numpy array, which is a #V*2 matrix of uv texture coordinates. Raises a :py:exc:`MissingCompactnessException` if the mesh is not compact. Raises a :py:exc:`MissingComponentException` if the mesh has no per-wedge tex coordinates component.
|
| wedge_tex_coord_matrix(...)
| wedge_tex_coord_matrix(self: pymeshlab.pmeshlab.Mesh) -> numpy.ndarray[numpy.float64[m, 2]]
|
| Returns the per-wedge texcoord matrix of the mesh as a numpy array, which is a #(F*3)*2 matrix of uv texture coordinates (triplets of wedges texcoords for each face). Raises a :py:exc:`MissingCompactnessException` if the mesh is not compact. Raises a :py:exc:`MissingComponentException` if the mesh has no vertex tex coordinates component.
|
| ----------------------------------------------------------------------
| Static methods inherited from pybind11_builtins.pybind11_object:
|
| __new__(*args, **kwargs) class method of pybind11_builtins.pybind11_object
| Create and return a new object. See help(type) for accurate signature.
class MeshSet(pybind11_builtins.pybind11_object)
| Method resolution order:
| MeshSet
| pybind11_builtins.pybind11_object
| builtins.object
|
| Methods defined here:
|
| __getitem__(...)
| __getitem__(self: pymeshlab.pmeshlab.MeshSet, id: int) -> pymeshlab.pmeshlab.Mesh
|
| Returns a reference to the mesh having the given id in the MeshSet. Raises a :py:exc:`PyMeshLabException` if the given ID is not found in the MeshSet.
|
| __init__(...)
| __init__(self: pymeshlab.pmeshlab.MeshSet, verbose: bool = False) -> None
|
| Initializes a MeshSet, setting the verbosity with the given value (default is ``False``).
|
| __iter__(...)
| __iter__(self: pymeshlab.pmeshlab.MeshSet) -> Iterator[pymeshlab.pmeshlab.Mesh]
|
| __len__(...)
| __len__(self: pymeshlab.pmeshlab.MeshSet) -> int
|
| **This function is deprecated.** Returns the number of meshes contained in the MeshSet.
|
| __str__(...)
| __str__(self: pymeshlab.pmeshlab.MeshSet) -> None
|
| Prints the status of the MeshSet (number of meshes, and for every mesh its ID, its label and its full name.)
|
| add_mesh(...)
| add_mesh(self: pymeshlab.pmeshlab.MeshSet, mesh: pymeshlab.pmeshlab.Mesh, mesh_name: str = '', set_as_current: bool = True) -> None
|
| Adds a **copy** of the given mesh in the current MeshSet, with the given name. By default, the added mesh will be set as the current mesh. This behaviour can be changed by setting the arg ``set_as_current`` to ``False``. If the name argument is left empty, the newly added mesh will have the same name of the mesh argument.
|
| apply_cameras_extrinsics_transformation(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| apply_cameras_rotation(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| apply_cameras_scaling(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| apply_cameras_translation(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| apply_color_brightness_contrast_gamma_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| apply_color_desaturation_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| apply_color_equalization_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| apply_color_intensity_colourisation_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| apply_color_inverse_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| apply_color_laplacian_smoothing_per_face(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| apply_color_laplacian_smoothing_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| apply_color_level_adjustment_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| apply_color_noising_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| apply_color_thresholding_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| apply_color_unsharp_mask_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| apply_color_white_balance_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| apply_coord_craters_from_point_cloud(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| apply_coord_cubic_stylization(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| apply_coord_depth_smoothing(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| apply_coord_developability_of_mesh(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| apply_coord_directional_preservation(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| apply_coord_fractal_displacement(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| apply_coord_hc_laplacian_smoothing(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| apply_coord_laplacian_smoothing(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| apply_coord_laplacian_smoothing_scale_dependent(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| apply_coord_laplacian_smoothing_surface_preserving(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| apply_coord_point_cloud_movement_over_mesh(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| apply_coord_random_displacement(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| apply_coord_taubin_smoothing(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| apply_coord_two_steps_smoothing(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| apply_coord_unsharp_mask(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| apply_filter(...)
| apply_filter(self: pymeshlab.pmeshlab.MeshSet, filter_name: str, **kwargs) -> dict
|
| Applies the filter having the given filter name in the MeshSet. Updates the current filter script, pushing the applied filter with the given parameters. Returns a dictionary containing pairs of [string - value] returned by the applied filter. See the :ref:`filter_list` page to a list of all the possible filters that can be applied using this function.
|
| apply_filter_script(...)
| apply_filter_script(self: pymeshlab.pmeshlab.MeshSet) -> None
|
| Applies all the filters currently present in the filter script.
|
| apply_matrix_flip_or_swap_axis(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| apply_matrix_freeze(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| apply_matrix_inverse(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| apply_normal_normalization_per_face(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| apply_normal_normalization_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| apply_normal_point_cloud_smoothing(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| apply_normal_smoothing_per_face(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| apply_normal_unsharp_mask_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| apply_scalar_clamping_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| apply_scalar_saturation_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| apply_scalar_smoothing_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| apply_scalar_unsharp_mask_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| apply_selection_by_same_connected_component(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| apply_selection_dilatation(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| apply_selection_erosion(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| apply_selection_inverse(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| apply_texcoord_merge_per_wedge(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| apply_texmap_defragmentation(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| clear(...)
| clear(self: pymeshlab.pmeshlab.MeshSet) -> None
|
| Clears the meshset, deleting all its content.
|
| clear_filter_script(...)
| clear_filter_script(self: pymeshlab.pmeshlab.MeshSet) -> None
|
| Clears the current filter script.
|
| compute_color_and_texture_from_active_rasters_projection(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_color_by_conntected_component_per_face(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_color_by_function_per_face(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_color_by_function_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_color_by_point_cloud_voronoi_projection(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_color_from_active_rasters_projection(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_color_from_current_raster_projection(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_color_from_scalar_per_face(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_color_from_scalar_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_color_from_scalar_using_transfer_function_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_color_from_texture_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_color_perlin_noise_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_color_random_per_face(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_color_scattering_per_mesh(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_color_transfer_face_to_vertex(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_color_transfer_mesh_to_face(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_color_transfer_vertex_to_face(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_coord_by_function(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_coord_linear_morphing(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_curvature_and_color_apss_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_curvature_and_color_rimls_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_curvature_principal_directions_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_custom_radius_scalar_attribute_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_iso_parametrization(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_matrix_by_fitting_to_plane(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_matrix_by_icp_between_meshes(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_matrix_by_mesh_global_alignment(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_matrix_by_principal_axis(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_matrix_from_rotation(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_matrix_from_scaling_or_normalization(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_matrix_from_translation(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_matrix_from_translation_rotation_scale(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_mls_projection_apss(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_mls_projection_rimls(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_new_custom_point_attribute_per_face(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_new_custom_point_attribute_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_new_custom_scalar_attribute_per_face(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_new_custom_scalar_attribute_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_normal_by_function_per_face(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_normal_by_function_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_normal_for_point_clouds(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_normal_from_cameras_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_normal_per_face(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_normal_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_normal_polygon_mesh_per_face(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_scalar_ambient_occlusion(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_scalar_ambient_occlusion_gpu(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_scalar_by_aspect_ratio_per_face(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_scalar_by_border_distance_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_scalar_by_discrete_curvature_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_scalar_by_distance_from_another_mesh_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_scalar_by_distance_from_point_cloud_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_scalar_by_function_per_face(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_scalar_by_function_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_scalar_by_geodesic_distance_from_given_point_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_scalar_by_geodesic_distance_from_selection_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_scalar_by_heat_geodesic_distance_from_selection_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_scalar_by_scalar_harmonic_field_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_scalar_by_shape_diameter_function_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_scalar_by_shape_diameter_function_per_vertex_gpu(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_scalar_by_volumetric_obscurance(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_scalar_by_volumetric_obscurance_gpu(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_scalar_from_camera_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_scalar_from_raster_coverage_per_face(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_scalar_from_raster_coverage_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_scalar_transfer_face_to_vertex(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_scalar_transfer_vertex_to_face(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_selection_bad_faces(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_selection_by_angle_with_direction_per_face(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_selection_by_color_per_face(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_selection_by_condition_per_face(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_selection_by_condition_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_selection_by_edge_length(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_selection_by_non_manifold_edges_per_face(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_selection_by_non_manifold_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_selection_by_scalar_per_face(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_selection_by_scalar_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_selection_by_self_intersections_per_face(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_selection_by_small_disconnected_components_per_face(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_selection_by_texture_seams_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_selection_crease_per_edge(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_selection_from_mesh_border(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_selection_of_visible_convex_hull_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_selection_point_cloud_outliers(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_selection_transfer_face_to_vertex(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_selection_transfer_vertex_to_face(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_texcoord_by_function_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_texcoord_by_function_per_wedge(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_texcoord_parametrization_and_texture_from_registered_rasters(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_texcoord_parametrization_flat_plane_per_wedge(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_texcoord_parametrization_from_registered_rasters(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_texcoord_parametrization_harmonic(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_texcoord_parametrization_least_squares_conformal_maps(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_texcoord_parametrization_triangle_trivial_per_wedge(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_texcoord_transfer_vertex_to_wedge(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_texcoord_transfer_wedge_to_vertex(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| compute_texmap_from_color(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| create_annulus(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| create_cone(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| create_cube(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| create_dodecahedron(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| create_dodecahedron_sym(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| create_fractal_terrain(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| create_grid(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| create_icosahedron(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| create_implicit_surface(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| create_mesh_by_grammar(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| create_noisy_isosurface(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| create_octahedron(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| create_sphere(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| create_sphere_cap(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| create_sphere_points(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| create_tetrahedron(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| create_torus(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| current_mesh(...)
| current_mesh(self: pymeshlab.pmeshlab.MeshSet) -> pymeshlab.pmeshlab.Mesh
|
| Returns the current mesh of the MeshSet. Raises a :py:exc:`PyMeshLabException` if the MeshSet has no current mesh (zero meshes).
|
| current_mesh_id(...)
| current_mesh_id(self: pymeshlab.pmeshlab.MeshSet) -> int
|
| Returns the id of the current mesh of the MeshSet. Raises a :py:exc:`PyMeshLabException` if the MeshSet has no current mesh (zero meshes).
|
| delete_current_mesh(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| delete_current_raster(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| delete_non_active_rasters(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| delete_non_visible_meshes(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| export_mesh_to_sketchfab(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| filter_parameter_values(...)
| filter_parameter_values(self: pymeshlab.pmeshlab.MeshSet, arg0: str, **kwargs) -> dict
|
| Returns a dictionary containing the parameters and their values that would be used by the given filter if the 'apply_filter' function is called in the current MeshSet. This function is useful to check which default values are set with the current status of the MeshSet. It takes also a (possibly empty) dictionary of parameters that could be set by the user: in this case, the output value of these parameters should be the same as input. This function works also for the 'save mesh' functions, just giving the format of the file as parameter instead of the filter name. This is useful for example when saving into a format that supports exporting custom parameters, which may have names that can be known only at runtime.
|
| generate_alpha_shape(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| generate_alpha_wrap(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| generate_boolean_difference(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| generate_boolean_intersection(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| generate_boolean_union(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| generate_boolean_xor(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| generate_by_merging_visible_meshes(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| generate_convex_hull(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| generate_copy_of_current_mesh(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| generate_cylindrical_unwrapping(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| generate_dust_accumulation_point_cloud(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| generate_from_selected_faces(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| generate_from_selected_vertices(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| generate_iso_parametrization_atlased_mesh(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| generate_iso_parametrization_remeshing(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| generate_marching_cubes_apss(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| generate_marching_cubes_rimls(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| generate_plane_fitting_to_selection(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| generate_polyline_from_planar_section(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| generate_polyline_from_selected_edges(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| generate_polyline_from_selection_perimeter(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| generate_resampled_uniform_mesh(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| generate_sampling_clustered_vertex(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| generate_sampling_element(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| generate_sampling_montecarlo(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| generate_sampling_poisson_disk(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| generate_sampling_regular_recursive(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| generate_sampling_stratified_triangle(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| generate_sampling_texel(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| generate_sampling_volumetric(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| generate_sampling_voronoi(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| generate_simplified_point_cloud(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| generate_solid_wireframe(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| generate_splitting_by_connected_components(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| generate_surface_reconstruction_ball_pivoting(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| generate_surface_reconstruction_screened_poisson(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| generate_surface_reconstruction_vcg(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| generate_voronoi_atlas_parametrization(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| generate_voronoi_filtering(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| generate_voronoi_scaffolding(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| get_area_and_perimeter_of_selection(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| get_depth_complexity(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| get_geometric_measures(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| get_hausdorff_distance(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| get_overlapping_meshes_graph(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| get_scalar_histogram_per_face(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| get_scalar_histogram_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| get_scalar_statistics_per_face(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| get_scalar_statistics_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| get_topological_measures(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| get_topological_measures_from_quad_mesh(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| is_current_mesh_visible(...)
| is_current_mesh_visible(self: pymeshlab.pmeshlab.MeshSet) -> bool
|
| Returns a boolean indicating whether the current mesh is visible or not.Raises a :py:exc:`PyMeshLabException` if the MeshSet has no current mesh (zero meshes).
|
| is_mesh_visible(...)
| is_mesh_visible(self: pymeshlab.pmeshlab.MeshSet, id: int) -> bool
|
| Returns a boolean indicating whether the mesh with the given ID is visible or not.Raises a :py:exc:`PyMeshLabException` if the given ID is not found in the MeshSet.
|
| load_active_raster_cameras(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| load_filter_script(...)
| load_filter_script(self: pymeshlab.pmeshlab.MeshSet, filter_script_name: str) -> None
|
| Loads from a .mlx file the current filter script.
|
| load_new_mesh(...)
| load_new_mesh(self: pymeshlab.pmeshlab.MeshSet, file_name: str, **kwargs) -> None
|
| Loads the mesh in the given filename and adds the mesh in the MeshSet. The loaded mesh becomes the current one. This method accepts a list of parameters that depends on the format of the file that is being loaded. The list of possible parameters is listed in the ::ref:`load_mesh_parameters` page. Raises a :py:exc:`PyMeshLabException` if the file is not found, if the format of the file is not known by PyMeshLab or if there was an error while loading the file.
|
| load_new_raster(...)
| load_new_raster(self: pymeshlab.pmeshlab.MeshSet, file_name: str) -> None
|
| Loads the raster in the given filename and adds the raster in the MeshSet. The loaded raster becomes the current one. This method accepts a list of parameters that depends on the format of the file that is being loaded. The list of possible parameters is listed in the :ref:`load_raster_parameters` page. Raises a :py:exc:`PyMeshLabException` if the file is not found, if the format of the file is not known by PyMeshLab or if there was an error while loading the file.
|
| load_project(...)
| load_project(self: pymeshlab.pmeshlab.MeshSet, file_name: object) -> None
|
| Loads a project from the given file name(s) and stores it in the MeshSet. This function can accept a string as a single filename, or a list of strings if the project is composed of more than one file. E.g. ``ms.load_project(['bundle.rd.out', 'cams.txt'])``.
|
| mesh(...)
| mesh(self: pymeshlab.pmeshlab.MeshSet, id: int) -> pymeshlab.pmeshlab.Mesh
|
| Returns a reference to the mesh having the given id in the MeshSet. Raises a :py:exc:`PyMeshLabException` if the given ID is not found in the MeshSet.
|
| mesh_id_exists(...)
| mesh_id_exists(self: pymeshlab.pmeshlab.MeshSet, id: int) -> bool
|
| Returns true if the given id exists in the MeshSet.
|
| mesh_number(...)
| mesh_number(self: pymeshlab.pmeshlab.MeshSet) -> int
|
| Returns the number of meshes contained in the MeshSet.
|
| meshing_close_holes(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| meshing_cut_along_crease_edges(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| meshing_decimation_clustering(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| meshing_decimation_edge_collapse_for_marching_cube_meshes(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| meshing_decimation_quadric_edge_collapse(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| meshing_decimation_quadric_edge_collapse_with_texture(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| meshing_edge_flip_by_curvature_optimization(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| meshing_edge_flip_by_planar_optimization(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| meshing_invert_face_orientation(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| meshing_isotropic_explicit_remeshing(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| meshing_merge_close_vertices(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| meshing_poly_to_tri(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| meshing_re_orient_faces_by_geometry(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| meshing_re_orient_faces_coherently(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| meshing_refine_by_function(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| meshing_remove_all_faces(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| meshing_remove_connected_component_by_diameter(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| meshing_remove_connected_component_by_face_number(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| meshing_remove_duplicate_faces(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| meshing_remove_duplicate_vertices(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| meshing_remove_folded_faces(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| meshing_remove_null_faces(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| meshing_remove_selected_faces(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| meshing_remove_selected_vertices(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| meshing_remove_selected_vertices_and_faces(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| meshing_remove_t_vertices(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| meshing_remove_unreferenced_vertices(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| meshing_remove_vertices_by_scalar(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| meshing_repair_non_manifold_edges(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| meshing_repair_non_manifold_vertices(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| meshing_snap_mismatched_borders(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| meshing_surface_subdivision_butterfly(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| meshing_surface_subdivision_catmull_clark(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| meshing_surface_subdivision_doo_sabin(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| meshing_surface_subdivision_loop(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| meshing_surface_subdivision_ls3_loop(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| meshing_surface_subdivision_midpoint(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| meshing_tri_to_quad_by_4_8_subdivision(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| meshing_tri_to_quad_by_smart_triangle_pairing(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| meshing_tri_to_quad_dominant(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| meshing_vertex_attribute_seam(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| number_meshes(...)
| number_meshes(self: pymeshlab.pmeshlab.MeshSet) -> int
|
| **This function is deprecated.** Returns the number of meshes contained in the MeshSet.
|
| number_rasters(...)
| number_rasters(self: pymeshlab.pmeshlab.MeshSet) -> int
|
| **This function is deprecated.** Returns the number of rasters contained in the MeshSet.
|
| nxs_build(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| nxs_compress(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| print_filter_script(...)
| print_filter_script(self: pymeshlab.pmeshlab.MeshSet) -> None
|
| Prints all the filters present on the current filter script, with all the parameters and their values.
|
| print_status(...)
| print_status(self: pymeshlab.pmeshlab.MeshSet) -> None
|
| Prints the status of the MeshSet (number of meshes, and for every mesh its ID, its label and its full name.)
|
| raster_alignment_mutual_information(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| raster_global_refinement_mutual_information(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| raster_number(...)
| raster_number(self: pymeshlab.pmeshlab.MeshSet) -> int
|
| Returns the number of rasters contained in the MeshSet.
|
| save_active_raster_cameras(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| save_current_mesh(...)
| save_current_mesh(self: pymeshlab.pmeshlab.MeshSet, file_name: str, save_textures: bool = True, texture_quality: int = -1, **kwargs) -> None
|
| Saves the current mesh in the MeshSet in a file having the given file name. This method accepts a list of parameters that depends on the format of the file that is being saved. The list of possible parameters is listed in the :ref:`save_mesh_parameters` page. Raises a :py:exc:`PyMeshLabException` if the MeshSet has no current selected mesh, if the format of the file is not known by PyMeshLab or if there was an error while writing the file.
|
| save_filter_script(...)
| save_filter_script(self: pymeshlab.pmeshlab.MeshSet, filter_script_name: str) -> None
|
| Saves in a .mlx file the current filter script.
|
| save_project(...)
| save_project(self: pymeshlab.pmeshlab.MeshSet, file_name: str) -> None
|
| Saves the content of the MeshSet in a file having the given file name.
|
| save_snapshot(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| set_camera_per_mesh(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| set_camera_per_raster(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| set_color_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| set_current_mesh(...)
| set_current_mesh(self: pymeshlab.pmeshlab.MeshSet, new_curr_id: int) -> None
|
| Selects as current mesh the mesh having the given ID. Raises a :py:exc:`PyMeshLabException` if the given ID is not found in the MeshSet.
|
| set_current_mesh_visibility(...)
| set_current_mesh_visibility(self: pymeshlab.pmeshlab.MeshSet, visibility: bool) -> None
|
| Sets the visibility of the current mesh according to the given boolean argument.Raises a :py:exc:`PyMeshLabException` if the MeshSet has no current mesh (zero meshes).
|
| set_matrix(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| set_matrix_identity(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| set_mesh_name(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| set_mesh_visibility(...)
| set_mesh_visibility(self: pymeshlab.pmeshlab.MeshSet, id: int, visibility: bool) -> None
|
| Sets the visibility of the mesh with the given ID according to the given boolean argument.Raises a :py:exc:`PyMeshLabException` if the given ID is not found in the MeshSet.
|
| set_parameter_verbosity(...)
| set_parameter_verbosity(self: pymeshlab.pmeshlab.MeshSet, verbosity: bool) -> None
|
| Sets the verbosity of the MeshSet, regarding only the print of the parameters when running afilter. When set to true, only the parameters of the filter with their values will be printed when a filter is executed. Other messages are not printed.
|
| set_raster_name(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| set_selection_all(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| set_selection_none(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| set_texture_per_mesh(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| set_verbosity(...)
| set_verbosity(self: pymeshlab.pmeshlab.MeshSet, verbosity: bool) -> None
|
| Sets the verbosity when using the MeshSet class. When set to true, all the logs that usually are printed in the bottom left of MeshLab, along with other messages, are printed when filters are applied.
|
| show_polyscope(self) from pymeshlab.polyscope_functions
|
| transfer_attributes_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| transfer_attributes_to_texture_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| transfer_iso_parametrization_between_meshes(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| transfer_texture_to_color_per_vertex(self, **kwargs) from pymeshlab.bind_function.<locals>
|
| ----------------------------------------------------------------------
| Static methods inherited from pybind11_builtins.pybind11_object:
|
| __new__(*args, **kwargs) class method of pybind11_builtins.pybind11_object
| Create and return a new object. See help(type) for accurate signature.
class MissingCompactnessException(builtins.Exception)
| Exception raised when the compactness of some components of a :py:class:`Mesh` is required. Generally, a mesh is not compact when some elements have been removed.
|
| Method resolution order:
| MissingCompactnessException
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Data descriptors defined here:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.Exception:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class MissingComponentException(builtins.Exception)
| Exception raised when a component required by a filter is missing in a :py:class:`Mesh` object.
|
| Method resolution order:
| MissingComponentException
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Data descriptors defined here:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.Exception:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
class PercentageValue(pybind11_builtins.pybind11_object)
| Method resolution order:
| PercentageValue
| pybind11_builtins.pybind11_object
| builtins.object
|
| Methods defined here:
|
| __init__(...)
| __init__(self: pymeshlab.pmeshlab.PercentageValue, arg0: float) -> None
|
| Constructor of the :py:class:`Percentage` class. Takes as input a float value between 0 and 100 (default: 0) and initializes the percentage. Raises a :py:exc:`InvalidPercentageException` if the value is not between 0 and 100.
|
| set_value(...)
| set_value(self: pymeshlab.pmeshlab.PercentageValue, arg0: float) -> None
|
| Sets the value of the percentage. Raises a :py:exc:`InvalidPercentageException` if the value is not between 0 and 100.
|
| value(...)
| value(self: pymeshlab.pmeshlab.PercentageValue) -> float
|
| Returns the value of the percentage [0-100].
|
| ----------------------------------------------------------------------
| Static methods inherited from pybind11_builtins.pybind11_object:
|
| __new__(*args, **kwargs) class method of pybind11_builtins.pybind11_object
| Create and return a new object. See help(type) for accurate signature.
class PureValue(pybind11_builtins.pybind11_object)
| Method resolution order:
| PureValue
| pybind11_builtins.pybind11_object
| builtins.object
|
| Methods defined here:
|
| __init__(...)
| __init__(self: pymeshlab.pmeshlab.PureValue, arg0: float) -> None
|
| Constructor of the :py:class:`AbsoluteValue` class. Takes as input a float value (default: 0) and initializes the absolute value.
|
| set_value(...)
| set_value(self: pymeshlab.pmeshlab.PureValue, arg0: float) -> None
|
| Sets the value of the absolute value.
|
| value(...)
| value(self: pymeshlab.pmeshlab.PureValue) -> float
|
| Returns the value of the absolute value.
|
| ----------------------------------------------------------------------
| Static methods inherited from pybind11_builtins.pybind11_object:
|
| __new__(*args, **kwargs) class method of pybind11_builtins.pybind11_object
| Create and return a new object. See help(type) for accurate signature.
class PyMeshLabException(builtins.Exception)
| Generic PyMeshLab exception.
|
| Method resolution order:
| PyMeshLabException
| builtins.Exception
| builtins.BaseException
| builtins.object
|
| Data descriptors defined here:
|
| __weakref__
| list of weak references to the object
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.Exception:
|
| __init__(self, /, *args, **kwargs)
| Initialize self. See help(type(self)) for accurate signature.
|
| ----------------------------------------------------------------------
| Static methods inherited from builtins.Exception:
|
| __new__(*args, **kwargs) class method of builtins.Exception
| Create and return a new object. See help(type) for accurate signature.
|
| ----------------------------------------------------------------------
| Methods inherited from builtins.BaseException:
|
| __getattribute__(self, name, /)
| Return getattr(self, name).
|
| __reduce__(...)
| Helper for pickle.
|
| __repr__(self, /)
| Return repr(self).
|
| __setstate__(...)
|
| __str__(self, /)
| Return str(self).
|
| add_note(...)
| Exception.add_note(note) --
| add a note to the exception
|
| with_traceback(...)
| Exception.with_traceback(tb) --
| set self.__traceback__ to tb and return self.
|
| ----------------------------------------------------------------------
| Data descriptors inherited from builtins.BaseException:
|
| __cause__
| exception cause
|
| __context__
| exception context
|
| __dict__
|
| __suppress_context__
|
| __traceback__
|
| args
FUNCTIONS
filter_list(...) method of builtins.PyCapsule instance
filter_list() -> list[str]
Returns a list of all the (python names of the) filters that have been loaded in the current session of PyMeshLab.
load_default_plugins(...) method of builtins.PyCapsule instance
load_default_plugins() -> None
Loads the set of default plugins that are shipped with pymeshlab. This function is automatically run when importing pymeshlab, and it should be called just one time per session. If called when plugins are already loaded, a :py:exc:`PyMeshLabException` will be raised.
load_plugin(...) method of builtins.PyCapsule instance
load_plugin(arg0: str) -> None
Allows to load an extra plugin into PyMeshLab, given the file name of the MeshLab plugin. Throws a :py:exc:`PyMeshLabException` if the load of the plugin fails.
number_plugins(...) method of builtins.PyCapsule instance
number_plugins() -> int
Returns the number of plugins loaded in the current session of PyMeshLab.
plugin_number(...) method of builtins.PyCapsule instance
plugin_number() -> int
Returns the number of plugins loaded in the current session of PyMeshLab.
print_filter_list(...) method of builtins.PyCapsule instance
print_filter_list() -> None
Prints the list of all the filters have been loaded in the current session of PyMeshLab.
print_filter_parameter_list(...) method of builtins.PyCapsule instance
print_filter_parameter_list(arg0: str) -> None
Prints the list of the parameters of the given filter, with their default values.
print_plugin_filter_list(...) method of builtins.PyCapsule instance
print_plugin_filter_list(arg0: str) -> None
Prints the list of filters contained in the given plugin name.
print_plugin_list(...) method of builtins.PyCapsule instance
print_plugin_list() -> None
Prints all the meshlab plugins loaded in the current session of PyMeshLab.
print_pymeshlab_version(...) method of builtins.PyCapsule instance
print_pymeshlab_version() -> None
Prints the PyMeshLab version that is currently running.
search(...) method of builtins.PyCapsule instance
search(arg0: str) -> None
Performs a search between the filters of pymeshlab with the given a keyword. Prints the filter names and a link to the documentation of the filters.
VERSION
2025.7.post1
FILE
c:\users\youse\appdata\local\programs\python\python312\lib\site-packages\pymeshlab\pmeshlab.cp312-win_amd64.pyd
pymeshlab.polyscope_functions
Python Library Documentation: module pymeshlab.polyscope_functions in pymeshlab
NAME
pymeshlab.polyscope_functions
FUNCTIONS
show_polyscope(self)
FILE
c:\users\youse\appdata\local\programs\python\python312\lib\site-packages\pymeshlab\polyscope_functions.py
pymeshlab.print_filter_list
Python Library Documentation: built-in function print_filter_list in module pymeshlab.pmeshlab
print_filter_list(...) method of builtins.PyCapsule instance
print_filter_list() -> None
Prints the list of all the filters have been loaded in the current session of PyMeshLab.
pymeshlab.print_filter_parameter_list
Python Library Documentation: built-in function print_filter_parameter_list in module pymeshlab.pmeshlab
print_filter_parameter_list(...) method of builtins.PyCapsule instance
print_filter_parameter_list(arg0: str) -> None
Prints the list of the parameters of the given filter, with their default values.
pymeshlab.print_plugin_filter_list
Python Library Documentation: built-in function print_plugin_filter_list in module pymeshlab.pmeshlab
print_plugin_filter_list(...) method of builtins.PyCapsule instance
print_plugin_filter_list(arg0: str) -> None
Prints the list of filters contained in the given plugin name.
pymeshlab.print_plugin_list
Python Library Documentation: built-in function print_plugin_list in module pymeshlab.pmeshlab
print_plugin_list(...) method of builtins.PyCapsule instance
print_plugin_list() -> None
Prints all the meshlab plugins loaded in the current session of PyMeshLab.
pymeshlab.print_pymeshlab_version
Python Library Documentation: built-in function print_pymeshlab_version in module pymeshlab.pmeshlab
print_pymeshlab_version(...) method of builtins.PyCapsule instance
print_pymeshlab_version() -> None
Prints the PyMeshLab version that is currently running.
pymeshlab.replace_pymeshlab_filter_names
Python Library Documentation: function replace_pymeshlab_filter_names in module pymeshlab.replacer
replace_pymeshlab_filter_names(input_script)
# replaces all the old filter names with the new ones, using the file
# keys.txt that contains the pairs {oldname, newname}
pymeshlab.replacer
Python Library Documentation: module pymeshlab.replacer in pymeshlab
NAME
pymeshlab.replacer
FUNCTIONS
isdir = _path_isdir(s)
Return true if the pathname refers to an existing directory.
isfile = _path_isfile(path)
Test whether a path is a regular file
listdir(path=None)
Return a list containing the names of the files in the directory.
path can be specified as either str, bytes, or a path-like object. If path is bytes,
the filenames returned will also be bytes; in all other circumstances
the filenames returned will be str.
If path is None, uses the path='.'.
On some platforms, path may also be specified as an open file descriptor;\
the file descriptor must refer to a directory.
If this functionality is unavailable, using it raises NotImplementedError.
The list is in arbitrary order. It does not include the special
entries '.' and '..' even if they are present in the directory.
replace_all(text, dic)
replace_pymeshlab_filter_names(input_script)
# replaces all the old filter names with the new ones, using the file
# keys.txt that contains the pairs {oldname, newname}
FILE
c:\users\youse\appdata\local\programs\python\python312\lib\site-packages\pymeshlab\replacer.py
pymeshlab.search
Python Library Documentation: built-in function search in module pymeshlab.pmeshlab
search(...) method of builtins.PyCapsule instance
search(arg0: str) -> None
Performs a search between the filters of pymeshlab with the given a keyword. Prints the filter names and a link to the documentation of the filters.
pymeshlab.show_polyscope
Python Library Documentation: function show_polyscope in module pymeshlab.polyscope_functions show_polyscope(self)
pymeshlab.this_path
Error rendering doc: No Python documentation found for 'C:\\Users\\Youse\\AppData\\Local\\Programs\\Python\\Python312\\Lib\\site-packages\\pymeshlab'. Use help() to get the interactive help utility. Use help(str) for help on the str class.
pymeshlab.use_cpu_opengl
Python Library Documentation: function use_cpu_opengl in module pymeshlab
use_cpu_opengl()
# utility function for windows to use cpu opengl dll if opengl is not provided in the system