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
midpointof 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
halfedgeandhalfedge.nextwhen this method terminates. Note thathalfedge.pairreferences a different halfedge after the split.