From: El Hadi Moussi Date: Thu, 8 Aug 2024 16:52:20 +0000 (+0200) Subject: Add meshDimRelToMax to ShapeRecognMesh X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=084f54230fe75e9cad5c402a2a7e106e967326d7;p=tools%2Fmedcoupling.git Add meshDimRelToMax to ShapeRecognMesh --- diff --git a/src/ShapeRecogn/ShapeRecognMesh.cxx b/src/ShapeRecogn/ShapeRecognMesh.cxx index c6e52afeb..9c102128b 100644 --- a/src/ShapeRecogn/ShapeRecognMesh.cxx +++ b/src/ShapeRecogn/ShapeRecognMesh.cxx @@ -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()) diff --git a/src/ShapeRecogn/ShapeRecognMesh.hxx b/src/ShapeRecogn/ShapeRecognMesh.hxx index fd508b0cd..feaaba09f 100644 --- a/src/ShapeRecogn/ShapeRecognMesh.hxx +++ b/src/ShapeRecogn/ShapeRecognMesh.hxx @@ -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;