#include <vertex.h>
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. | |
HalfEdge * | edge () |
Returns an arbitrary HalfEdge associated to the Vertex. | |
const HalfEdge * | edge () 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 |
HalfEdge * | edgeTo (const Vertex *v) |
Are these vertices the same one? | |
const HalfEdge * | edgeTo (const Vertex *v) const |
Returns the HalfEdge that departs from this Vertex and ends in Vertex 'v'. | |
HalfEdge * | edgeTo (int v) |
Returns the HalfEdge that departs from this Vertex and ends in Vertex with index 'v'. | |
const HalfEdge * | edgeTo (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 |
Definition at line 32 of file vertex.h.