]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Add the plane mesh to the resources
authorEl Hadi Moussi <moussi@phimeca.com>
Tue, 6 Aug 2024 09:43:31 +0000 (11:43 +0200)
committerEl Hadi Moussi <moussi@phimeca.com>
Tue, 6 Aug 2024 09:43:31 +0000 (11:43 +0200)
resources/CMakeLists.txt
resources/ShapeRecognPlane.med [new file with mode: 0755]
src/ShapeRecogn/Test/PlaneTest.cxx
src/ShapeRecogn/Test/TestShapeRecogn.cxx

index 704221ca6974f8a04d6e439aa3e7c98c6f9816b2..f9488c032c8e923c1ef185879dbbecccd599ddb8 100644 (file)
@@ -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 (executable)
index 0000000..c06ecfb
Binary files /dev/null and b/resources/ShapeRecognPlane.med differ
index 4b9744fbc242f01350f85811658a1ad599af31e9..3bd1b62a91e41bf9d48934b1c0436323f5680f75 100644 (file)
@@ -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();
 }
index 8bc7fa6d05e2c643b31b796e71caf6f1ae2bd765..68723c52ca9e71c3e372537d271c8a98ca4cd1e6 100644 (file)
@@ -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"