Halfedge
- class m3sh.hds.Halfedge(origin, target)[source]
Halfedge base class.
Halfedges store references to their vertices, the successor, predecessor, and twin halfedge as well as the incident face – the face to its left. A closed loop of halfedges defines a face and its orientation. Successor and predecessor refer to the next and previous halfedge in such a loop.
- Parameters:
Note
As halfedges are stored in a dictionary and not in a list, they do not have a canonical index value but a key that is formed by the pair of origin and target vertex.
Attributes
Topological state.
Topological state.
Internal state.
Incident face.
Halfedge flags.
Topological state.
Halfedge midpoint.
Successor halfedge.
Halfedge origin vertex.
Opposite halfedge.
Predecessor halfedge.
Halfedge target vertex.
Halfedge direction vector.
Special methods
__contains__
(vertex)Incidence test.
__getitem__
(index)Vertex access.
__iter__
()Vertex iterator.