double vol = bary.getVolume();
CPPUNIT_ASSERT( ok );
CPPUNIT_ASSERT_DOUBLES_EQUAL( 0.0103501, vol, 1e-5);
- CPPUNIT_ASSERT_DOUBLES_EQUAL( 0.215578 , baryCenter[0], 1e-5 );
- CPPUNIT_ASSERT_DOUBLES_EQUAL( 0.341363 , baryCenter[1], 1e-5 );
- CPPUNIT_ASSERT_DOUBLES_EQUAL( 0.263903 , baryCenter[2], 1e-5 );
+ CPPUNIT_ASSERT_DOUBLES_EQUAL( 0.217466 , baryCenter[0], 1e-5 );
+ CPPUNIT_ASSERT_DOUBLES_EQUAL( 0.342817 , baryCenter[1], 1e-5 );
+ CPPUNIT_ASSERT_DOUBLES_EQUAL( 0.263254 , baryCenter[2], 1e-5 );
}
void UnitTetraIntersectionBaryTest::test_UnitTetraIntersectionBary_8()
{
double vol = bary.getVolume();
CPPUNIT_ASSERT( ok );
CPPUNIT_ASSERT_DOUBLES_EQUAL( 0.0349217, vol, 1e-5);
- CPPUNIT_ASSERT_DOUBLES_EQUAL( 0.332275 , baryCenter[0], 1e-2 );
- CPPUNIT_ASSERT_DOUBLES_EQUAL( 0.0565892 , baryCenter[1], 1e-3 );
- CPPUNIT_ASSERT_DOUBLES_EQUAL( 0.308713 , baryCenter[2], 1e-2 );
+ CPPUNIT_ASSERT_DOUBLES_EQUAL( 0.3473436, baryCenter[0], 1e-2 );
+ CPPUNIT_ASSERT_DOUBLES_EQUAL( 0.0598566, baryCenter[1], 1e-3 );
+ CPPUNIT_ASSERT_DOUBLES_EQUAL( 0.2902516, baryCenter[2], 1e-2 );
}
void UnitTetraIntersectionBaryTest::test_UnitTetraIntersectionBary_9()
{