Block.halfedge_face

Block.halfedge_face(edge)

Find the face corresponding to a halfedge.

Parameters:
edgetuple[int, int]

The identifier of the halfedge.

Returns:
int | None

The identifier of the face corresponding to the halfedge. None, if the halfedge is on the outside of a boundary.

Raises:
KeyError

If the halfedge does not exist.