From 5e50072add656316639569c65fbc9cffe3de58a8 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Wed, 10 Jul 2013 14:41:25 +0000
Subject: [PATCH] never recombine a face that is part of a compound

---
 Mesh/meshGFaceOptimize.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/Mesh/meshGFaceOptimize.cpp b/Mesh/meshGFaceOptimize.cpp
index 83c18d62ed..db00f173ce 100644
--- a/Mesh/meshGFaceOptimize.cpp
+++ b/Mesh/meshGFaceOptimize.cpp
@@ -3127,6 +3127,9 @@ int recombineWithBlossom(GFace *gf, double dx, double dy,
 
 static int _recombineIntoQuads(GFace *gf, int recur_level, bool cubicGraph = 1)
 {
+  // never recombine a face that is part of a compound!
+  if(gf->getCompound()) return 0;
+
   int success = 1;
 
   std::set<MVertex*> emb_edgeverts;
-- 
GitLab