m3sh.hds.Mesh.

flip_halfedge#

Mesh.flip_halfedge(halfedge, *, check=True)#

Flip halfedge.

Only halfedges incident to triangular faces can be flipped.

Parameters:
halfedgeHalfedge

The halfedge to be flipped.

checkbool, optional

Pass False to skip flippability test.

Returns:
Halfedge

The halfedge resulting from the edge flip or None in case of failure (the latter behavior requires check=True).

Notes

It is assumed that the applicability of an edge flip has been checked explicitly via flippable when skipping the test. Unchecked edge flipping results in undefined behavior.