trimesh_boundaries
- trimesh_boundaries(M)[source]
Compute all ordered boundary loops of a manifold triangle mesh.
Uses libigl to extract and order the boundary loops of a triangle mesh. The input mesh must be manifold for correct results.
- Parameters:
- Mtuple[list[list[float]], list[list[int]]]
A mesh represented by a tuple of (vertices, faces) where vertices are 3D points and faces are triangles
- Returns:
- list[list[int]]
The ordered boundary loops of the triangle mesh. Each loop is a sequence of vertex indices defining a closed boundary.
Notes
The input mesh should be manifold. Non-manifold meshes may produce unexpected or incorrect results.