DynamicMeshEditor.h¶
Note
The documentation on this page was automatically extracted from the DOLFIN C++ code and may need to be edited or expanded.
-
class
DynamicMeshEditor
¶ This class provides an interface for dynamic editing of meshes, that is, when the number of vertices and cells are not known a priori. If the number of vertices and cells are known a priori, it is more efficient to use the default editor MeshEditor.
-
DynamicMeshEditor
()¶ Constructor
-
void
open
(Mesh &mesh, CellType::Type type, std::size_t tdim, std::size_t gdim)¶ Open mesh of given cell type, topological and geometrical dimension
-
void
open
(Mesh &mesh, std::string type, std::size_t tdim, std::size_t gdim)¶ Open mesh of given cell type, topological and geometrical dimension
-
void
add_vertex
(std::size_t v, double x)¶ Add vertex v at given coordinate x
-
void
add_vertex
(std::size_t v, double x, double y)¶ Add vertex v at given coordinate (x, y)
-
void
add_vertex
(std::size_t v, double x, double y, double z)¶ Add vertex v at given coordinate (x, y, z)
-
void
add_cell
(std::size_t c, const std::vector<std::size_t> &v)¶ Add cell with given vertices
-
void
add_cell
(std::size_t c, std::size_t v0, std::size_t v1)¶ Add cell (interval) with given vertices
-
void
add_cell
(std::size_t c, std::size_t v0, std::size_t v1, std::size_t v2)¶ Add cell (triangle) with given vertices
-
void
add_cell
(std::size_t c, std::size_t v0, std::size_t v1, std::size_t v2, std::size_t v3)¶ Add cell (tetrahedron) with given vertices
-
void
close
(bool order = false)¶ Close mesh, finish editing, and order entities locally
-