Given vertex coordinates and connectivity table, I would like to create a FEniCS mesh. From here, I gather that this is actually possible via
editor = MeshEditor()
# [...]
editor.add_vertex(0, np.array([0.0, 0.0]))
editor.add_vertex(1, np.array([0.1, 0.2]))
# [...]
editor.add_vertex(123456, np.array([1.0, 0.1]))
editor.add_cell(0, np.array([0, 1, 3], dtype=np.uintp))
# [...]
However, this takes a really long time if the mesh is large -- Python loops take their toll.
Is it possible to initialize a mesh with vertices and connectivities _in bulk_?