m3sh.itertools.
faces#
- faces(obj)#
Face iterator.
Iterator visiting the adjacent/incident faces of obj. Faces are adjacent if they share a common edge.
- Parameters:
- objVertex or Face or Mesh
The base object.
- Yields:
- Face
Next face in a traversal of all adjacent/incident faces. When applied to a mesh, this iterator skips any deleted faces still present in its face list.
Examples
For vertex input all incident faces are visited in counter-clockwise order. For non-boundary vertices this is equivalent to
h = v.halfedge while True: f = h.face h = h.prev.pair if h is v.halfedge: break