m3sh.hds.
Face#
- class Face(index)#
Face base class.
In a halfedge based mesh representation a face is defined by the closed loop of halfedges starting at the
halfedgeattribute.- Parameters:
- indexint
Face index.
Examples
The vertices of a face can be visited in several ways. Using
__len__()and__getitem__()for i in range(len(f)): print(f[i])
is equivalent to using
__iter__()for v in f: print(v)
The latter is much more efficient and preferred.
Attributes