collapse_halfedge
- Mesh.collapse_halfedge(halfedge, point=None, del_target=True, *, check=True)[source]
Perform edge collapse.
Collapse halfedge into its
originvertex. By default, thetargetvertex 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
originof halfedge orNonein 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
collapsiblewhen skipping the test.