29 MeshEntity** nodes=NULL, MeshEntity** elems=NULL,
bool copy_data=
true);
39 void assemble(
Mesh2* m,
const int* conn,
int nelem,
int etype,
87 void destruct(
Mesh2* m,
int*& conn,
int& nelem,
int &etype,
int cellDim = -1);
void extractCoords(Mesh2 *m, double *&coords, int &nverts)
get a contiguous set of global vertex coordinates
void construct(Mesh2 *m, const int *conn, int nelem, int etype, GlobalToVert &globalToVert)
construct a mesh from just a connectivity array
void destruct(Mesh2 *m, int *&conn, int &nelem, int &etype, int cellDim=-1)
convert an apf::Mesh2 object into a connectivity array
apf::Mesh2 Mesh
convenient mesh name
void finalise(Mesh2 *m, GlobalToVert &globalToVert)
finalise construction of a mixed-cell-type mesh from just a connectivity array
void setCoords(Mesh2 *m, const double *coords, int nverts, GlobalToVert &globalToVert)
Assign coordinates to the mesh.
Extended mesh interface for modification.
std::map< int, MeshEntity * > GlobalToVert
a map from global ids to vertex objects
void assemble(Mesh2 *m, const int *conn, int nelem, int etype, GlobalToVert &globalToVert)
assemble a mixed-cell-type mesh from just a connectivity array
void convert(Mesh *in, Mesh2 *out, MeshEntity **nodes=NULL, MeshEntity **elems=NULL, bool copy_data=true)
convert one mesh data structure to another