Support Forum       G3D Web Page     
Public Member Functions | Public Attributes | List of all members
G3D::MeshAlg::Vertex Class Reference

Adjacency information for a vertex. More...

Public Member Functions

 Vertex ()
 
bool inEdge (int e) const
 
Returns true if e or ~e is in the edgeIndex list. More...
 
bool inFace (int f) const
 

Public Attributes

SmallArray< int, 6 > edgeIndex
 
Array of edges adjacent to this vertex. More...
 
SmallArray< int, 6 > faceIndex
 
Array of faces containing this vertex. More...
 

Detailed Description

Adjacency information for a vertex.

Does not contain the vertex position or normal, which are stored in the MeshAlg::Geometry object. Vertexs must be stored in an array parallel to (indexed in the same way as) MeshAlg::Geometry::vertexArray.

Constructor & Destructor Documentation

◆ Vertex()

G3D::MeshAlg::Vertex::Vertex ( )
inline

Member Function Documentation

◆ inEdge()

bool G3D::MeshAlg::Vertex::inEdge ( int  e) const
inline


Returns true if e or ~e is in the edgeIndex list.

◆ inFace()

bool G3D::MeshAlg::Vertex::inFace ( int  f) const
inline

Member Data Documentation

◆ edgeIndex

SmallArray<int, 6> G3D::MeshAlg::Vertex::edgeIndex


Array of edges adjacent to this vertex.

Let e = edgeIndex[i].
edge[(e >= 0) ? e : ~e].vertexIndex[0] == this vertex index.

Edges may be listed multiple times if they are degenerate.

Referenced by inEdge().

◆ faceIndex

SmallArray<int, 6> G3D::MeshAlg::Vertex::faceIndex


Array of faces containing this vertex.

Faces may be listed multiple times if they are degenerate.

Referenced by inFace().


documentation generated on Wed Nov 24 2021 08:01:58 using doxygen 1.8.15