From: Anthony Geay Date: Wed, 9 Oct 2024 07:50:53 +0000 (+0200) Subject: [EDF30384] : Shape recognition pretty printer X-Git-Tag: V9_14_0a1~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fba2dc860413ba6cc982f806fc1d8a0f5b6139b9;p=tools%2Fmedcoupling.git [EDF30384] : Shape recognition pretty printer --- diff --git a/src/ShapeRecogn/Swig/ShapeRecognCommon.i b/src/ShapeRecogn/Swig/ShapeRecognCommon.i index 3bd80083e..982eeb16b 100644 --- a/src/ShapeRecogn/Swig/ShapeRecognCommon.i +++ b/src/ShapeRecogn/Swig/ShapeRecognCommon.i @@ -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"] diff --git a/src/ShapeRecogn/Swig/ShapeRecognImpl.i b/src/ShapeRecogn/Swig/ShapeRecognImpl.i index 5c4c0fb86..97d8ba3c0 100644 --- a/src/ShapeRecogn/Swig/ShapeRecognImpl.i +++ b/src/ShapeRecogn/Swig/ShapeRecognImpl.i @@ -107,6 +107,12 @@ public: std::array tmp(self->getCenter(areaId)); return {tmp.cbegin(),tmp.cend()}; } + + std::vector getApex(mcIdType areaId) const + { + std::array tmp(self->getApex(areaId)); + return {tmp.cbegin(),tmp.cend()}; + } } private: Areas();