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

don't build octree if we don't need it

parent 0408a4fd
No related branches found
No related tags found
No related merge requests found
......@@ -747,13 +747,15 @@ static bool meshGenerator(GFace *gf, int RECUR_ITER,
++itt;
}
}
Octree * _octree = buildMElementOctree(gf->model());
if (Msg::GetVerbosity() == 10){
Octree *_octree = buildMElementOctree(gf->model());
doc.Voronoi();
doc.makePosView("voronoi.pos", gf);
doc.printMedialAxis(_octree, "skeleton.pos", gf);
Octree_Delete(_octree);
}
Octree_Delete(_octree);
gf->triangles.clear();
gf->quadrangles.clear();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment