pymeshfix.MeshFix.repair#

MeshFix.repair(verbose=False, joincomp=False, remove_smallest_components=True)#

Perform mesh repair using MeshFix’s default repair process.

Parameters:
  • verbose (bool, default: False) – Enables or disables debug printing.

  • 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 are updated inplace. Access them with:

  • Meshfix.points

  • Meshfix.faces

Examples

Repair using the verbose option.

>>> from pyvista import examples
>>> from pymeshfix import MeshFix
>>> mesh = examples.download_bunny()
>>> mfix = MeshFix(mesh)
>>> mfix.plot(show_holes=True)