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 halfedge attribute.

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

barycenter

Face barycenter.

boundary

Topological state.

deleted

Internal state.

halfedge

Incident halfedge.

index

Face index.

valence

Face valence.