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

splitIntoQuads should always leave a full quad mesh!!

parent 0aaa85d0
No related branches found
No related tags found
No related merge requests found
......@@ -451,7 +451,7 @@ void RefineMesh(GModel *m, bool linear, bool splitIntoQuads, bool splitIntoHexas
{
splitIntoQuads = true;
splitIntoHexas = true;
Msg::StatusBar(true, "Refining mesh...");
double t1 = Cpu();
......@@ -468,9 +468,7 @@ void RefineMesh(GModel *m, bool linear, bool splitIntoQuads, bool splitIntoHexas
Subdivide(*it);
for(GModel::fiter it = m->firstFace(); it != m->lastFace(); ++it){
Subdivide(*it, splitIntoQuads, splitIntoHexas, faceVertices);
if (splitIntoQuads){
recombineIntoQuads(*it,true,true);
}
//if(splitIntoQuads) recombineIntoQuads(*it, true, true);
}
for(GModel::riter it = m->firstRegion(); it != m->lastRegion(); ++it)
Subdivide(*it, splitIntoHexas, faceVertices);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment