1 // Copyright (C) 2007-2024 CEA, EDF
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.
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.
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
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
20 #ifndef __TU_TRANSFORMED_TRIANGLE_INTERSECT_HXX__
21 #define __TU_TRANSFORMED_TRIANGLE_INTERSECT_HXX__
23 #include <cppunit/extensions/HelperMacros.h>
25 #include "InterpKernelTestExport.hxx"
26 #include "TransformedTriangle.hxx"
31 class INTERPKERNELTEST_EXPORT TransformedTriangleIntersectTest : public CppUnit::TestFixture
34 CPPUNIT_TEST_SUITE( TransformedTriangleIntersectTest );
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 );
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 );
61 CPPUNIT_TEST_SUITE_END();
63 typedef INTERP_KERNEL::TransformedTriangle::TriSegment TriSegment;
64 typedef INTERP_KERNEL::TransformedTriangle::DoubleProduct DoubleProduct;
77 void testTriangle10();
78 void testTriangle11();
79 void testTriangle12();
80 void testTriangle13();
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();