API Reference#

These are the two public classes that expose the meshfix API to Python. The pure Python python class is MeshFix, which requires pyvista for some of its features. The lower level cython extension of meshfix is PyTMesh, which does not require pyvista for any of its functionality.

pymeshfix.MeshFix(*args[, verbose])

Clean and tetrahedralize surface meshes using MeshFix.

pymeshfix.PyTMesh(*args, **kwargs)

Mesh repair and cleaning class.

Lower level convenience methods that expose the lower level functionality of meshfix without using pyvista.

pymeshfix.clean_from_file

str, verbose: bool = False, joincomp: bool = False) -> None

pymeshfix.clean_from_arrays

numpy.ndarray[dtype=int32, shape=(*, *), order='C', writable=False], verbose: bool = False, joincomp: bool = False, remove_smallest_components: bool = True) -> tuple