HalfEdge.halfedge_before

HalfEdge.halfedge_before(u, v)[source]

Find the halfedge before the given halfedge in the same face.

Parameters
  • u (int) – The first vertex of the halfedge.

  • v (int) – The second vertex of the halfedge.

Returns

tuple[int, int] – The previous halfedge.