From 788bcd427722b5f5aac8b882ca6eace67b5d5f1c Mon Sep 17 00:00:00 2001 From: Anida Khizar Date: Thu, 3 Nov 2022 13:36:54 +0100 Subject: [PATCH] Bug fix: intersection sometimes fails when area is too small --- src/INTERP_KERNEL/VolSurfFormulae.hxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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