Skip to content
Snippets Groups Projects
Commit e819c27c authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

doc

parent ba4cca1c
Branches
Tags
No related merge requests found
...@@ -17,8 +17,20 @@ int main(int argc, char **argv) ...@@ -17,8 +17,20 @@ int main(int argc, char **argv)
GmshSetOption("Mesh", "Optimize", 0.); // not yet: need boundary! GmshSetOption("Mesh", "Optimize", 0.); // not yet: need boundary!
GModel *m = new GModel(); GModel *m = new GModel();
m->readMSH("cube.msh"); 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){ for(GModel::riter it = m->firstRegion(); it != m->lastRegion(); ++it){
discreteRegion *r = dynamic_cast<discreteRegion*>(*it); discreteRegion *r = dynamic_cast<discreteRegion*>(*it);
if(r){ if(r){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment