m3sh.hds.Mesh.

split_halfedge#

Mesh.split_halfedge(halfedge, point=None, triangulate=True)#

Split halfedge.

Subdivides halfedge by inserting a new vertex at location point. The resulting polygonal faces to the left and right of the subdivided edge are triangulated on request.

Parameters:
halfedgeHalfedge

Halfedge to split.

pointarray_like, optional

Coordinates of the new vertex. By default midpoint of halfedge is used.

triangulatebool, optional

Triangle fan like triangulation of neighboring faces.

Returns:
Vertex

The newly inserted vertex.

Notes

Combinatorially, the halfedges resulting from the split can be accessed as halfedge and halfedge.next when this method terminates. Note that halfedge.pair references a different halfedge after the split.