HalfFace.faces

HalfFace.faces(data=False)[source]

“Iterate over the halffaces of the volmesh and yield faces.

Parameters

data (bool, optional) – If True, yield the face attributes in addition to the face identifiers.

Yields

int | tuple[int, dict[str, Any]] – If data is False, the next face identifier. If data is True, the next face as a (face, attr) tuple.

Notes

Volmesh faces have no topological meaning (analogous to an edge of a mesh). They are typically used for geometric operations (i.e. planarisation). Between the interface of two cells, there are two interior faces (one from each cell). Only one of these two interior faces are returned as a “face”. The unique faces are found by comparing string versions of sorted vertex lists.