From: El Hadi Moussi Date: Tue, 6 Aug 2024 09:43:31 +0000 (+0200) Subject: Add the plane mesh to the resources X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c78b732cb76fe22f4822b7da9be0f07b398270c0;p=tools%2Fmedcoupling.git Add the plane mesh to the resources --- diff --git a/resources/CMakeLists.txt b/resources/CMakeLists.txt index 704221ca6..f9488c032 100644 --- a/resources/CMakeLists.txt +++ b/resources/CMakeLists.txt @@ -94,6 +94,7 @@ SET(MED_other_FILES test_MED_MAIL.sauv castem17_result_xdr.sauv castem17_result_ascii.sauv + ShapeRecognPlane.med ) SET(MED_RESOURCES_FILES ${MED_test_fig_files}) diff --git a/resources/ShapeRecognPlane.med b/resources/ShapeRecognPlane.med new file mode 100755 index 000000000..c06ecfbf5 Binary files /dev/null and b/resources/ShapeRecognPlane.med differ diff --git a/src/ShapeRecogn/Test/PlaneTest.cxx b/src/ShapeRecogn/Test/PlaneTest.cxx index 4b9744fbc..3bd1b62a9 100644 --- a/src/ShapeRecogn/Test/PlaneTest.cxx +++ b/src/ShapeRecogn/Test/PlaneTest.cxx @@ -3,12 +3,14 @@ #include "ShapeRecognMesh.hxx" #include "Areas.hxx" #include "MathOps.hxx" +#include "TestInterpKernelUtils.hxx" // getResourceFile() using namespace MEDCoupling; void PlaneTest::setUp() { - srMesh = new ShapeRecognMesh("shaperecogn_examples/plane.med"); + std::string file = INTERP_TEST::getResourceFile("ShapeRecognPlane.med", 3); + srMesh = new ShapeRecognMesh(file); srMesh->recognize(); areas = srMesh->getAreas(); } diff --git a/src/ShapeRecogn/Test/TestShapeRecogn.cxx b/src/ShapeRecogn/Test/TestShapeRecogn.cxx index 8bc7fa6d0..68723c52c 100644 --- a/src/ShapeRecogn/Test/TestShapeRecogn.cxx +++ b/src/ShapeRecogn/Test/TestShapeRecogn.cxx @@ -20,7 +20,7 @@ #include "MathOpsTest.hxx" #include "PlaneTest.hxx" -CPPUNIT_TEST_SUITE_REGISTRATION(MEDCoupling::PlaneTest); CPPUNIT_TEST_SUITE_REGISTRATION(MEDCoupling::MathOpsTest); +CPPUNIT_TEST_SUITE_REGISTRATION(MEDCoupling::PlaneTest); #include "BasicMainTest.hxx"