16#ifndef Segment_included
17#define Segment_included
19#include <Elem_geom_base.h>
27template <
typename _SIZE_>
45 inline int nb_som()
const override {
return 2; }
70template <
typename _SIZE_>
89template <
typename _SIZE_>
103template <
typename _SIZE_>
118template <
typename _SIZE_>
132template <
typename _SIZE_>
136 return Type_Face::point_1D;
class Domaine_32_64 A Domain is a mesh composed of a set of geometric elements of the same type.
Class Elem_geom_base This class is the base class for the definition of elements.
class Nom: a character string for naming TRUST objects.
Class Segment: represents the geometric element segment.
int face_sommet(int i, int j) const override
Returns the index of the j-th vertex of the i-th face of the element.
Type_Face type_face(int=0) const override
Returns the i-th face type.
int get_tab_faces_sommets_locaux(IntTab &faces_som_local) const override
See ElemGeomBase::get_tab_faces_sommets_locaux.
int contient(const SmallArrOfTID_t &soms, int_t elem) const override
Returns 1 if the vertices specified by parameter "pos" are the vertices of element "element".
void calculer_volumes(DoubleVect_t &vols) const override
Computes the volumes of the elements of the associated domain.
const Nom & nom_lml() const override
Returns the LML name of a segment.
int nb_som_face(int=0) const override
Returns the number of vertices of faces of the specified type.
bool est_structure() const override
SmallArrOfTID_T< _SIZE_ > SmallArrOfTID_t
IntTab_T< _SIZE_ > IntTab_t
int face_sommet0(int i) const
Returns the index of the i-th vertex of face 0. NOTE: THE CODE DOES NOT DO WHAT ONE WOULD EXPECT.
DoubleVect_T< _SIZE_ > DoubleVect_t
int contient(const ArrOfDouble &pos, int_t elem) const override
Returns 1 if element "element" of the domain associated with this geometric element contains the poin...
void reordonner() override
Reorders the vertices of the segment.
int nb_som() const override
Nb of vertices for the element.
int nb_faces(int=0) const override
Returns the number of faces of the specified type that the geometric element has.
Domaine_32_64< _SIZE_ > Domaine_t