DynamicMeshEditor¶
-
class
dolfin.cpp.mesh.
DynamicMeshEditor
(*args)¶ Bases:
object
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.
Constructor
-
add_cell
()¶ Overloaded versions
add_cell(c, v)
Add cell with given vertices
add_cell(c, v0, v1)
Add cell (interval) with given vertices
add_cell(c, v0, v1, v2)
Add cell (triangle) with given vertices
add_cell(c, v0, v1, v2, v3)
Add cell (tetrahedron) with given vertices
-
add_vertex
()¶ Overloaded versions
add_vertex(v, p)
Add vertex v at given point p
add_vertex(v, x)
Add vertex v at given coordinate x
add_vertex(v, x, y)
Add vertex v at given coordinate (x, y)
add_vertex(v, x, y, z)
Add vertex v at given coordinate (x, y, z)
-
close
()¶ Close mesh, finish editing, and order entities locally
-
open
()¶ Overloaded versions
open(mesh, type, tdim, gdim)
Open mesh of given cell type, topological and geometrical dimension
open(mesh, type, tdim, gdim)
Open mesh of given cell type, topological and geometrical dimension
-
thisown
¶ The membership flag
-