pymeshfix.PyTMesh.select_intersecting_triangles#

PyTMesh.select_intersecting_triangles(tris_per_cell=50, justproper=False)#

Selects all intersecting triangles.

Selects all the triangles that improperly intersect other parts of the mesh and return their number. The parameter ‘tris_per_cell’ determines the depth of the recursive space subdivision used to keep the complexity under a reasonable threshold. The default value is safe in most cases.

If justproper is true, coincident edges and vertices are not regarded as intersections even if they are not common subsimplexes.

Returns:

Array of face indices.

Return type:

numpy.ndarray

Examples

>>> faces = tin.select_intersecting_triangles()