Feellgood
Public Member Functions | Public Attributes | List of all members
BasicTri Class Reference

Public Member Functions

 BasicTri (const std::array< int, 3 > &inds, const int idReg, const bool surface=false)
 
 BasicTri (const Triangle::Tri &tri)
 
bool operator< (const BasicTri &o) const
 

Public Attributes

std::array< int, 3 > nodesInd
 
int idRegion
 
bool isSurfaceElement
 
bool isFlipped
 

Detailed Description

BasicTri is a simplified version of the class Tri which contains only the nodes, the surface region and the region. It is used when checking the validity of the mesh is needed but not all the triangle elements are needed.

Constructor & Destructor Documentation

◆ BasicTri() [1/2]

BasicTri::BasicTri ( const std::array< int, 3 > &  inds,
const int  idReg,
const bool  surface = false 
)
inline

Constructor using the indices vector and the region. sRegion is false by default. The nodes are sorted because it makes it easier to compare two BasicTri.

◆ BasicTri() [2/2]

BasicTri::BasicTri ( const Triangle::Tri tri)
inlineexplicit

Constructor used to copy a surface region triangle

Member Function Documentation

◆ operator<()

bool BasicTri::operator< ( const BasicTri o) const
inline

Compare the nodes indice lexicographically

Member Data Documentation

◆ idRegion

int BasicTri::idRegion

index of the region of the triangle

◆ isFlipped

bool BasicTri::isFlipped

Whether the index order normalization flipped the triangle.

◆ isSurfaceElement

bool BasicTri::isSurfaceElement

If the triangle is in a surface region

◆ nodesInd

std::array<int,3> BasicTri::nodesInd

The 3 node indices composing the triangle


The documentation for this class was generated from the following file: