pymeshfix.clean_from_file#

pymeshfix.clean_from_file = <nanobind.nb_func object>#

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

Clean and repair a triangular surface mesh from a file.

Parameters:
  • infile (str) – Input mesh filename.

  • outfile (str) – Output mesh filename.

  • verbose (bool, default: False) – Enable verbose output.

  • joincomp (bool, default False) – Attempt to join nearby open components.

Examples

Clean a mesh without using pyvista or vtk.

>>> import pymeshfix
>>> pymeshfix.clean_from_file('inmesh.ply', 'outmesh.ply')
Type:

clean_from_file(infile

Type:

str, outfile