From: El Hadi Moussi Date: Thu, 8 Aug 2024 15:39:13 +0000 (+0200) Subject: Add access methods to K1, K2 and primitive type of the nodes to expose them as MEDCou... X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=4a48a7bcc86fefd588a2f1d10cc1ac0c6fa2fb4d;p=tools%2Fmedcoupling.git Add access methods to K1, K2 and primitive type of the nodes to expose them as MEDCouplingDoubleField --- diff --git a/src/ShapeRecogn/Nodes.cxx b/src/ShapeRecogn/Nodes.cxx index d1dd810c4..615971ad4 100644 --- a/src/ShapeRecogn/Nodes.cxx +++ b/src/ShapeRecogn/Nodes.cxx @@ -22,6 +22,21 @@ mcIdType Nodes::getNbNodes() const return coords->getNumberOfTuples(); } +const std::vector &Nodes::getK1() const +{ + return k1; +} + +const std::vector &Nodes::getK2() const +{ + return k2; +} + +const std::vector &Nodes::getPrimitiveType() const +{ + return primitives; +} + const std::vector &Nodes::getNormals() const { return normals; diff --git a/src/ShapeRecogn/Nodes.hxx b/src/ShapeRecogn/Nodes.hxx index 273d757f7..c22dc91d6 100644 --- a/src/ShapeRecogn/Nodes.hxx +++ b/src/ShapeRecogn/Nodes.hxx @@ -36,6 +36,9 @@ namespace MEDCoupling ~Nodes(); mcIdType getNbNodes() const; + const std::vector &getK1() const; + const std::vector &getK2() const; + const std::vector &getPrimitiveType() const; const std::vector &getNormals() const; const std::vector &getWeakDirections() const; const std::vector &getMainDirections() const;