From f18fbfac734d5fc308a7aaded76e20501f40de30 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Mon, 7 Nov 2016 19:31:57 +0000
Subject: [PATCH] splitIntoQuads should always leave a full quad mesh!!

---
 Mesh/meshRefine.cpp | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/Mesh/meshRefine.cpp b/Mesh/meshRefine.cpp
index 8ebafac033..12994956e5 100644
--- a/Mesh/meshRefine.cpp
+++ b/Mesh/meshRefine.cpp
@@ -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);
-- 
GitLab