]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
2D and 3D surf interpolations test on the interpolation matrix
authorndjinga <ndjinga>
Wed, 16 Apr 2008 07:25:10 +0000 (07:25 +0000)
committerndjinga <ndjinga>
Wed, 16 Apr 2008 07:25:10 +0000 (07:25 +0000)
src/INTERP_KERNEL/Test/MultiElement2DTests.hxx

index c6afe208ea00016d136176b45d9439e0cfcb708d..8d2d5a31d40a6902a201acf0aa2c22b5c9bed2d9 100644 (file)
@@ -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);
+               }
   };
 }