Contents Functions Classes Topics User Forum CVS

G3D::MeshAlg::Edge Class Reference

#include <MeshAlg.h>

List of all members.

Public Member Functions

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

Public Attributes

int vertexIndex [2]
int faceIndex [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::broken  )  const [inline]
 

Deprecated:
Use Edge::boundary

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

int G3D::MeshAlg::Edge::faceIndex[2]
 

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.

int G3D::MeshAlg::Edge::vertexIndex[2]
 

Degenerate edges may include the same vertex times.


The documentation for this class was generated from the following file:
Generated on Mon Jul 17 11:50:46 2006 for G3D by doxygen 1.4.5
Hosted by SourceForge.net Logo