From: Anida Khizar Date: Thu, 3 Nov 2022 12:36:54 +0000 (+0100) Subject: Bug fix: intersection sometimes fails when area is too small X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fakr%2Fbug_fix;p=tools%2Fmedcoupling.git Bug fix: intersection sometimes fails when area is too small --- diff --git a/src/INTERP_KERNEL/VolSurfFormulae.hxx b/src/INTERP_KERNEL/VolSurfFormulae.hxx index 398ba2c7c..4e6f1c186 100644 --- a/src/INTERP_KERNEL/VolSurfFormulae.hxx +++ b/src/INTERP_KERNEL/VolSurfFormulae.hxx @@ -786,7 +786,7 @@ namespace INTERP_KERNEL inline void computePolygonBarycenter2DEngine(double **coords, mcIdType lgth, double *res) { - double area=0.; + double area=std::numeric_limits::min(); res[0]=0.; res[1]=0.; for(mcIdType i=0;i