pymeshfix.clean_from_file#
- pymeshfix.clean_from_file(infile, outfile, verbose=False, joincomp=False)#
Performs default cleaning procedure on an input file and writes to disk.
Performs default cleaning procedure on input file and writes the repaired mesh to disk. Output file will be a single manifold mesh.
- Parameters:
infile (str) – Filename of input file to read. Must be either a .stl, .off or .ply file.
outfile (str) – Filename of input file to write. Must be either a .stl, .off or .ply file.
verbose (bool, optional) – Prints progress to stdout. Default
True
.joincomp (bool, optional) – Attempt to join nearby open components. Default
False
.
Examples
Clean a mesh without using pyvista or vtk.
>>> import pymeshfix >>> pymeshfix.clean_from_file('inmesh.ply', 'outmesh.ply')