From: vm247602 Date: Wed, 25 Oct 2017 06:23:44 +0000 (+0200) Subject: Debugging naming for the symmetry and the scale. X-Git-Tag: V_2.9.1~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1d7abd169bade6cae014dffff7568a4bafecb29b;p=modules%2Fshaper.git Debugging naming for the symmetry and the scale. --- diff --git a/src/FeaturesPlugin/FeaturesPlugin_Scale.cpp b/src/FeaturesPlugin/FeaturesPlugin_Scale.cpp index 6791520eb..4e854c22a 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_Scale.cpp +++ b/src/FeaturesPlugin/FeaturesPlugin_Scale.cpp @@ -28,7 +28,7 @@ #include #include -#include +#include //================================================================================================= FeaturesPlugin_Scale::FeaturesPlugin_Scale() @@ -251,9 +251,8 @@ void FeaturesPlugin_Scale::loadNamingDS(GeomAlgoAPI_Scale& theScaleAlgo, // Name the faces std::shared_ptr aSubShapes = theScaleAlgo.mapOfSubShapes(); - int aReflectedTag = 1; - std::string aReflectedName = "Scaled"; - theResultBody->loadAndOrientModifiedShapes(&theScaleAlgo, - theBaseShape, GeomAPI_Shape::FACE, - aReflectedTag, aReflectedName, *aSubShapes.get()); + std::string aScaledName = "Scaled"; + FeaturesPlugin_Tools::storeModifiedShapes(theScaleAlgo, theResultBody, + theBaseShape, 1, 2, 3, aScaledName, + *aSubShapes.get()); } diff --git a/src/FeaturesPlugin/FeaturesPlugin_Symmetry.cpp b/src/FeaturesPlugin/FeaturesPlugin_Symmetry.cpp index 962679d49..7121e968d 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_Symmetry.cpp +++ b/src/FeaturesPlugin/FeaturesPlugin_Symmetry.cpp @@ -21,6 +21,7 @@ #include #include +#include #include #include @@ -33,8 +34,7 @@ #include #include -#include -#include +#include //================================================================================================= FeaturesPlugin_Symmetry::FeaturesPlugin_Symmetry() @@ -369,9 +369,8 @@ void FeaturesPlugin_Symmetry::loadNamingDS(GeomAlgoAPI_Symmetry& theSymmetryAlgo // Name the faces std::shared_ptr aSubShapes = theSymmetryAlgo.mapOfSubShapes(); - int aReflectedTag = 1; std::string aReflectedName = "Symmetried"; - theResultBody->loadAndOrientModifiedShapes(&theSymmetryAlgo, - theBaseShape, GeomAPI_Shape::FACE, - aReflectedTag, aReflectedName, *aSubShapes.get()); + FeaturesPlugin_Tools::storeModifiedShapes(theSymmetryAlgo, theResultBody, + theBaseShape, 1, 2, 3, aReflectedName, + *aSubShapes.get()); }