From 4ea2d6437eefbf1e71599b3ec1e74fead84b3ac9 Mon Sep 17 00:00:00 2001
From: Tristan Carrier Baudouin <tristan.carrier@uclouvain.be>
Date: Fri, 13 Sep 2013 08:25:29 +0000
Subject: [PATCH] enable Lloyd optimization for compound faces

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

diff --git a/Mesh/Generator.cpp b/Mesh/Generator.cpp
index 5561081d18..bb3f229211 100644
--- a/Mesh/Generator.cpp
+++ b/Mesh/Generator.cpp
@@ -499,7 +499,7 @@ static void Mesh2D(GModel *m)
 #if defined(HAVE_BFGS)
           if(CTX::instance()->mesh.optimizeLloyd){
             if (temp[K]->geomType()==GEntity::CompoundSurface ||
-                temp[K]->geomType()==GEntity::Plane) {
+                temp[K]->geomType()==GEntity::Plane || temp[K]->geomType()==GEntity::RuledSurface) {
               if (temp[K]->meshAttributes.method != MESH_TRANSFINITE &&
                   !temp[K]->meshAttributes.extrude) {
                 smoothing smm(CTX::instance()->mesh.optimizeLloyd,6);
@@ -538,7 +538,7 @@ static void Mesh2D(GModel *m)
 #if defined(HAVE_BFGS)
           if(CTX::instance()->mesh.optimizeLloyd){
             if ((*it)->geomType()==GEntity::CompoundSurface ||
-                (*it)->geomType()==GEntity::Plane) {
+                (*it)->geomType()==GEntity::Plane || (*it)->geomType()==GEntity::RuledSurface) {
               if ((*it)->meshAttributes.method != MESH_TRANSFINITE &&
                   !(*it)->meshAttributes.extrude) {
                 smoothing smm(CTX::instance()->mesh.optimizeLloyd,6);
-- 
GitLab