X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FFeaturesPlugin%2FFeaturesPlugin_Movement.cpp;h=bebbcd735c6ee6584d19a427e01de07c98d04628;hb=82d3fff7d0ed2c089da5aa6b106789be076081f3;hp=a65e1d9e4e4c9c294cadefed6543c185bc049e7e;hpb=0fa8510370c4dadc7494b875fec782b26228e1df;p=modules%2Fshaper.git diff --git a/src/FeaturesPlugin/FeaturesPlugin_Movement.cpp b/src/FeaturesPlugin/FeaturesPlugin_Movement.cpp index a65e1d9e4..bebbcd735 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_Movement.cpp +++ b/src/FeaturesPlugin/FeaturesPlugin_Movement.cpp @@ -8,6 +8,7 @@ #include #include +#include #include #include #include @@ -110,7 +111,7 @@ void FeaturesPlugin_Movement::execute() } } ResultPartPtr aResultPart = document()->copyPart(aCurrentResult, anOrigin, aResultIndex); - aResultPart->setShape(*aContext, aMovementAlgo.shape()); + aResultPart->setTrsf(*aContext, aMovementAlgo.transformation()); setResult(aResultPart); } else { ResultBodyPtr aResultBody = document()->createBody(data(), aResultIndex); @@ -128,15 +129,16 @@ void FeaturesPlugin_Movement::LoadNamingDS(const GeomAlgoAPI_Movement& theMoveme std::shared_ptr theResultBody, std::shared_ptr theBaseShape) { + ModelAPI_BodyBuilder* aResultBuilder = theResultBody->getBodyBuilder(); // Store result. - theResultBody->storeModified(theBaseShape, theMovementAlgo.shape()); + aResultBuilder->storeModified(theBaseShape, theMovementAlgo.shape()); std::shared_ptr aSubShapes = theMovementAlgo.mapOfShapes(); int aMovedTag = 1; std::string aMovedName = "Moved"; - theResultBody->loadAndOrientModifiedShapes(theMovementAlgo.makeShape().get(), - theBaseShape, GeomAPI_Shape::FACE, - aMovedTag, aMovedName, *aSubShapes.get()); + aResultBuilder->loadAndOrientModifiedShapes(theMovementAlgo.makeShape().get(), + theBaseShape, GeomAPI_Shape::FACE, + aMovedTag, aMovedName, *aSubShapes.get()); }