]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Add meshDimRelToMax to ShapeRecognMesh
authorEl Hadi Moussi <moussi@phimeca.com>
Thu, 8 Aug 2024 16:52:20 +0000 (18:52 +0200)
committerEl Hadi Moussi <moussi@phimeca.com>
Thu, 8 Aug 2024 16:52:20 +0000 (18:52 +0200)
src/ShapeRecogn/ShapeRecognMesh.cxx
src/ShapeRecogn/ShapeRecognMesh.hxx

index c6e52afeb8ace34e516cd5592e9c404a9e944c36..9c102128b439b2c32dbc6a10f07fbaa7f95df348 100644 (file)
@@ -7,9 +7,9 @@
 
 using namespace MEDCoupling;
 
-ShapeRecognMesh::ShapeRecognMesh(const std::string &fileName)
+ShapeRecognMesh::ShapeRecognMesh(const std::string &fileName, int meshDimRelToMax)
 {
-    mesh = ReadUMeshFromFile(fileName);
+    mesh = ReadUMeshFromFile(fileName, meshDimRelToMax);
     if (mesh->getMeshDimension() != 2)
         throw INTERP_KERNEL::Exception("Expect a mesh with a dimension equal to 2");
     if (mesh->getNumberOfCellsWithType(INTERP_KERNEL::NORM_TRI3) != mesh->getNumberOfCells())
index fd508b0cd81c87e14f407490239eabd216fa864b..feaaba09f52caaa87a74ddea788a31d3f58f778b 100644 (file)
@@ -33,7 +33,7 @@ namespace MEDCoupling
     class ShapeRecognMesh
     {
     public:
-        ShapeRecognMesh(const std::string &fileName);
+        ShapeRecognMesh(const std::string &fileName, int meshDimRelToMax = 0);
         ~ShapeRecognMesh();
 
         const Nodes *getNodes() const;