25 #ifndef MEDVERTEXINFO_H 26 #define MEDVERTEXINFO_H 28 #include "MEDBaseInfo.h" 29 #include "xc_basic/src/med_xc/MEDMEM_Meshing.hxx" 39 std::vector<double> coordenadas;
40 size_t spaceDimension;
41 std::string tipoCoordenadas;
42 std::vector<std::string> nombresCoordenadas;
43 std::vector<std::string> nombresUnidades;
46 void new_vertice(
size_t i,
const std::vector<double> &coo);
54 {
return coordenadas.size()/spaceDimension; }
56 inline size_t getSpaceDimension(
void)
const 57 {
return spaceDimension; }
58 inline void setSpaceDimension(
const size_t &sz)
59 { spaceDimension= sz; }
60 inline const std::string &getTipoCoordenadas(
void)
const 61 {
return tipoCoordenadas; }
62 inline void setTipoCoordenadas(
const std::string &str)
63 { tipoCoordenadas= str; }
64 inline const std::vector<std::string> &getCoordinateNames(
void)
const 65 {
return nombresCoordenadas; }
67 inline const std::vector<std::string> &getUnitNames(
void)
const 68 {
return nombresUnidades; }
70 void newVertex(
const size_t &i,
const boost::python::list &);
72 void to_med(MEDMEM::MESHING &mesh)
const;
void to_med(MEDMEM::MESHING &mesh) const
Dumps cells definition on MED mesh.
Definition: MEDVertexInfo.cc:111
Finite element mesh.
Definition: Mesh.h:64
void newVertex(const size_t &i, const boost::python::list &)
Appends a new vertex.
Definition: MEDVertexInfo.cc:81
MEDVertexInfo(void)
Constructor.
Definition: MEDVertexInfo.cc:34
void setUnitNames(const boost::python::list &)
Assigns coordinate units.
Definition: MEDVertexInfo.cc:103
void new_vertice(size_t i, const std::vector< double > &coo)
Creates the i-th vertex.
Definition: MEDVertexInfo.cc:63
Base class for infomation objects.
Definition: MEDBaseInfo.h:37
size_t getNumVertices(void) const
Returns the number of vertices.
Definition: MEDVertexInfo.h:53
================================================================================
Definition: ContinuaReprComponent.h:34
void setCoordinateNames(const boost::python::list &)
Assigns coordinate names.
Definition: MEDVertexInfo.cc:95
Information about mesh vertex.
Definition: MEDVertexInfo.h:37
const std::vector< double > & getCoordenadas(void) const
Acceso al vector de coordenadas.
Definition: MEDVertexInfo.cc:91
void clear(void)
Deletes mesh.
Definition: MEDVertexInfo.cc:56