HE::Vertex Class Reference

Class that represents the vertices of the mesh. It basic topologic and geometric information. More...

#include <vertex.h>

List of all members.

Public Member Functions

edge_circulator begin ()
 Circulator referring to an arbitrary departing HalfEdge.
const_edge_circulator begin () const
 Const circulator referring to an arbitrary departing HalfEdge.
 Vertex (int i=-1)
 Constructor.
 Vertex (const Geometry::Vector3Df &pos, int i=-1)
 Constructor.
 Vertex (const Geometry::Vector3Df &pos, HalfEdge *e, int i=-1)
 Constructor.
void index (int i)
 Sets the index of the Vertex in the mesh.
void position (const Geometry::Vector3Df &pos)
 Sets the position of the Vertex.
void edge (HalfEdge *e)
 Associates an arbitrary HalfEdge to the Vertex.
int index () const
 Returns the index of the Vertex object.
const
Geometry::Vector3Df
position () const
 Returns the position of the Vertex.
HalfEdgeedge ()
 Returns an arbitrary HalfEdge associated to the Vertex.
const HalfEdgeedge () const
 Returns an arbitrary const HalfEdge associated to the Vertex.
Geometry::Vector3Df normal () const
 Computes the normal of the Vertex.
int valence () const
 Counts the number of HalfEdge objects departing from the Vertex.
int degree () const
 Counts the number of HalfEdge objects departing from the Vertex.
bool isBoundary () const
bool operator== (const Vertex &v) const
HalfEdgeedgeTo (const Vertex *v)
 Are these vertices the same one?
const HalfEdgeedgeTo (const Vertex *v) const
 Returns the HalfEdge that departs from this Vertex and ends in Vertex 'v'.
HalfEdgeedgeTo (int v)
 Returns the HalfEdge that departs from this Vertex and ends in Vertex with index 'v'.
const HalfEdgeedgeTo (int v) const
 Returns the HalfEdge that departs from this Vertex and ends in Vertex with index 'v'.

Protected Attributes

Geometry::Vector3Df _pos
HalfEdge_edge
int _index

Classes

class  const_edge_circulator
 Const circulator for the edges departing from this Vertex. More...
class  edge_circulator


Detailed Description

Class that represents the vertices of the mesh. It basic topologic and geometric information.

Definition at line 32 of file vertex.h.


Member Function Documentation

HalfEdge* HE::Vertex::edgeTo ( const Vertex v  )  [inline]

Are these vertices the same one?

Returns the HalfEdge that departs from this Vertex and ends in Vertex 'v'.

Definition at line 102 of file vertex.h.

References index().

Referenced by edgeTo().


The documentation for this class was generated from the following files:
Generated on Wed Apr 9 19:22:40 2008 for HalfEdge library by  doxygen 1.5.3