]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Bug fix: intersection sometimes fails when area is too small akr/bug_fix
authorAnida Khizar <anida.khizar@cea.fr>
Thu, 3 Nov 2022 12:36:54 +0000 (13:36 +0100)
committerAnida Khizar <anida.khizar@cea.fr>
Thu, 3 Nov 2022 12:36:54 +0000 (13:36 +0100)
src/INTERP_KERNEL/VolSurfFormulae.hxx

index 398ba2c7c4176a1b44d80e5d3ade2400f7934a13..4e6f1c186f31b6343796f547b814f65ad6c12acc 100644 (file)
@@ -786,7 +786,7 @@ namespace INTERP_KERNEL
 
   inline void computePolygonBarycenter2DEngine(double **coords, mcIdType lgth, double *res)
   {
-    double area=0.;
+    double area=std::numeric_limits<double>::min();
     res[0]=0.; res[1]=0.;
     for(mcIdType i=0;i<lgth;i++)
       {