Class xlifepp::subdivision::Triangle#
-
class Triangle : public xlifepp::subdivision::Simplex<Triangle>#
-
Inheritence diagram for xlifepp::subdivision::Triangle:
Collaboration diagram for xlifepp::subdivision::Triangle:
Public Functions
-
Triangle(const number_t num, const number_t rV1, const number_t rV2, const number_t rV3, const number_t bdSideNum = 0)#
-
constructor by vertices, given by their rank in the list
Conversion constructor.
Constructor by vertices, given by their rank in the list
-
inline virtual short getrkEdge(short indEdge, short indVert) const#
-
get back the rank of a vertex of an edge
-
inline virtual short getrkFace(short indFace, short indVert) const#
-
get back the rank of a vertex of a face
Public Static Functions
-
static std::vector<std::vector<number_t>> numberingOfVertices(const number_t Order)#
-
position of the vertices in relation with the numbering convention
This function gives the local position of the vertices of any triangle of the mesh correspondig to the numbering convention explained on top of the Triangle class header file (Triangle.hpp).
The entry BC[i] in the returned vector BC contains a vector whose components BC[i][j] are equal to k*lambda_j, where k is the order of the mesh and lambda_j is the jth barycentric coordinate of the vertex number i+1 with respect to the 3 main vertices of the triangle(*). Thus, the returned vector gives the location of the vertices according to the way they are encountered in the numbering process implemented by the functions GeomFigureMesh<T_>::createHOV, GeomFigureMesh<T_>::createHOeV and TriangleMesh::createHOiV.
(*) In fact, the last value is not stored since it is equal to k - sum of the previous values.
-
static std::vector<short> numEdgesOfFace(const number_t i)#
-
returns the numbers (>= 1) of the edges defining the face, i.e. the triangle itself
returns the numbers (>= 1) of the edges defining the face, i.e.
the triangle itself
-
static std::vector<std::pair<short, short>> rkEdgeVertices()#
-
returns the ranks (>= 0) of the vertices defining the edges of the triangle
-
Triangle(const number_t num, const number_t rV1, const number_t rV2, const number_t rV3, const number_t bdSideNum = 0)#