16#ifndef Polygone_included
17#define Polygone_included
19#include <Poly_geom_base.h>
27template <
typename _SIZE_>
97template <
typename _SIZE_>
109template <
typename _SIZE_>
122template <
typename _SIZE_>
131 Cerr <<
"Error, a polyhedron has 1 type of faces and not " << i << finl;
143template <
typename _SIZE_>
157template <
typename _SIZE_>
164 return Type_Face::segment_2D;
166 Cerr <<
"Error, a polyhedron has 1 type of faces and not " << i << finl;
168 return Type_Face::quadrangle_3D;
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.
Base class for polyedrons and polygons. Connectivity is stored in descending mode:
Class Polygone represents the geometric element Polygone.
int get_tab_faces_sommets_locaux(IntTab &faces_som_local) const override
Fills faces_som_local(i,j) giving for 0 <= i < nb_faces() and 0 <= j < nb_som_face(i) the local verte...
_SIZE_ get_somme_nb_faces_elem() const override
void build_reduced(OWN_PTR(Elem_geom_base_32_64< int >)&type_elem, const ArrOfInt_t &elems_sous_part) const override
int get_tab_faces_sommets_locaux(IntTab &faces_som_local, int_t elem) const override
friend class Polygone_32_64
int nb_som() const override
Returns the number of vertices of a Polygone element.
Domaine_32_64< _SIZE_ > Domaine_t
void calculer_un_centre_gravite(const int_t elem, DoubleVect &xp) const override
ArrOfInt_T< _SIZE_ > ArrOfInt_t
void calculer_centres_gravite(DoubleTab_t &xp) const override
Compute all centers of mass of all elements in the domain.
void calculer_volumes(DoubleVect_t &vols) const override
Computes the volumes (areas) of the elements of the associated domain.
int get_nb_som_elem_max() const
int nb_som_face(int=0) const override
Returns the maximum number of vertices of the faces of the specified type.
SmallArrOfTID_T< _SIZE_ > SmallArrOfTID_t
DoubleTab_T< _SIZE_ > DoubleTab_t
void affecte_connectivite_numero_global(const ArrOfInt_t &FacesIndex, const ArrOfInt_t &PolygonIndex, IntTab_t &les_elems)
void compute_virtual_index() override
int contient(const SmallArrOfTID_t &soms, int_t elem) const override
Not yet implemented — always returns 0. Returns 1 if the vertices specified by "pos" are those of ele...
int get_nb_face_elem_max() const
IntTab_T< _SIZE_ > IntTab_t
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.
const ArrOfInt_t & getElemIndex() const override
int nb_faces(int=0) const override
Returns the number of faces of the specified type that the geometric element has.
int contient(const ArrOfDouble &pos, int_t elem) const override
Returns 1 if element "num_poly" of the domain associated with this geometric element contains the poi...
DoubleVect_T< _SIZE_ > DoubleVect_t
const Nom & nom_lml() const override
Returns the LML name of a polygon = "POLYEDRE_" + 2*nb_som_max (or "POLYGONE_" + nb_som_max in 3D).
Type_Face type_face(int=0) const override
Returns the i-th face type.
const ArrOfInt_t & getPolygonIndex() const
static void exit(int exit_code=-1)
Exit routine for TRUST within a Kokkos region.