pymeshfix.PyTMesh.clean

PyTMesh.clean()

Remove self-intersections and degenerate faces.

Iteratively call strongDegeneracyRemoval and strongIntersectionRemoval to produce an eventually clean mesh without degeneracies and intersections. The two aforementioned methods are called up to max_iter times and each of them is called using ‘inner_loops’ as a parameter. Returns true only if the mesh could be completely cleaned.

Examples

>>> tin.clean(max_iters=10, inner_loops=3)