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())
class ShapeRecognMesh
{
public:
- ShapeRecognMesh(const std::string &fileName);
+ ShapeRecognMesh(const std::string &fileName, int meshDimRelToMax = 0);
~ShapeRecognMesh();
const Nodes *getNodes() const;