From 93dc5aaeca0a8f4c504aec83dd3f69cc7e5cbfc1 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Tue, 4 Sep 2012 19:49:24 +0000 Subject: [PATCH] --- Mesh/BDS.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Mesh/BDS.cpp b/Mesh/BDS.cpp index 3a02c0bff6..c1cff092f0 100644 --- a/Mesh/BDS.cpp +++ b/Mesh/BDS.cpp @@ -1261,8 +1261,10 @@ bool BDS_Mesh::smooth_point_centroid(BDS_Point *p, GFace *gf, bool test_quality) oldWorst = std::min(oldWorst, qmTriangle(*it, QMTRI_RHO)); double ps; prosca(norm1, norm2, &ps); - double threshold = (isSphere ? 0.9 : 0.5); - if(ps < threshold) return false; + double threshold = (isSphere ? 0.95 : 0.5); + if(ps < threshold){ + return false; + } } ++it; } -- GitLab