From: ageay Date: Tue, 26 May 2009 14:07:26 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: V5_1_main_FINAL~385 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=dd763ec19f78b23f9599a0726e29e4fb15c61072;p=tools%2Fmedcoupling.git *** empty log message *** --- diff --git a/src/INTERP_KERNEL/PlanarIntersector.txx b/src/INTERP_KERNEL/PlanarIntersector.txx index 2a0234587..2d1348e6a 100644 --- a/src/INTERP_KERNEL/PlanarIntersector.txx +++ b/src/INTERP_KERNEL/PlanarIntersector.txx @@ -267,7 +267,7 @@ namespace INTERP_KERNEL if(_orientation==2) return fabs(val); if (( val > 0.0 && _orientation==1) || ( val < 0.0 && _orientation==-1 )) - return val; + return _orientation*val; return 0.; } diff --git a/src/MEDCoupling/Test/MEDCouplingBasicsTest.cxx b/src/MEDCoupling/Test/MEDCouplingBasicsTest.cxx index a3ef04485..678eadc47 100644 --- a/src/MEDCoupling/Test/MEDCouplingBasicsTest.cxx +++ b/src/MEDCoupling/Test/MEDCouplingBasicsTest.cxx @@ -951,8 +951,8 @@ void MEDCouplingBasicsTest::test3DSurfInterpP0P0_2() myInterpolator.setOrientation(-1); myInterpolator.interpolateMeshes(sourceWrapper,targetWrapper,res,"P0P0"); CPPUNIT_ASSERT_EQUAL(5,(int)res.size()); - CPPUNIT_ASSERT_DOUBLES_EQUAL(-0.125*sqrt(2.),res[2][0],1e-12); - CPPUNIT_ASSERT_DOUBLES_EQUAL(-0.125*sqrt(2.),sumAll(res),1e-12); + CPPUNIT_ASSERT_DOUBLES_EQUAL(0.125*sqrt(2.),res[2][0],1e-12); + CPPUNIT_ASSERT_DOUBLES_EQUAL(0.125*sqrt(2.),sumAll(res),1e-12); res.clear(); } //clean up