From: eap Date: Mon, 17 Jan 2022 11:39:32 +0000 (+0300) Subject: bos #26461 [EDF] (2021) MedCoupling: debug tetra/tetra 3d intersector algorithm X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ddce690b77898fd36494997025c7877ce8aee362;p=tools%2Fmedcoupling.git bos #26461 [EDF] (2021) MedCoupling: debug tetra/tetra 3d intersector algorithm --- diff --git a/src/INTERP_KERNEL/TransformedTriangleInline.hxx b/src/INTERP_KERNEL/TransformedTriangleInline.hxx index 5f3532781..cc00d4074 100644 --- a/src/INTERP_KERNEL/TransformedTriangleInline.hxx +++ b/src/INTERP_KERNEL/TransformedTriangleInline.hxx @@ -188,7 +188,8 @@ inline bool TransformedTriangle::testEdgeIntersectsTriangle(const TetraEdge edge //? should equality with zero use epsilon? LOG(5, "testEdgeIntersectsTriangle : t1 = " << t1 << " t2 = " << t2 ); - return (t1*t2 <= 0.0) && (t1 - t2 != 0.0); + return (t1*t2 <= 0.0) && !epsilonEqual(t1 - t2, 0.0); + //return (t1*t2 <= 0.0) && (t1 - t2 != 0.0); } inline bool TransformedTriangle::testFacetSurroundsSegment(const TriSegment seg, const TetraFacet facet) const