X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FBuildPlugin%2FBuildPlugin_CompSolid.cpp;h=c45eeb23eb3f4e396f98154ea26d8d8775e27daf;hb=c57d2a7f1a57af01656e47e2e510990492404fce;hp=0fdb399fa31098b109dc1c4aa34577bb503dfd9c;hpb=dc75c390f0aa6108d6983a8618dc4b9a4cd5949e;p=modules%2Fshaper.git diff --git a/src/BuildPlugin/BuildPlugin_CompSolid.cpp b/src/BuildPlugin/BuildPlugin_CompSolid.cpp index 0fdb399fa..c45eeb23e 100644 --- a/src/BuildPlugin/BuildPlugin_CompSolid.cpp +++ b/src/BuildPlugin/BuildPlugin_CompSolid.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2017-20xx CEA/DEN, EDF R&D +// Copyright (C) 2017-2019 CEA/DEN, EDF R&D // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -12,10 +12,9 @@ // // You should have received a copy of the GNU Lesser General Public // License along with this library; if not, write to the Free Software -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // -// See http://www.salome-platform.org/ or -// email : webmaster.salome@opencascade.com +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // #include "BuildPlugin_CompSolid.h" @@ -33,25 +32,3 @@ void BuildPlugin_CompSolid::initAttributes() { data()->addAttribute(BASE_OBJECTS_ID(), ModelAPI_AttributeSelectionList::typeId()); } - -//================================================================================================= -void BuildPlugin_CompSolid::execute() -{ - // all the needed checkings are in validator, so, here just make and store result - ListOfShape anOriginalShapes; - AttributeSelectionListPtr aSelectionList = selectionList(BASE_OBJECTS_ID()); - for (int anIndex = 0; anIndex < aSelectionList->size(); ++anIndex) { - AttributeSelectionPtr aSelection = aSelectionList->value(anIndex); - GeomShapePtr aShape = aSelection->value(); - if (!aShape.get()) - aShape = aSelection->context()->shape(); - anOriginalShapes.push_back(aShape); - } - std::shared_ptr anAlgo( - new GeomAlgoAPI_MakeVolume(anOriginalShapes, false)); - GeomShapePtr aVolumeRes = anAlgo->shape(); - - // check and process result of volume maker - GeomShapePtr aResShape = getSingleSubshape(aVolumeRes); - storeResult(anOriginalShapes, aResShape, anAlgo); -}