From 76470405134524de3083bd06c2f640bdc341e7de Mon Sep 17 00:00:00 2001 From: rnc Date: Fri, 2 Mar 2012 12:55:18 +0000 Subject: [PATCH] small modification to have a better preview --- src/OperationGUI/OperationGUI_ExtrudedFeatureDlg.cxx | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/OperationGUI/OperationGUI_ExtrudedFeatureDlg.cxx b/src/OperationGUI/OperationGUI_ExtrudedFeatureDlg.cxx index d537de779..f475c2a75 100644 --- a/src/OperationGUI/OperationGUI_ExtrudedFeatureDlg.cxx +++ b/src/OperationGUI/OperationGUI_ExtrudedFeatureDlg.cxx @@ -361,19 +361,13 @@ bool OperationGUI_ExtrudedFeatureDlg::execute (ObjectList& objects) bool isProtrusion = (myOperation == OperationGUI::BOSS); + // Hide the initial shape in order to see the modifications on the preview + getDisplayer()->Erase(myObject1.get(),false,false); + GEOM::GEOM_Object_var anObj = anOper->MakeDraftPrism(myObject1.get(), myObject2.get(), myGroup->SpinBox_DX->value(), angle, isProtrusion); -// switch (myOperation) -// { -// case OperationGUI::BOSS: -// anObj = anOper->MakeDraftPrism(myObject1.get(), myObject2.get(),myGroup->SpinBox_DX->value(),angle, true); -// break; -// case OperationGUI::CUT: -// anObj = anOper->MakeDraftPrism(myObject1.get(), myObject2.get(),myGroup->SpinBox_DX->value(),angle, false); -// break; -// } if (!anObj->_is_nil()) objects.push_back(anObj._retn()); -- 2.39.2