Skip to content

Mesh Navigation

Fedr edited this page Jun 12, 2023 · 2 revisions

EdgeId e = ... is unique identifier of an oriented edge in mesh.

e.sym() - the same edge with opposite orientation.

MeshTopology::next( e ) - next in counter-clockwise direction edge from the same origin-ring.

MeshTopology::prev( e ) - previous in counter-clockwise direction edge from the same origin-ring.

MeshTopology::left( e ) - returns the identifier of the face to the left of e. Invalid returned ID means the presence of hole to the left of e.

MeshTopology::right( e ) - returns the identifier of the face to the right of e. Invalid returned ID means the presence of hole to the right of e.

MeshTopology::org( e ) - returns the identifier of the vertex in the origin of e. It is assumed that all edges either have valid vertices on the ends, or "lone" (not connected to the mesh).

MeshTopology::dest( e ) - returns the identifier of the vertex in the destination of e. It is assumed that all edges either have valid vertices on the ends, or "lone" (not connected to the mesh).

Example 1

MeshLib navigation

Example 2

MeshLib navigation