m3sh.hds#

Halfedge data structure.

An orientable 2-manifold mesh (with or without boundary) is represented by a halfedge data structure, see, e.g., [1]. To this end the Mesh class manages three containers:

While surfaces are mainly described as triangle meshes, the halfedge data structure is not limited to triangular faces. Vertex coordinates may live in n-dimensional space. For the above reasons, the Mesh class provides only those geometric operations that do not depend on ambient space dimension or face valence. In particular there is no default implementation to compute face normals as those are only well defined for planar faces in 3-space.

References#

[1]

H. Brönnimann: Designing and Implementing a General Purpose Halfedge Data Structure, In Proceedings of the 5th International Workshop on Algorithm Engineering, 2001.

Classes

Face(index)

Face base class.

Halfedge(origin, target)

Halfedge base class.

Mesh([points, faces, name])

Mesh kernel.

Vertex(index[, parent])

Vertex base class.

Exceptions

NonManifoldError

Manifold exception base class.