m3sh.hds.Mesh.

boundaries#

Mesh.boundaries(vertices=True, ccw=True)#

Extract boundary components.

By default, boundary curves are returned in counterclockwise orientation, i.e., positively oriented with respect to the mesh orientation.

Parameters:
verticesbool, optional

If True boundaries are represented as lists of boundary vertices. Alternatively, if False, boundary curves are represented as lists of halfedges.

ccwbool, optional

Pass False to reverse the orientation of boundary loops.

Returns:
list[list[Vertex|Halfedge]]

Boundary components. Empty for closed meshes.