#include <dealorthomesh.h>
Public Member Functions | |
FaceInf () | |
int | getPosCellIndex () const |
int | getNegCellIndex () const |
int | getCell1 () |
int | getCell2 () |
double | normal_multiply (double *v) const |
bool | at_boundary () const |
DealOrthoMesh::NormalOrientation | getNormalOrientation () |
unsigned | getNormalNonZeroComponent () |
bool | hasNegCell () const |
bool | hasPosCell () const |
void | getAdjCells (int &posCell, int &negCell) |
Private Member Functions | |
void | setPosNormalCell (unsigned cell) |
void | setNegNormalCell (unsigned cell) |
void | setNormalDirection (DealOrthoMesh::NormalOrientation normal) |
Private Attributes | |
int | m_cell1 |
int | m_cell2 |
DealOrthoMesh::NormalOrientation | m_normal |
Friends | |
class | DealOrthoMesh |
This is an auxiliary class where we store the informations of neighbours cells for each face;
Definition at line 82 of file dealorthomesh.h.
FaceInf::FaceInf | ( | ) | [inline] |
Definition at line 95 of file dealorthomesh.h.
bool FaceInf::at_boundary | ( | ) | const [inline] |
Definition at line 101 of file dealorthomesh.h.
void FaceInf::getAdjCells | ( | int & | posCell, | |
int & | negCell | |||
) |
Return the index of the two cells that contain the face. If the face is at boundary, It contains just one cell. In this case the method return cell1 == cell2
posCell | Output parameter to contain the index of the posCell; | |
negCell | Output parameter to contain the index of the negCell; |
Definition at line 260 of file dealorthomesh.cpp.
00261 { 00262 posCell = getPosCellIndex(); 00263 negCell = getNegCellIndex(); 00264 00265 00266 if (posCell == -1) 00267 posCell=negCell; 00268 else if (negCell == -1) 00269 negCell=posCell; 00270 }
int FaceInf::getCell1 | ( | ) | [inline] |
Get the cell having the face such that the outward normal is positive
Definition at line 98 of file dealorthomesh.h.
int FaceInf::getCell2 | ( | ) | [inline] |
Get the cell having the face such that the outward normal is negative
Definition at line 99 of file dealorthomesh.h.
int FaceInf::getNegCellIndex | ( | ) | const [inline] |
Get the cell having the face such that the outward normal is negative
Definition at line 97 of file dealorthomesh.h.
unsigned FaceInf::getNormalNonZeroComponent | ( | ) | [inline] |
Definition at line 103 of file dealorthomesh.h.
00103 {return m_normal;}
DealOrthoMesh::NormalOrientation FaceInf::getNormalOrientation | ( | ) | [inline] |
Get the direction of the face's normal
Definition at line 102 of file dealorthomesh.h.
int FaceInf::getPosCellIndex | ( | ) | const [inline] |
Get the cell having the face such that the outward normal is positive
Definition at line 96 of file dealorthomesh.h.
bool FaceInf::hasNegCell | ( | ) | const [inline] |
Verify if the face has a cell in its negatice side
Definition at line 104 of file dealorthomesh.h.
bool FaceInf::hasPosCell | ( | ) | const [inline] |
Verify if the face has a cell in its positive side
Definition at line 105 of file dealorthomesh.h.
double FaceInf::normal_multiply | ( | double * | v | ) | const |
Multiply a vector 3D by the normal of the face. Actually a face can have the normal at just three directions aligned with the axes x,y,z since we have an ortho mesh. The normal we multiply is always in the positive orientation (i.e same direction as the principal axes)
v | Array of vetor to be multiplied by the normal of the face. |
Definition at line 110 of file dealorthomesh.cpp.
00111 { 00112 return v[this->m_normal]; 00113 00114 }
void FaceInf::setNegNormalCell | ( | unsigned | cell | ) | [inline, private] |
Definition at line 89 of file dealorthomesh.h.
00089 {m_cell2 = cell;}
void FaceInf::setNormalDirection | ( | DealOrthoMesh::NormalOrientation | normal | ) | [inline, private] |
Definition at line 90 of file dealorthomesh.h.
00090 {m_normal = normal;}
void FaceInf::setPosNormalCell | ( | unsigned | cell | ) | [inline, private] |
Definition at line 88 of file dealorthomesh.h.
00088 {m_cell1 = cell;}
friend class DealOrthoMesh [friend] |
Definition at line 84 of file dealorthomesh.h.
int FaceInf::m_cell1 [private] |
Definition at line 85 of file dealorthomesh.h.
int FaceInf::m_cell2 [private] |
Definition at line 85 of file dealorthomesh.h.
Definition at line 86 of file dealorthomesh.h.