21 #ifndef __DYNAMIC_MESH_EDITOR_H 22 #define __DYNAMIC_MESH_EDITOR_H 50 std::size_t gdim, std::size_t num_global_vertices,
51 std::size_t num_global_cells);
54 void open(
Mesh& mesh, std::string type, std::size_t tdim, std::size_t gdim,
55 std::size_t num_global_vertices, std::size_t num_global_cells);
64 void add_vertex(std::size_t v,
double x,
double y);
67 void add_vertex(std::size_t v,
double x,
double y,
double z);
70 void add_cell(std::size_t c,
const std::vector<std::size_t>& v);
73 void add_cell(std::size_t c, std::size_t v0, std::size_t v1);
76 void add_cell(std::size_t c, std::size_t v0, std::size_t v1,
80 void add_cell(std::size_t c, std::size_t v0, std::size_t v1,
81 std::size_t v2, std::size_t v3);
84 void close(
bool order=
false);
104 std::size_t _num_global_vertices, _num_global_cells;
107 std::vector<double> vertex_coordinates;
110 std::vector<std::size_t> cell_vertices;
DynamicMeshEditor()
Constructor.
Definition: DynamicMeshEditor.cpp:30
~DynamicMeshEditor()
Destructor.
Definition: DynamicMeshEditor.cpp:38
Type
Enum for different cell types.
Definition: CellType.h:51
Definition: CellType.h:46
void close(bool order=false)
Close mesh, finish editing, and order entities locally.
Definition: DynamicMeshEditor.cpp:176
void add_cell(std::size_t c, const std::vector< std::size_t > &v)
Add cell with given vertices.
Definition: DynamicMeshEditor.cpp:122
void add_vertex(std::size_t v, const Point &p)
Add vertex v at given point p.
Definition: DynamicMeshEditor.cpp:91
void open(Mesh &mesh, CellType::Type type, std::size_t tdim, std::size_t gdim, std::size_t num_global_vertices, std::size_t num_global_cells)
Open mesh of given cell type, topological and geometrical dimension.
Definition: DynamicMeshEditor.cpp:43
Definition: DynamicMeshEditor.h:38