Vertex Class Reference

#include <Vertex.h>

List of all members.


Detailed Description

Vertex for the mesh datastructure.

Definition at line 11 of file Vertex.h.

Public Member Functions

 Vertex (const Vector3 &_pos=Vector3(0, 0, 0))
void assignData (const Vertex &rhs)
bool isBoundary ()
EdgeAroundIterator iterator ()
EdgeAroundIterator iterator (Edge *eFrom)
int getValence ()

Public Attributes

Edgeedge
Vector3 p
Vector3 uv
double min_cone_angle
double max_cone_angle
bool constrained
double cone_angle
int ID
int patchID
bool check

Private Member Functions

const Vertexoperator= (const Vertex &rhs)

Classes

class  EdgeAroundIterator
 The iterator that visits edges or vertices in one ring of the current face in order. More...


Constructor & Destructor Documentation

Vertex::Vertex const Vector3 _pos = Vector3(0,0,0)  )  [inline]
 

Definition at line 37 of file Vertex.h.

00037                                                  : 
00038    edge(NULL), p(_pos), uv(0,0,0)
00039    {
00040       cone_angle = min_cone_angle = max_cone_angle = 2;
00041       constrained = false;
00042       patchID = 0;
00043    }


Member Function Documentation

void Vertex::assignData const Vertex rhs  )  [inline]
 

Definition at line 46 of file Vertex.h.

00046                                      {
00047       if (this != &rhs) {
00048           p = rhs.p;
00049           uv = rhs.uv;
00050           cone_angle = rhs.cone_angle;
00051           min_cone_angle = rhs.min_cone_angle;
00052           max_cone_angle = rhs.max_cone_angle;
00053       }
00054    }

int Vertex::getValence  )  [inline]
 

Definition at line 93 of file Vertex.h.

00093                     {
00094       Vertex::EdgeAroundIterator iter = iterator();
00095       int res = 0;
00096       for (; !iter.end(); iter++)
00097           res++;
00098       return res;
00099    }

bool Vertex::isBoundary  )  [inline]
 

Definition at line 57 of file Vertex.h.

00057                      {
00058       return (edge && !edge->face);
00059    }

EdgeAroundIterator Vertex::iterator Edge eFrom  )  [inline]
 

Definition at line 91 of file Vertex.h.

00091 {return EdgeAroundIterator(eFrom);}

EdgeAroundIterator Vertex::iterator  )  [inline]
 

Definition at line 90 of file Vertex.h.

00090 {return EdgeAroundIterator(edge);}

const Vertex& Vertex::operator= const Vertex rhs  )  [inline, private]
 

Definition at line 14 of file Vertex.h.

00014 { return *this;}


Member Data Documentation

bool Vertex::check
 

Definition at line 35 of file Vertex.h.

double Vertex::cone_angle
 

Definition at line 28 of file Vertex.h.

bool Vertex::constrained
 

Definition at line 27 of file Vertex.h.

Edge* Vertex::edge
 

Definition at line 18 of file Vertex.h.

int Vertex::ID
 

Definition at line 31 of file Vertex.h.

double Vertex::max_cone_angle
 

Definition at line 26 of file Vertex.h.

double Vertex::min_cone_angle
 

Definition at line 25 of file Vertex.h.

Vector3 Vertex::p
 

Definition at line 21 of file Vertex.h.

int Vertex::patchID
 

Definition at line 32 of file Vertex.h.

Vector3 Vertex::uv
 

Definition at line 22 of file Vertex.h.


The documentation for this class was generated from the following file:
Generated on Sat Jun 3 13:33:43 2006 for CirclePatterns by  doxygen 1.4.5