]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/FeaturesPlugin/FeaturesPlugin_Rotation.cpp
Salome HOME
Compsolids: initial implementation of sub-results of results on the data model level.
[modules/shaper.git] / src / FeaturesPlugin / FeaturesPlugin_Rotation.cpp
index 7007b9bbf5d3bebc7a3566d5f926251a4e6ed2a0..e71fabcfa311a734ce8b5f76d4a2d2758ccf2d43 100755 (executable)
@@ -119,15 +119,14 @@ void FeaturesPlugin_Rotation::LoadNamingDS(const GeomAlgoAPI_Rotation& theRotaio
                                            std::shared_ptr<ModelAPI_ResultBody> theResultBody,
                                            std::shared_ptr<GeomAPI_Shape> theBaseShape)
 {
-  ModelAPI_BodyBuilder* aResultBuilder = theResultBody->getBodyBuilder();
   // Store result.
-  aResultBuilder->storeModified(theBaseShape, theRotaionAlgo.shape());
+  theResultBody->storeModified(theBaseShape, theRotaionAlgo.shape());
 
   std::shared_ptr<GeomAPI_DataMapOfShapeShape> aSubShapes = theRotaionAlgo.mapOfShapes();
 
   int aRotatedTag = 1;
   std::string aRotatedName = "Rotated";
-  aResultBuilder->loadAndOrientModifiedShapes(theRotaionAlgo.makeShape().get(),
+  theResultBody->loadAndOrientModifiedShapes(theRotaionAlgo.makeShape().get(),
                                               theBaseShape, GeomAPI_Shape::FACE,
                                               aRotatedTag, aRotatedName, *aSubShapes.get());