In file triangulation/TriangulationVertex3D.h:

class TriangulationVertex3D : public TriangulationVertex

a vertex of a 3D triangulation

Inheritance:


Public Fields

double vertexMetric
used to write bb files

Public Methods

const Vec3 & getPosition () const
return the current position
void setPosition (const Vec3 &pos)
set the vertex position
Vec3 getNormal () const
return the current normal orientation
double getGaussianCurvature () const
return the gaussian curvature
void computeNormal ()
compute the vertex normal from the neighboring triangle normals and store it in normal
void computeGaussianCurvature ()
compute the vertex Gaussian Curvature and store it in gaussianCurvature
Triangulation3D* getTriangulation () const
returns the 3D triangulation the vertex belongs to
TriangleVertex3DIterator getTriangleIterator (void) const
returns an iterator over neighboring triangles
VertexVertex3DIterator getVertexIterator (void) const
returns an iterator over neighboring vertices

Public

constructor
TriangulationVertex3D (Triangulation *mesh, const Vec3 &_position=Vec3(0, 0, 0), bool empty=false, TriangulationEdge *edge=0, unsigned int orientation=0 )
constructor
destructor
virtual ~TriangulationVertex3D ()
delete vertex

Protected Fields

Vec3 position
vertex position
Vec3 normal
vertex normal
double gaussianCurvature
discrete Gaussian curvature

Inherited from TriangulationVertex:

Public Methods

void setEdge(TriangulationEdge *e)
void setOrientation(unsigned int o)
TriangulationEdge* getFirstEdge(void) const
unsigned int getOrientation(void) const
TriangulationTriangle* getFirstTriangle(void) const
bool isAdjacent(TriangulationVertex *v) const
bool isReal() const
static TriangulationEdge* nextEdge(const TriangulationEdge *e, int& orientation)
static TriangulationEdge* previousEdge(const TriangulationEdge *e, int& orientation)
VertexContour* getVertexContour() const
unsigned int getNumberAdjacentTriangles(void) const
unsigned int getNumberAdjacentEdges(void) const
template TriangulationVertex::EdgeVertexIterator getEdgeIterator(void) const
int getRef(void) const
void setVirtualNeighborhood()
void removeVirtualNeighborhood()

Public

vertex iterators

iterators over vertex shell vertices or triangles
class BasicIterator
a basic iterator around a vertex
const TriangulationVertex* vertex
vertex to iterate on
TriangulationEdge* currentEdge
current edge
int currentOrientation
current edge orientation
TriangulationTriangle* start
first triangle around vertex
bool hasChanged
whether the iterator has been modified
void next(void)
get next edge
void previous(void)
get previous edge
constructor
BasicIterator(const TriangulationVertex *v)
constructor builds a new iterator on vertex
destructor
~BasicIterator()
delete vertex
void first(void)
set iterator to first element
void last(void)
set iterator to last element
bool isAtEnd(void)
is iterator at end of vertex?
template class TriangleVertexIterator: public BasicIterator
iterator on vertex triangles
constructor
TriangleVertexIterator(const TriangulationVertex *v)
constructor builds a triangle iterator around a vertex
destructor
~TriangleVertexIterator()
delete vertex
T* operator*(void) const
returns current triangle
T* operator++(void)
set iterator on next triangle and returns it
T* operator++(int)
returns current triangle then set iterator on next one
T* operator--(void)
set iterator on previous triangle and returns it
T* operator--(int)
returns current triangle then set iterator on previous one
template class VertexIterator: public BasicIterator
basic vertex iterator around a vertex
constructor
VertexIterator(const TriangulationVertex *v)
constructor builds a new iterator on vertex
destructor
~VertexIterator()
delete vertex
T* operator*(void) const
returns current vertex
T* operator++(void)
set iterator on next vertex and returns it
T* operator++(int)
returns current vertex then set iterator on next one
T* operator--(void)
set iterator on previous vertex and returns it
T* operator--(int)
returns current vertex then set iterator on previous one
template class EdgeVertexIterator: public BasicIterator
iterator over vertex edges
constructor
EdgeVertexIterator(const TriangulationVertex *v)
constructor builds an edge iterator around a vertex
destructor
~EdgeVertexIterator()
delete vertex
T* operator*(void) const
returns current edge
T* operator++(void)
set iterator on next edge and returns it
T* operator++(int)
returns current edge then set iterator on next one
T* operator--(void)
set iterator on previous edge and returns it
T* operator--(int)
returns current edge then set iterator on previous one

Protected Fields

Triangulation* triangulation
TriangulationEdge* edge
unsigned int orientation
VertexContour* vertexContour
int ref
bool empty

Documentation

a vertex of a 3D triangulation
Vec3 position
vertex position

Vec3 normal
vertex normal

double gaussianCurvature
discrete Gaussian curvature

double vertexMetric
used to write bb files

constructor

TriangulationVertex3D(Triangulation *mesh, const Vec3 &_position=Vec3(0, 0, 0), bool empty=false, TriangulationEdge *edge=0, unsigned int orientation=0 )
constructor
Parameters:
mesh - vertex mesh
_position - vertex position
empty - if the vertex is virtual or real
edge - one face edge
orientation - face orientation versus edge orientation (0 or 1)
_position - the vertex position

destructor

virtual ~TriangulationVertex3D()
delete vertex

const Vec3 & getPosition() const
return the current position

void setPosition(const Vec3 &pos)
set the vertex position
Parameters:
pos - the new vertex position

Vec3 getNormal() const
return the current normal orientation

double getGaussianCurvature() const
return the gaussian curvature

void computeNormal()
compute the vertex normal from the neighboring triangle normals and store it in normal

void computeGaussianCurvature()
compute the vertex Gaussian Curvature and store it in gaussianCurvature

Triangulation3D* getTriangulation() const
returns the 3D triangulation the vertex belongs to

TriangleVertex3DIterator getTriangleIterator(void) const
returns an iterator over neighboring triangles

VertexVertex3DIterator getVertexIterator(void) const
returns an iterator over neighboring vertices


Direct child classes:
PrecomputedTriangulationVertex3D
ActiveTriangulationVertex3D

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de