From e819c27c0c6017a7f5475fb12940b59d00b6d882 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Tue, 24 May 2016 10:05:55 +0000 Subject: [PATCH] doc --- utils/api_demos/mainRemesh.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/utils/api_demos/mainRemesh.cpp b/utils/api_demos/mainRemesh.cpp index 69713b774e..ca0169226d 100644 --- a/utils/api_demos/mainRemesh.cpp +++ b/utils/api_demos/mainRemesh.cpp @@ -17,8 +17,20 @@ int main(int argc, char **argv) GmshSetOption("Mesh", "Optimize", 0.); // not yet: need boundary! GModel *m = new GModel(); + m->readMSH("cube.msh"); + // discreteRegion *gr = new discreteRegion(m); + // MVertex *v0 = new MVertex(x, y, z, gr, tag); + // MVertex *v1 = new MVertex(x, y, z, gr, tag); + // ... + // gr->mesh_vertices.push_back(v0); + // ... + // MTetrahedron *t = new MTetrahedron(v0, v1, v2, v3, tag); + // gr->tetrahedra.push_back(t); + + //MVertex *v2 = gr->mesh_vertices[2]; + for(GModel::riter it = m->firstRegion(); it != m->lastRegion(); ++it){ discreteRegion *r = dynamic_cast<discreteRegion*>(*it); if(r){ -- GitLab