Contents User Forum Source Index APIs by Task APIs by Level Data


G3D::MeshAlg::Edge Class Reference

Oriented, indexed edge. More...

#include <MeshAlg.h>

List of all members.

Public Member Functions

bool boundary () const
bool containsVertex (int v) const
 Edge ()
bool inFace (int f) const
Edge reverse () const

Public Attributes

int faceIndex [2]
int vertexIndex [2]


Detailed Description

Oriented, indexed edge.


Constructor & Destructor Documentation

G3D::MeshAlg::Edge::Edge (  ) 


Member Function Documentation

bool G3D::MeshAlg::Edge::boundary (  )  const [inline]

Returns true if either faceIndex is NONE.

bool G3D::MeshAlg::Edge::containsVertex ( int  v  )  const [inline]

bool G3D::MeshAlg::Edge::inFace ( int  f  )  const [inline]

Returns true if f is contained in the faceIndex array in either slot.

To see if it is forward in that face, just check edge.faceIndex[0] == f.

Edge G3D::MeshAlg::Edge::reverse (  )  const [inline]

Returns the reversed edge.


Member Data Documentation

The edge is directed forward in face 0 backward in face 1.

Face index of MeshAlg::Face::NONE indicates a boundary (a.k.a. crack, broken) edge.

Degenerate edges may include the same vertex times.


The documentation for this class was generated from the following file:
Generated on Thu Aug 2 11:40:47 2007 for G3D by doxygen 1.5.2
Hosted by SourceForge.net Logo