]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
3D surf interpolation tests on the interpolation matrix
authorndjinga <ndjinga>
Wed, 16 Apr 2008 07:28:57 +0000 (07:28 +0000)
committerndjinga <ndjinga>
Wed, 16 Apr 2008 07:28:57 +0000 (07:28 +0000)
src/INTERP_KERNEL/Test/MultiElement3DSurfTests.hxx [new file with mode: 0644]

diff --git a/src/INTERP_KERNEL/Test/MultiElement3DSurfTests.hxx b/src/INTERP_KERNEL/Test/MultiElement3DSurfTests.hxx
new file mode 100644 (file)
index 0000000..94b1313
--- /dev/null
@@ -0,0 +1,44 @@
+#ifndef __MULTI_ELEMENT_3DSurf_TESTS_HXX_
+#define __MULTI_ELEMENT_3DSurf_TESTS_HXX_
+
+#include "InterpolationTestSuite.hxx"
+
+namespace INTERP_TEST
+{
+  /**
+   * \brief Class testing algorithm by intersecting meshes of several 
+   * polygonal elements - up to a few thousand. This serves to check the 
+   * filtering methods and the matrix assemblage, as well as verifying
+   * that computation errors do not become unmanageable. It uses mehes of 
+   * different geometries : triangle, quadrilateral.
+   *
+   */
+  class MultiElement2DTests : public InterpolationTestSuite<3,2>
+  {
+    CPPUNIT_TEST_SUITE( MultiElement3DSurfTests );
+               
+               CPPUNIT_TEST(SymetryTranspose3DSurfTest);
+               CPPUNIT_TEST(SelfIntersection3DSurfTest);
+
+    CPPUNIT_TEST_SUITE_END();
+
+  public:
+               void SymetryTranspose3DSurfTest()
+               { 
+                       _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 SelfIntersection3DSurfTest()
+               { 
+                       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);
+               }
+  };
+}
+
+#endif