From da56b917ab760cc7184ea4ab39b8ab1c724c26ae Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Thu, 9 Mar 2017 19:29:00 +0000
Subject: [PATCH] better tolerance for plane

---
 Geo/GFace.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Geo/GFace.cpp b/Geo/GFace.cpp
index f36f368909..f4a558cf9f 100644
--- a/Geo/GFace.cpp
+++ b/Geo/GFace.cpp
@@ -450,7 +450,7 @@ void GFace::computeMeanPlane()
       for(unsigned int i = 2; i < pts.size(); i++){
         SVector3 d0i(pts[0], pts[i]);
         SVector3 n = crossprod(d01, d0i);
-        if(norm(n) > 1e-12){
+        if(norm(n) > 1e-6){
           res[0] = n.x(); res[1] = n.y(); res[2] = n.z();
           xm = pts[0].x(); ym = pts[0].y(); zm = pts[0].z();
           ok = true;
-- 
GitLab