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

revert JF's last commit: it prevents 1D meshes with even nb of points. Better...

revert JF's last commit: it prevents 1D meshes with even nb of points. Better solution still needed for compounds.


parent 2222462f
No related branches found
No related tags found
No related merge requests found
......@@ -384,15 +384,14 @@ void meshGEdge::operator() (GEdge *ge)
a = smoothPrimitive(ge, sqrt(CTX::instance()->mesh.smoothRatio), Points);
N = std::max(ge->minimumMeshSegments() + 1, (int)(a + 1.));
}
// force odd number of points for if blossom is used for recombination
if(ge->meshAttributes.Method != MESH_TRANSFINITE &&
(CTX::instance()->mesh.algoRecombine == 1 || CTX::instance()->mesh.recombineAll) && N % 2 == 0){
// if(CTX::instance()->mesh.recombineAll){
CTX::instance()->mesh.algoRecombine == 1 && N % 2 == 0){
if(CTX::instance()->mesh.recombineAll){
N++;
// }
}
/* else{
}
else{
std::list<GFace*> faces = ge->faces();
for(std::list<GFace*>::iterator it = faces.begin(); it != faces.end(); it++){
if((*it)->meshAttributes.recombine){
......@@ -402,7 +401,6 @@ void meshGEdge::operator() (GEdge *ge)
}
}
}
*/
// printFandPrimitive(ge->tag(),Points);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment