From 084f54230fe75e9cad5c402a2a7e106e967326d7 Mon Sep 17 00:00:00 2001 From: El Hadi Moussi Date: Thu, 8 Aug 2024 18:52:20 +0200 Subject: [PATCH] Add meshDimRelToMax to ShapeRecognMesh --- src/ShapeRecogn/ShapeRecognMesh.cxx | 4 ++-- src/ShapeRecogn/ShapeRecognMesh.hxx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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; -- 2.39.2