From f3adc9e1b1ee7fc3f7b361c7755ac5f777ac148d Mon Sep 17 00:00:00 2001 From: ndjinga Date: Wed, 16 Apr 2008 07:25:10 +0000 Subject: [PATCH] 2D and 3D surf interpolations test on the interpolation matrix --- .../Test/MultiElement2DTests.hxx | 20 ++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/src/INTERP_KERNEL/Test/MultiElement2DTests.hxx b/src/INTERP_KERNEL/Test/MultiElement2DTests.hxx index c6afe208e..8d2d5a31d 100644 --- a/src/INTERP_KERNEL/Test/MultiElement2DTests.hxx +++ b/src/INTERP_KERNEL/Test/MultiElement2DTests.hxx @@ -2,7 +2,6 @@ #define __MULTI_ELEMENT_2D_TESTS_HXX_ #include "InterpolationTestSuite.hxx" -#include "Interpolation2D.hxx" namespace INTERP_TEST { @@ -17,17 +16,28 @@ namespace INTERP_TEST class MultiElement2DTests : public InterpolationTestSuite<2,2> { CPPUNIT_TEST_SUITE( MultiElement2DTests ); - - CPPUNIT_TEST(Volume2DTriangulationTest); + + CPPUNIT_TEST(SymetryTranspose2DTest); + CPPUNIT_TEST(SelfIntersection2DTest); CPPUNIT_TEST_SUITE_END(); public: - void Volume2DTriangulationTest() + void SymetryTranspose2DTest() { + _testTools->_intersectionType=INTERP_KERNEL::Triangulation; + _testTools->intersectMeshes("square1.med", "Mesh_2","square2.med","Mesh_3", 10000.); + _testTools->_intersectionType=INTERP_KERNEL::Convex; _testTools->intersectMeshes("square1.med", "Mesh_2","square2.med","Mesh_3", 10000.); } - + void SelfIntersection2DTest() + { + IntersectionMatrix m; + _testTools->_intersectionType=INTERP_KERNEL::Triangulation; + _testTools->calcIntersectionMatrix("square1.med", "Mesh_2","square1.med","Mesh_2", m); + _testTools->_intersectionType=INTERP_KERNEL::Convex; + _testTools->calcIntersectionMatrix("square1.med", "Mesh_2","square1.med","Mesh_2", m); + } }; } -- 2.39.2