]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
Add access methods to K1, K2 and primitive type of the nodes to expose them as MEDCou...
authorEl Hadi Moussi <moussi@phimeca.com>
Thu, 8 Aug 2024 15:39:13 +0000 (17:39 +0200)
committerEl Hadi Moussi <moussi@phimeca.com>
Thu, 8 Aug 2024 15:39:13 +0000 (17:39 +0200)
src/ShapeRecogn/Nodes.cxx
src/ShapeRecogn/Nodes.hxx

index d1dd810c45bc8aa99ebd266f906f1da70e1abc06..615971ad4c1d3ea427c34634786a65ca0769988c 100644 (file)
@@ -22,6 +22,21 @@ mcIdType Nodes::getNbNodes() const
     return coords->getNumberOfTuples();
 }
 
+const std::vector<double> &Nodes::getK1() const
+{
+    return k1;
+}
+
+const std::vector<double> &Nodes::getK2() const
+{
+    return k2;
+}
+
+const std::vector<PrimitiveType> &Nodes::getPrimitiveType() const
+{
+    return primitives;
+}
+
 const std::vector<double> &Nodes::getNormals() const
 {
     return normals;
index 273d757f7b7ab8c218e6c62c5a1ce1a0804f45be..c22dc91d65a687ca8ebc996bfb7a6beb0170515c 100644 (file)
@@ -36,6 +36,9 @@ namespace MEDCoupling
         ~Nodes();
 
         mcIdType getNbNodes() const;
+        const std::vector<double> &getK1() const;
+        const std::vector<double> &getK2() const;
+        const std::vector<PrimitiveType> &getPrimitiveType() const;
         const std::vector<double> &getNormals() const;
         const std::vector<double> &getWeakDirections() const;
         const std::vector<double> &getMainDirections() const;