]> SALOME platform Git repositories - tools/medcoupling.git/commitdiff
Salome HOME
[EDF30384] : Shape recognition pretty printer
authorAnthony Geay <anthony.geay@edf.fr>
Wed, 9 Oct 2024 07:50:53 +0000 (09:50 +0200)
committerAnthony Geay <anthony.geay@edf.fr>
Wed, 9 Oct 2024 07:50:53 +0000 (09:50 +0200)
src/ShapeRecogn/Swig/ShapeRecognCommon.i
src/ShapeRecogn/Swig/ShapeRecognImpl.i

index 3bd80083ed7dcb1096196b05221f946c00003292..982eeb16bd500f1ecebc794b9d4458ab21289bcc 100644 (file)
@@ -56,7 +56,7 @@ using namespace INTERP_KERNEL;
 def AreasListOfPropertiesForPrimitive(cls, primitiveType):
   # Cone
   if primitiveType == 3:
-    return ["Radius","AxisPoint","Axis"]
+    return ["Radius","Angle","Axis","AxisPoint","Apex"]
   # Plan
   elif primitiveType == 0:
     return ["Normal","AffinePoint"]
index 5c4c0fb867dce0347d4827410a0e35ee275a1c83..97d8ba3c0527c1309de8b5c6296d6b112d8efe13 100644 (file)
@@ -107,6 +107,12 @@ public:
         std::array<double, 3> tmp(self->getCenter(areaId));
         return {tmp.cbegin(),tmp.cend()};
       }
+
+      std::vector<double> getApex(mcIdType areaId) const
+      {
+        std::array<double, 3> tmp(self->getApex(areaId));
+        return {tmp.cbegin(),tmp.cend()};
+      }
     }
 private:
     Areas();