collapse_halfedge
- Mesh.collapse_halfedge(halfedge, point=None, del_target=True, *, check=True)[source]
Perform edge collapse.
Collapse halfedge into its
origin
vertex. By default, thetarget
vertex of halfedge is marked as deleted but it can also be kept as an isolated vertex.- Parameters:
- Raises:
ValueError – If halfedge is a boundary halfedge.
- Returns:
Reference to the
origin
of halfedge orNone
in case of failure (the latter behavior requirescheck=True
).- Return type:
Note
It is assumed that the applicability of an edge collapse has been checked for explicitly via
collapsible
when skipping the test.