Class xlifepp::subdivision::Simplex#

template<class T_>
class Simplex : public xlifepp::subdivision::GeomFigure#

Inheritence diagram for xlifepp::subdivision::Simplex:

digraph { graph [bgcolor="#00000000"] node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2] edge [color="#1414CE"] "3" [label="xlifepp::subdivision::Simplex< Tetrahedron >" tooltip="xlifepp::subdivision::Simplex< Tetrahedron >"] "5" [label="xlifepp::subdivision::Simplex< Triangle >" tooltip="xlifepp::subdivision::Simplex< Triangle >"] "2" [label="xlifepp::subdivision::GeomFigure" tooltip="xlifepp::subdivision::GeomFigure"] "1" [label="xlifepp::subdivision::Simplex< T_ >" tooltip="xlifepp::subdivision::Simplex< T_ >" fillcolor="#BFBFBF"] "4" [label="xlifepp::subdivision::Tetrahedron" tooltip="xlifepp::subdivision::Tetrahedron"] "6" [label="xlifepp::subdivision::Triangle" tooltip="xlifepp::subdivision::Triangle"] "3" -> "1" [dir=forward tooltip="template-instance"] "5" -> "1" [dir=forward tooltip="template-instance"] "1" -> "2" [dir=forward tooltip="public-inheritance"] "4" -> "3" [dir=forward tooltip="public-inheritance"] "6" -> "5" [dir=forward tooltip="public-inheritance"] }

Collaboration diagram for xlifepp::subdivision::Simplex:

digraph { graph [bgcolor="#00000000"] node [shape=rectangle style=filled fillcolor="#FFFFFF" font=Helvetica padding=2] edge [color="#1414CE"] "4" [label="std::vector< T >" tooltip="std::vector< T >"] "3" [label="std::vector< number_t >" tooltip="std::vector< number_t >"] "2" [label="xlifepp::subdivision::GeomFigure" tooltip="xlifepp::subdivision::GeomFigure"] "1" [label="xlifepp::subdivision::Simplex< T_ >" tooltip="xlifepp::subdivision::Simplex< T_ >" fillcolor="#BFBFBF"] "3" -> "4" [dir=forward tooltip="template-instance"] "2" -> "3" [dir=forward tooltip="usage"] "1" -> "2" [dir=forward tooltip="public-inheritance"] }

Public Functions

inline Simplex(const number_t num, const number_t bdSideNum)#

main constructor

inline virtual short faceOrientation(short indFace) const#

get back the orientation of a face. Returns 1 if positive, -1 if negative.

inline virtual number_t numberOfEdgesinFig() const#

returns the number of edges of the figure

inline virtual number_t numberOfO1Vertices() const#

returns the number of main vertices (of order 1) of the figure

inline virtual number_t numberOfVertByFace() const#

returns the number of vertices by face of the figure

virtual std::vector<number_t> rkOfHOVeOnFace(const number_t Order, const number_t i) const#

returns the high order vertices (given by their rank) of face number i >= 1

Access function returning the high order vertices (given by their rank) of face number i >= 1.

The order is not stored in this class, so it needs to be passed by argument ; it should be the correct one, otherwise the result is false. For the triangle, the face is the element itself and the input number i should be equal to 1. The vertices in the array vertices_ are grouped according to the following: nb_main_vertices_, (k-1)*nb_edges_, (k-2)(k-1)/2 *nb_faces_

Public Static Functions

static inline number_t numberOfEdges()#

returns the number of edges of the figure

static inline number_t numberOfFaces()#

returns the number of faces of the figure

static inline number_t numberOfMainVertices()#

returns the number of main vertices of the figure