Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008 #ifndef APF_CONVERT_H
00009 #define APF_CONVERT_H
00010
00014 #include <map>
00015
00016 namespace apf {
00017
00018 class Mesh;
00019 class Mesh2;
00020 class ModelEntity;
00021 class MeshEntity;
00022
00028 void convert(Mesh *in, Mesh2 *out);
00029
00031 typedef std::map<int, MeshEntity*> GlobalToVert;
00032
00047 void construct(Mesh2* m, const int* conn, int nelem, int etype,
00048 GlobalToVert& globalToVert);
00049
00058 void setCoords(Mesh2* m, const double* coords, int nverts,
00059 GlobalToVert& globalToVert);
00060
00063 void destruct(Mesh2* m, int*& conn, int& nelem, int &etype);
00064
00067 void extractCoords(Mesh2* m, double*& coords, int& nverts);
00068
00069 }
00070
00071 #endif