]> SALOME platform Git repositories - modules/med.git/blob - medtool/src/INTERP_KERNELTest/SingleElementPlanarTests.hxx
Salome HOME
Move medtool folder to MED base repository
[modules/med.git] / medtool / src / INTERP_KERNELTest / SingleElementPlanarTests.hxx
1 // Copyright (C) 2007-2015  CEA/DEN, EDF R&D
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 __SINGLE_ELEMENT_PLANAR_TESTS_HXX_
21 #define __SINGLE_ELEMENT_PLANAR_TESTS_HXX_ 
22
23 #include "InterpKernelTestExport.hxx"
24 #include "InterpolationPlanarTestSuite.hxx"
25
26 namespace INTERP_TEST 
27 {
28   /**
29    * \brief Class testing algorithm by intersecting simple meshes having only one planar element each. 
30    * This serves mainly to verify that the volume calculations between elements is correct.
31    *
32    */
33   class INTERPKERNELTEST_EXPORT SingleElementPlanarTests : public InterpolationPlanarTestSuite
34   {
35     CPPUNIT_TEST_SUITE( SingleElementPlanarTests );
36     
37     CPPUNIT_TEST( diamondsBasic ); 
38     CPPUNIT_TEST( tangentDiamonds );
39     CPPUNIT_TEST( tangentSquares );
40     CPPUNIT_TEST( diamondsSharingVertex1 );
41     CPPUNIT_TEST( identicalSquares );
42     CPPUNIT_TEST( squareAndDiamondBasic );
43     CPPUNIT_TEST( squareAndDiamondCritical );
44     CPPUNIT_TEST( diamondsCritical );
45     CPPUNIT_TEST( quadranglesCritical );
46     CPPUNIT_TEST( quadrangleAndDiamondCritical );
47     CPPUNIT_TEST( diamondsCritical2 );
48     CPPUNIT_TEST( hexagonsCritical1 );
49     CPPUNIT_TEST( hexagonsCritical2 );
50     CPPUNIT_TEST( squareAndQuadrangleCritical );
51     CPPUNIT_TEST( diamondsSharingVertex2 );
52     CPPUNIT_TEST( triangleAndDiamondCritical );
53     CPPUNIT_TEST( triangleAndSquareBasic );
54     CPPUNIT_TEST( trianglesCritical );
55     CPPUNIT_TEST( paralellogramsCritical1 );
56     CPPUNIT_TEST( paralellogramsCritical2 );
57     CPPUNIT_TEST( trianglesTangencyCritical );
58     CPPUNIT_TEST( trianglesTangencyCritical2 );
59     CPPUNIT_TEST( trianglesTangencyCritical3 );
60     CPPUNIT_TEST( trianglesTangencyCritical4 );
61     CPPUNIT_TEST( diamondsBasic_Triangulation ); 
62     CPPUNIT_TEST( tangentDiamonds_Triangulation );
63     CPPUNIT_TEST( tangentSquares_Triangulation );
64     CPPUNIT_TEST( diamondsSharingVertex1_Triangulation );
65     CPPUNIT_TEST( identicalSquares_Triangulation );
66     //CPPUNIT_TEST( squareAndDiamondBasic_Triangulation );
67     //CPPUNIT_TEST( squareAndDiamondCritical_Triangulation );
68     CPPUNIT_TEST( diamondsCritical_Triangulation );
69     CPPUNIT_TEST( quadranglesCritical_Triangulation );
70     CPPUNIT_TEST( quadrangleAndDiamondCritical_Triangulation );
71     CPPUNIT_TEST( diamondsCritical2_Triangulation );
72     CPPUNIT_TEST( hexagonsCritical1_Triangulation );
73     CPPUNIT_TEST( hexagonsCritical2_Triangulation );
74     CPPUNIT_TEST( squareAndQuadrangleCritical_Triangulation );
75     CPPUNIT_TEST( diamondsSharingVertex2_Triangulation );
76     CPPUNIT_TEST( triangleAndDiamondCritical_Triangulation );
77     CPPUNIT_TEST( triangleAndSquareBasic_Triangulation );
78     CPPUNIT_TEST( trianglesCritical_Triangulation );
79     CPPUNIT_TEST( paralellogramsCritical1_Triangulation );
80     CPPUNIT_TEST( paralellogramsCritical2_Triangulation );
81     CPPUNIT_TEST( trianglesTangencyCritical_Triangulation );
82     CPPUNIT_TEST( trianglesTangencyCritical2_Triangulation );
83     CPPUNIT_TEST( trianglesTangencyCritical3_Triangulation );
84     CPPUNIT_TEST( trianglesTangencyCritical4_Triangulation );
85
86     CPPUNIT_TEST_SUITE_END();
87     
88   public:
89
90     void diamondsBasic();
91     void tangentDiamonds();
92     void tangentSquares();
93     void diamondsSharingVertex1();
94     void identicalSquares();
95     void squareAndDiamondBasic();
96     void squareAndDiamondCritical();
97     void diamondsCritical();
98     void quadranglesCritical();  
99     void quadrangleAndDiamondCritical();
100     void diamondsCritical2();
101     void hexagonsCritical1();
102     void hexagonsCritical2();
103     void squareAndQuadrangleCritical();
104     void diamondsSharingVertex2();
105     void triangleAndDiamondCritical();
106     void triangleAndSquareBasic();
107     void trianglesCritical();
108     void paralellogramsCritical1();
109     void paralellogramsCritical2();
110     void trianglesTangencyCritical();
111     void trianglesTangencyCritical2();
112     void trianglesTangencyCritical3();
113     void trianglesTangencyCritical4();
114     void diamondsBasic_Triangulation();
115     void tangentDiamonds_Triangulation(); 
116     void tangentSquares_Triangulation();
117     void diamondsSharingVertex1_Triangulation();
118     void identicalSquares_Triangulation();
119     void squareAndDiamondBasic_Triangulation();
120     void squareAndDiamondCritical_Triangulation();
121     void diamondsCritical_Triangulation();
122     void quadranglesCritical_Triangulation();  
123     void quadrangleAndDiamondCritical_Triangulation();
124     void diamondsCritical2_Triangulation();
125     void hexagonsCritical1_Triangulation();
126     void hexagonsCritical2_Triangulation();
127     void squareAndQuadrangleCritical_Triangulation();
128     void diamondsSharingVertex2_Triangulation();
129     void triangleAndDiamondCritical_Triangulation();
130     void triangleAndSquareBasic_Triangulation();
131     void trianglesCritical_Triangulation();
132     void paralellogramsCritical1_Triangulation();
133     void paralellogramsCritical2_Triangulation();
134     void trianglesTangencyCritical_Triangulation();
135     void trianglesTangencyCritical2_Triangulation();
136     void trianglesTangencyCritical3_Triangulation();
137     void trianglesTangencyCritical4_Triangulation();
138   };
139 }
140 #endif