From 6339093425f6055e2491220a54ae23936642768d Mon Sep 17 00:00:00 2001 From: dbv Date: Tue, 14 Jun 2016 17:22:29 +0300 Subject: [PATCH] Fixed features creation from CPP High API --- src/FeaturesAPI/FeaturesAPI_Boolean.cpp | 8 +++++--- src/FeaturesAPI/FeaturesAPI_Extrusion.cpp | 22 +++++++++++----------- src/PythonAPI/examples/MakeBrick1.py | 2 ++ 3 files changed, 18 insertions(+), 14 deletions(-) diff --git a/src/FeaturesAPI/FeaturesAPI_Boolean.cpp b/src/FeaturesAPI/FeaturesAPI_Boolean.cpp index 6f68890cf..128b9abfc 100644 --- a/src/FeaturesAPI/FeaturesAPI_Boolean.cpp +++ b/src/FeaturesAPI/FeaturesAPI_Boolean.cpp @@ -25,9 +25,11 @@ FeaturesAPI_Boolean::FeaturesAPI_Boolean(const std::shared_ptr : ModelHighAPI_Interface(theFeature) { if(initialize()) { - setBoolType(theBoolType); - setMainObjects(theMainObjects); - setToolObjects(theToolObjects); + fillAttribute(theBoolType, myboolType); + fillAttribute(theMainObjects, mymainObjects); + fillAttribute(theToolObjects, mytoolObjects); + + execute(); } } diff --git a/src/FeaturesAPI/FeaturesAPI_Extrusion.cpp b/src/FeaturesAPI/FeaturesAPI_Extrusion.cpp index da6f0cf3e..8bb243a02 100644 --- a/src/FeaturesAPI/FeaturesAPI_Extrusion.cpp +++ b/src/FeaturesAPI/FeaturesAPI_Extrusion.cpp @@ -23,8 +23,8 @@ FeaturesAPI_Extrusion::FeaturesAPI_Extrusion(const std::shared_ptr