flip_halfedge

Mesh.flip_halfedge(halfedge, *, check=True)[source]

Flip halfedge.

Only halfedges incident to triangular faces can be flipped.

Parameters:
  • halfedge (Halfedge) – The halfedge to be flipped.

  • check (bool, optional) – Pass False to skip flippability test.

Returns:

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

Return type:

Halfedge

Note

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.