HalfFace.faces
- HalfFace.faces(data=False)[source]
“Iterate over the halffaces of the volmesh and yield faces.
- Parameters
data (bool, optional) – Return the face data as well as the face keys.
- Yields
int or tuple – The next face identifier, if
data
isFalse
. The next face as a (face, attr) tuple, ifdata
isTrue
.
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.