]> SALOME platform Git repositories - tools/medcoupling.git/blob - src/INTERP_KERNELTest/TransformedTriangleIntersectTest.hxx
Salome HOME
[TetraIntersect] This test can be re-activated.
[tools/medcoupling.git] / src / INTERP_KERNELTest / TransformedTriangleIntersectTest.hxx
1 // Copyright (C) 2007-2024  CEA, EDF
2 //
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
7 //
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 // Lesser General Public License for more details.
12 //
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19
20 #ifndef __TU_TRANSFORMED_TRIANGLE_INTERSECT_HXX__
21 #define __TU_TRANSFORMED_TRIANGLE_INTERSECT_HXX__
22
23 #include <cppunit/extensions/HelperMacros.h>
24
25 #include "InterpKernelTestExport.hxx"
26 #include "TransformedTriangle.hxx"
27
28 namespace INTERP_TEST
29 {
30
31   class INTERPKERNELTEST_EXPORT TransformedTriangleIntersectTest : public CppUnit::TestFixture
32   {
33
34     CPPUNIT_TEST_SUITE( TransformedTriangleIntersectTest );
35
36     CPPUNIT_TEST( testTriangle1 );
37     CPPUNIT_TEST( testTriangle2 );
38     CPPUNIT_TEST( testTriangle3 );
39     CPPUNIT_TEST( testTriangle4 );
40     CPPUNIT_TEST( testTriangle5 );
41     CPPUNIT_TEST( testTriangle6 );
42     CPPUNIT_TEST( testTriangle7 );
43     CPPUNIT_TEST( testTriangle8 );
44     CPPUNIT_TEST( testTriangle9 );
45     CPPUNIT_TEST( testTriangle10 );
46     CPPUNIT_TEST( testTriangle11 );
47     CPPUNIT_TEST( testTriangle12 );
48     CPPUNIT_TEST( testTriangle13 );
49
50
51     // Tests for degenerated cases where PQR is almost in XYZ plane:
52     CPPUNIT_TEST( testTriangle_vol1 );
53     CPPUNIT_TEST( testTriangle_vol2 );
54     CPPUNIT_TEST( testTriangle_vol3 );
55     CPPUNIT_TEST( testTriangle_vol4 );
56     CPPUNIT_TEST( testTriangle_vol5 );
57     CPPUNIT_TEST( testTriangle_vol6 );
58     CPPUNIT_TEST( testTriangle_vol7 );
59     CPPUNIT_TEST( testTriangle_vol8 );
60
61     CPPUNIT_TEST_SUITE_END();
62
63     typedef INTERP_KERNEL::TransformedTriangle::TriSegment TriSegment;
64     typedef INTERP_KERNEL::TransformedTriangle::DoubleProduct DoubleProduct;
65
66   public:
67
68     void testTriangle1();
69     void testTriangle2();
70     void testTriangle3();
71     void testTriangle4();
72     void testTriangle5();
73     void testTriangle6();
74     void testTriangle7();
75     void testTriangle8();
76     void testTriangle9();
77     void testTriangle10();
78     void testTriangle11();
79     void testTriangle12();
80     void testTriangle13();
81
82     void testTriangle_vol1();
83     void testTriangle_vol2();
84     void testTriangle_vol3();
85     void testTriangle_vol4();
86     void testTriangle_vol5();
87     void testTriangle_vol6();
88     void testTriangle_vol7();
89     void testTriangle_vol8();
90
91   };
92
93 }
94
95 #endif