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

pp

parent df5d9b8c
No related branches found
No related tags found
No related merge requests found
...@@ -1621,20 +1621,18 @@ void meshGRegion::operator() (GRegion *gr) ...@@ -1621,20 +1621,18 @@ void meshGRegion::operator() (GRegion *gr)
std::list<GFace*> faces = gr->faces(); std::list<GFace*> faces = gr->faces();
// REMOVE SANITY CHECK FOR DELAUNAY : PYRAMIDS AVAILABLE // sanity check for frontal algo
// sanity check
if(CTX::instance()->mesh.algo3d == ALGO_3D_FRONTAL){ if(CTX::instance()->mesh.algo3d == ALGO_3D_FRONTAL){
for(std::list<GFace*>::iterator it = faces.begin(); it != faces.end(); it++){ for(std::list<GFace*>::iterator it = faces.begin(); it != faces.end(); it++){
if((*it)->quadrangles.size()){ if((*it)->quadrangles.size()){
Msg::Error("Cannot tetrahedralize volume with quadrangles on boundary"); Msg::Error("Cannot use frontal 3D algorithm with quadrangles on boundary");
return; return;
} }
} }
} }
// replace discreteFaces by their compounds // replace discreteFaces by their compounds
if( 1 || gr->geomType() == GEntity::CompoundVolume){ {
std::set<GFace*> mySet; std::set<GFace*> mySet;
std::list<GFace*>::iterator it = faces.begin(); std::list<GFace*>::iterator it = faces.begin();
while(it != faces.end()){ while(it != faces.end()){
...@@ -1649,8 +1647,6 @@ void meshGRegion::operator() (GRegion *gr) ...@@ -1649,8 +1647,6 @@ void meshGRegion::operator() (GRegion *gr)
gr->set(faces); gr->set(faces);
} }
std::list<GFace*> myface = gr->faces();
if(CTX::instance()->mesh.algo3d != ALGO_3D_FRONTAL){ if(CTX::instance()->mesh.algo3d != ALGO_3D_FRONTAL){
delaunay.push_back(gr); delaunay.push_back(gr);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment