From 1d7abd169bade6cae014dffff7568a4bafecb29b Mon Sep 17 00:00:00 2001 From: vm247602 Date: Wed, 25 Oct 2017 08:23:44 +0200 Subject: [PATCH] Debugging naming for the symmetry and the scale. --- src/FeaturesPlugin/FeaturesPlugin_Scale.cpp | 11 +++++------ src/FeaturesPlugin/FeaturesPlugin_Symmetry.cpp | 11 +++++------ 2 files changed, 10 insertions(+), 12 deletions(-) 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()); } -- 2.39.2