X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGenerationGUI%2FGenerationGUI_ThicknessDlg.cxx;h=3c6bd003e9ff0aed6068aece53580ea29cc94de6;hb=46f10dcf9b67067b776a44fff6e5dde7bc9ed465;hp=f743fa63151979dc40d8683a689bbf93309c5dd8;hpb=58b6d007bceec500c219b94e16c7c62d76458012;p=modules%2Fgeom.git diff --git a/src/GenerationGUI/GenerationGUI_ThicknessDlg.cxx b/src/GenerationGUI/GenerationGUI_ThicknessDlg.cxx index f743fa631..3c6bd003e 100644 --- a/src/GenerationGUI/GenerationGUI_ThicknessDlg.cxx +++ b/src/GenerationGUI/GenerationGUI_ThicknessDlg.cxx @@ -421,6 +421,7 @@ bool GenerationGUI_ThicknessDlg::execute (ObjectList& objects) GEOM::GEOM_I3DPrimOperations_var anOper = GEOM::GEOM_I3DPrimOperations::_narrow(getOperation()); double aThickness = myThicknessSpin->value(); + bool anInside = myInsideCheck->isChecked(); GEOM::ListOfLong_var anObjIDsList = new GEOM::ListOfLong(); TopoDS_Shape aShape; @@ -452,16 +453,28 @@ bool GenerationGUI_ThicknessDlg::execute (ObjectList& objects) } } - if (myInsideCheck->isChecked()) { - aThickness = -aThickness; - } - anObj = anOper->MakeThickening - (myObject.get(), anObjIDsList.in(), aThickness, true); + (myObject.get(), anObjIDsList.in(), aThickness, true, anInside); if (!anObj->_is_nil()) { + if (!IsPreview()) { + QStringList aParameters; + aParameters << myThicknessSpin->text(); + anObj->SetParameters(aParameters.join(":").toUtf8().constData()); + } objects.push_back(anObj._retn()); } return true; } + +//================================================================================= +// function : getSourceObjects +// purpose : virtual method to get source objects +//================================================================================= +QList GenerationGUI_ThicknessDlg::getSourceObjects() +{ + QList res(myFaces); + res << myObject; + return res; +}