HArD::Core3D
Hybrid Arbitrary Degree::Core 3D - Library to implement 3D schemes with vertex, edge, face and cell polynomials as unknowns
mesh_builder.hpp
Go to the documentation of this file.
1 #include "mesh_reader.hpp"
2 #include <algorithm>
3 #include <memory> // for std::unique_pointer
4 #include <mesh.hpp>
5 
6 #include <stdlib.h> /* exit, EXIT_FAILURE */
7 
8 #ifndef MESH_BUILDER_HPP
9 #define MESH_BUILDER_HPP
10 
11 
12 namespace HArDCore3D {
13 
14 // ----------------------------------------------------------------------------
15 // Class definition
16 // ----------------------------------------------------------------------------
17 
19 class MeshBuilder {
20 public:
24  MeshBuilder();
28  MeshBuilder(const std::string mesh_file);
29 
33  std::unique_ptr<Mesh> build_the_mesh();
34 
35 private:
36  void build_boundary(Mesh* mesh);
37  const std::string _mesh_file;
38 };
39 
40 
41 } // end namespace HArDCore3D
42 #endif
43 
The MeshBuilder class provides build tools to create a full mesh with all connectivities.
Definition: mesh_builder.hpp:19
MeshBuilder()
Definition: mesh_builder.cpp:33
std::unique_ptr< Mesh > build_the_mesh()
Definition: mesh_builder.cpp:36
Class to describe a mesh.
Definition: MeshND.hpp:17
Definition: ddr-magnetostatics.hpp:40