Salome HOME
Debug (add the creation method int the API Parametric).
[modules/shaper.git] / src / PrimitivesAPI / PrimitivesAPI_Cylinder.cpp
index debf4b0541fe06fbb6e3364ec746ef188a5589dd..7d342b9141b112709f49a322f15698773a2e7fcf 100644 (file)
@@ -26,6 +26,7 @@ PrimitivesAPI_Cylinder::PrimitivesAPI_Cylinder(const std::shared_ptr<ModelAPI_Fe
 : ModelHighAPI_Interface(theFeature)
 {
   if (initialize()) {
+    fillAttribute(PrimitivesPlugin_Cylinder::CREATION_METHOD_CYLINDER(), creationMethod());
     fillAttribute(theBasePoint, basePoint());
     fillAttribute(theAxis, axis());
     setSizes(theRadius, theHeight);
@@ -42,6 +43,7 @@ PrimitivesAPI_Cylinder::PrimitivesAPI_Cylinder(const std::shared_ptr<ModelAPI_Fe
 : ModelHighAPI_Interface(theFeature)
 {
   if (initialize()) {
+    fillAttribute(PrimitivesPlugin_Cylinder::CREATION_METHOD_CYLINDER_PORTION(), creationMethod());
     fillAttribute(theBasePoint, basePoint());
     fillAttribute(theAxis, axis());
     fillAttribute(theAngle, angle());