HalfFace.halfface_vertex_ancestor

HalfFace.halfface_vertex_ancestor(halfface, vertex)[source]

Return the vertex before the specified vertex in a specific face.

Parameters:
halffaceint

The identifier of the halfface.

vertexint

The identifier of the vertex.

Returns:
int

The identifier of the vertex before the given vertex in the face cycle.

Raises:
ValueError

If the vertex is not part of the face.