In file tetrahedrisation/TetraTriangle3D.h:

class TetraTriangle3D

Triangle class of a 3D Tetrahedrisation

Inheritance:


Public Methods

void _do_set_vertices (TetraVertex3D* v0, TetraVertex3D* v1, TetraVertex3D* v2)
set the vertices in the tetrahedron @para v0, v1, v2, v3 the vertices @orientation if the orientation of the vertices if correct
inline void setTextureCoordinate (unsigned int i, unsigned int j, double value)
set textCoord j for vertex i;
inline double getTextureCoordinate (int i, int j)
get textCoord j for vertex i;
inline bool isReal ()
if the triangle is real or not
inline TetraSurfaceZone3D* getSurfaceZone () const
returns the zone containing the tetrahedron
void setSurfaceZone (TetraSurfaceZone3D *z)
set the zone containing the tetrahedron
inline Tetra3D* getTetrahedrisation () const
returns the mesh containing the triangle
unsigned int getRef () const
returns the triangle unique reference
inline TetraTetrahedron3D* getTetrahedron (const unsigned int i) const
returns the tetrahedron adjacent to the triangle
inline TetraEdge3D* getEdge (const unsigned int i) const
returns the ith edge linking vertex[(i+1)%3] and vertex[(i+2)%3]
void setVertex (int i, TetraVertex3D* v)
set the value of vertex[i]
inline TetraVertex3D* getVertex (const unsigned int i) const
returns a vertex of the triangle
inline Vec3 getNormal () const
returns the triangle normal
void setRef (unsigned int r)
set the triangle unique reference
inline int vertexIndex (const TetraVertex3D *v) const
get array index of a vertex in vertices array
inline int tetrahedronIndex (const TetraTetrahedron3D *t) const
get array index of a tetrahedron in tetrahedron array
Vec3 getAreaVector ()
returns the normal direction with the area norm
void computeNormal (unsigned int t=2)
compute and store the triangle normal
bool swap ()
swap the triangle into an edge
void split ()
split triangle (neighboring tetras go to division 2

Public

constructor
TetraTriangle3D (Tetra3D *mesh, TetraVertex3D *v0, TetraVertex3D *v1, TetraVertex3D *v2)
3D triangle constructor
destructor
virtual ~TetraTriangle3D ()
delete triangle

Protected Fields

Tetra3D* tetrahedrisation
the mesh containing the triangle
TetraTetrahedron3D* tetrahedron [2]
the two adjacent tetrahedra
unsigned int ref
unique reference of the triangle
Vec3 normal
normal of the triangle
TetraSurfaceZone3D* zone
the surface zone containing the triangle
double textCoord [3][4]
the texture coordinates of the three vertices

Private Fields

TetraVertex3D* vertex [3]
the three vertices of the triangle
TetraTriangle3DIterator triangleListIndex
an iterator pointing to this triangle in triangleList

Private


code called by constructors

Documentation

Triangle class of a 3D Tetrahedrisation
Tetra3D* tetrahedrisation
the mesh containing the triangle

TetraTetrahedron3D* tetrahedron[2]
the two adjacent tetrahedra

TetraVertex3D* vertex[3]
the three vertices of the triangle

TetraTriangle3DIterator triangleListIndex
an iterator pointing to this triangle in triangleList

unsigned int ref
unique reference of the triangle

Vec3 normal
normal of the triangle

TetraSurfaceZone3D* zone
the surface zone containing the triangle

double textCoord[3][4]
the texture coordinates of the three vertices

code called by constructors

void _do_set_vertices(TetraVertex3D* v0, TetraVertex3D* v1, TetraVertex3D* v2)
set the vertices in the tetrahedron @para v0, v1, v2, v3 the vertices @orientation if the orientation of the vertices if correct

constructor

TetraTriangle3D(Tetra3D *mesh, TetraVertex3D *v0, TetraVertex3D *v1, TetraVertex3D *v2)
3D triangle constructor
Parameters:
mesh - tetrahedrisation containing the triangle
v0 - , v1, v2 the 3 vertices in the triangle

destructor

virtual ~TetraTriangle3D()
delete triangle

inline void setTextureCoordinate(unsigned int i, unsigned int j, double value)
set textCoord j for vertex i;

inline double getTextureCoordinate(int i, int j)
get textCoord j for vertex i;

inline bool isReal()
if the triangle is real or not

inline TetraSurfaceZone3D* getSurfaceZone() const
returns the zone containing the tetrahedron

void setSurfaceZone(TetraSurfaceZone3D *z)
set the zone containing the tetrahedron

inline Tetra3D* getTetrahedrisation() const
returns the mesh containing the triangle

unsigned int getRef() const
returns the triangle unique reference

inline TetraTetrahedron3D* getTetrahedron(const unsigned int i) const
returns the tetrahedron adjacent to the triangle

inline TetraEdge3D* getEdge(const unsigned int i) const
returns the ith edge linking vertex[(i+1)%3] and vertex[(i+2)%3]

void setVertex(int i, TetraVertex3D* v)
set the value of vertex[i]

inline TetraVertex3D* getVertex(const unsigned int i) const
returns a vertex of the triangle

inline Vec3 getNormal() const
returns the triangle normal

void setRef(unsigned int r)
set the triangle unique reference

inline int vertexIndex(const TetraVertex3D *v) const
get array index of a vertex in vertices array
Returns:
j such that this->vertex[j] == v or -1 if v is not a vertex of this
Parameters:
v - a vertex

inline int tetrahedronIndex(const TetraTetrahedron3D *t) const
get array index of a tetrahedron in tetrahedron array
Returns:
j such that this->tetrahedron[j] == t or -1 if t is not a tetrahedron of this
Parameters:
t - a tetrahedron

Vec3 getAreaVector()
returns the normal direction with the area norm

void computeNormal(unsigned int t=2)
compute and store the triangle normal

bool swap()
swap the triangle into an edge

void split()
split triangle (neighboring tetras go to division 2


Direct child classes:
ActiveTetraTriangle3D

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