From: abn Date: Wed, 7 Feb 2024 10:09:10 +0000 (+0100) Subject: [TetraIntersect] Settting TransformedTriangle::THRESHOLD to 100 X-Git-Tag: V9_13_0a1~22 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d03af8d8c8d01d5e417c23a9b2ec8638d5eee5f1;p=tools%2Fmedcoupling.git [TetraIntersect] Settting TransformedTriangle::THRESHOLD to 100 + see previous commit : we can not keep 20 because of P1P1 intersector which uses barycentric computation. A small threshold produces sometimes more intersection points, which disturbs the (improper) barycentric computation. --- diff --git a/src/INTERP_KERNEL/TransformedTriangleMath.cxx b/src/INTERP_KERNEL/TransformedTriangleMath.cxx index bac06d5cd..30ecbc621 100644 --- a/src/INTERP_KERNEL/TransformedTriangleMath.cxx +++ b/src/INTERP_KERNEL/TransformedTriangleMath.cxx @@ -68,7 +68,7 @@ namespace INTERP_KERNEL const double TransformedTriangle::MULT_PREC_F = 4.0 * TransformedTriangle::MACH_EPS; /// Threshold for resetting double and triple products to zero; ( F / f in Grandy ) - const double TransformedTriangle::THRESHOLD_F = 20.0; + const double TransformedTriangle::THRESHOLD_F = 100.0; /// Threshold for what is considered a small enough angle to warrant correction of triple products by Grandy, [57] const double TransformedTriangle::TRIPLE_PRODUCT_ANGLE_THRESHOLD = 0.1;