X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FFeaturesPlugin%2FFeaturesPlugin_RevolutionSketch.cpp;h=1835080571091bc69b137f06003ac72c3cfdc90f;hb=4fc2dc9fdc0c14fab5f2780598eccdc1368d81b9;hp=454e658bad0d66d7ddf5d4bb517b754e143e622c;hpb=dacb05dcf5c8ad153d2bf05bbca8dccb67ba3a2f;p=modules%2Fshaper.git diff --git a/src/FeaturesPlugin/FeaturesPlugin_RevolutionSketch.cpp b/src/FeaturesPlugin/FeaturesPlugin_RevolutionSketch.cpp index 454e658ba..183508057 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_RevolutionSketch.cpp +++ b/src/FeaturesPlugin/FeaturesPlugin_RevolutionSketch.cpp @@ -4,7 +4,7 @@ // Created: 11 September 2015 // Author: Dmitry Bobylev -#include +#include "FeaturesPlugin_RevolutionSketch.h" #include #include @@ -43,11 +43,7 @@ void FeaturesPlugin_RevolutionSketch::initMakeSolidsAttributes() //================================================================================================= void FeaturesPlugin_RevolutionSketch::makeSolid(const std::shared_ptr theFace, - std::shared_ptr& theResult, - ListOfShape& theFromFaces, - ListOfShape& theToFaces, - std::shared_ptr& theMakeShape, - std::shared_ptr& theDataMap) + std::shared_ptr& theMakeShape) { //Getting axis. std::shared_ptr anAxis; @@ -96,17 +92,13 @@ void FeaturesPlugin_RevolutionSketch::makeSolid(const std::shared_ptr aRevolAlgo(new GeomAlgoAPI_Revolution(theFace, anAxis, aToShape, aToAngle, aFromShape, aFromAngle)); // Checking that the algorithm worked properly. - if(!aRevolAlgo.isDone() || !aRevolAlgo.shape().get() || aRevolAlgo.shape()->isNull() || - !aRevolAlgo.isValid()) { + if(!aRevolAlgo->isDone() || !aRevolAlgo->shape().get() || aRevolAlgo->shape()->isNull() || + !aRevolAlgo->isValid()) { return; } - theResult = aRevolAlgo.shape(); - theFromFaces = aRevolAlgo.fromFaces(); - theToFaces = aRevolAlgo.toFaces(); - theMakeShape = aRevolAlgo.makeShape(); - theDataMap = aRevolAlgo.mapOfShapes(); + theMakeShape = aRevolAlgo; }