pymeshfix.MeshFix.repair#
- MeshFix.repair(joincomp: bool = False, remove_smallest_components: bool = True) None#
Perform mesh repair using MeshFix’s default repair process.
- Parameters:
fill_holes (bool, default: True) – Call meshfix’s internal
fill_small_boundaries.joincomp (bool, default: False) – Attempts to join nearby open components.
remove_smallest_components (bool, default: True) – Remove all but the largest isolated component from the mesh before beginning the repair process.
Notes
Vertex and face arrays can be accessed from:
Meshfix.pointsMeshfix.faces
You can alternatively call individual repair functions if you desire specific fixes. For example
MeshFix.fill_holes().Examples
Repair using the verbose option.
>>> from pyvista import examples >>> from pymeshfix import MeshFix >>> mesh = examples.download_bunny() >>> mfix = MeshFix(mesh, verbose=True) >>> mfix.repair() >>> mfix.plot(show_holes=True)