Edge of a tetrahedron. More...
#include <Edge3.h>
Public Member Functions | |
Edge3 (Tet3 *pTet_, const int opp3_, const int opp2_) | |
Constructor of Edge3. More... | |
Tet3 * | getTet () const |
Get the tetrahedron. | |
int | getOpp3Index () const |
Get the opp3ITI index. | |
int | getOpp2Index () const |
Get the opp2ITI index. | |
int | getSourceIndex () const |
Get the source index. More... | |
int | getTargetIndex () const |
Get the target index. More... | |
Point3 * | getSourceVtx () const |
Get the source vertex of the edge. | |
Point3 * | getTargetVtx () const |
Get the target vertex of the edge. | |
bool | operator== (const Edge3 &rhs) const |
Check if two undirected edges coincide. More... | |
bool | operator!= (const Edge3 &rhs) const |
Check if two undirected edges are different. More... | |
Friends | |
std::ostream & | operator<< (std::ostream &stream, Edge3 &e) |
An Edge3 is represented by a Tet3 pointer and two two IntraTetIndices opp3 and opp2. The Edge of the tetrahedron is selected as follows: At first, opp3 selects the facet (triangle) of the tetrahedron opposite to the corner addressed by opp3. Then opp2 selects the edge in this triangle opposite to the vertex at position opp2. See the image where opp3=3 and opp2=0. The edge proceeds from corner 1 to corner 2.
FADE3D::Edge3::Edge3 | ( | Tet3 * | pTet_, |
const int | opp3_, | ||
const int | opp2_ | ||
) |
pTet_ | Tetrahedron |
opp3_ | selects one of the four triangles of the tetrahedron |
opp2_ | selects one of the edges of the triangle |
int FADE3D::Edge3::getSourceIndex | ( | ) | const |
int FADE3D::Edge3::getTargetIndex | ( | ) | const |
bool FADE3D::Edge3::operator!= | ( | const Edge3 & | rhs | ) | const |
Two Edge3 objects are different when they do not refer to the same undirected edge.
bool FADE3D::Edge3::operator== | ( | const Edge3 & | rhs | ) | const |
Two edges are equal when their vertices coincide (undirected edge) even if the two objects use different tetrahedra that meet on this edge.