X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FBuildPlugin%2FBuildPlugin_Solid.cpp;h=6e79e3b89517d5c007eaefe40fe8598285bd890c;hb=a276c3f6288ffcd67f1dab8323d7e4666a1aded7;hp=0f044564e5a0355f4c340ee5af970fd53f127953;hpb=84615e2e0c6c8df070e877727d25ef7db02f1cf8;p=modules%2Fshaper.git diff --git a/src/BuildPlugin/BuildPlugin_Solid.cpp b/src/BuildPlugin/BuildPlugin_Solid.cpp index 0f044564e..6e79e3b89 100644 --- a/src/BuildPlugin/BuildPlugin_Solid.cpp +++ b/src/BuildPlugin/BuildPlugin_Solid.cpp @@ -60,19 +60,18 @@ void BuildPlugin_Solid::execute() void BuildPlugin_Solid::storeResult(const ListOfShape& theOriginalShapes, const GeomShapePtr& theResultShape, - const std::shared_ptr& theAlgorithm) + const GeomMakeShapePtr& theAlgorithm) { ResultBodyPtr aResultBody = document()->createBody(data()); aResultBody->store(theResultShape); // Store faces - std::shared_ptr aMapOfSubs = theAlgorithm->mapOfSubShapes(); - int aModifiedTag = 1; - for(ListOfShape::const_iterator anIt = theOriginalShapes.cbegin(); - anIt != theOriginalShapes.cend(); ++anIt) { + for (ListOfShape::const_iterator anIt = theOriginalShapes.cbegin(); + anIt != theOriginalShapes.cend(); + ++anIt) + { GeomShapePtr aShape = *anIt; - aResultBody->loadAndOrientModifiedShapes(theAlgorithm.get(), aShape, GeomAPI_Shape::FACE, - aModifiedTag, "Modified_Face", *aMapOfSubs.get(), false, true, true); + aResultBody->loadModifiedShapes(theAlgorithm, aShape, GeomAPI_Shape::FACE, "Modified_Face"); } setResult(aResultBody); }