NeoPZ
pzreadtetgen.h
Go to the documentation of this file.
1 
6 #ifndef TPZREADTETGEN
7 #define TPZREADTETGEN
8 
9 #include <string>
10 #include <map>
11 class TPZGeoMesh;
12 
13 
27 public:
28 
29  TPZReadTetGen();
30 
32 
35  TPZGeoMesh * Process(std::string NodeFileName, std::string FaceFileName, std::string TetraFileName);
36 
37 private:
38 
41  bool ProcessNodes(std::string NodeFileName, TPZGeoMesh &gmesh, int64_t & numbernodes);
42 
45  bool ProcessFaces(std::string FaceFileName, TPZGeoMesh &gmesh, int64_t & numberfaces);
46 
49  bool ProcessTetra(std::string TetraFileName, TPZGeoMesh &gmesh, int64_t & numbervols);
50 
57  std::map<int64_t, int64_t> fNodeIndices;
58 
59 };
60 
61 #endif //TPZREADTETGEN
std::map< int64_t, int64_t > fNodeIndices
Nodes in tetgen are counted from 1 to n as a fortran based code.
Definition: pzreadtetgen.h:57
bool ProcessNodes(std::string NodeFileName, TPZGeoMesh &gmesh, int64_t &numbernodes)
Process nodes.
TPZGeoMesh * Process(std::string NodeFileName, std::string FaceFileName, std::string TetraFileName)
Convert tetgen files in a TPZGeoMesh object.
bool ProcessTetra(std::string TetraFileName, TPZGeoMesh &gmesh, int64_t &numbervols)
Process tetrahedras.
This class implements a geometric mesh for the pz environment. Geometry.
Definition: pzgmesh.h:48
Implement the interface between TPZGeoMesh and the files produced by tetgen. Getting Data...
Definition: pzreadtetgen.h:26
bool ProcessFaces(std::string FaceFileName, TPZGeoMesh &gmesh, int64_t &numberfaces)
Process faces.