__iter__
- Mesh.__iter__()[source]
Face iterator.
The returned iterator visits all faces of a mesh that are not marked as deleted in order of ascending face indices.
- Yields:
Face – Next face in insertion order traversal.
The loop that visits all faces of a mesh that contribute to its combinatorics
1for f in mesh: 2 # do something with the face 3 ...
is equivalent to explicitly checking the
deleted
attribute of a face:1for f in mesh.faces: 2 if not f.deleted: 3 # do something with the face 4 ...