]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Debugging naming for the symmetry and the scale.
authorvm247602 <clarisse.genrault@cea.fr>
Wed, 25 Oct 2017 06:23:44 +0000 (08:23 +0200)
committervm247602 <clarisse.genrault@cea.fr>
Wed, 25 Oct 2017 06:23:44 +0000 (08:23 +0200)
src/FeaturesPlugin/FeaturesPlugin_Scale.cpp
src/FeaturesPlugin/FeaturesPlugin_Symmetry.cpp

index 6791520eb1524156b409faddccf7d0d658e40052..4e854c22a5f491e742f68ad57121d9b4c916382b 100644 (file)
@@ -28,7 +28,7 @@
 #include <ModelAPI_ResultBody.h>
 #include <ModelAPI_ResultPart.h>
 
-#include <iostream>
+#include <FeaturesPlugin_Tools.h>
 
 //=================================================================================================
 FeaturesPlugin_Scale::FeaturesPlugin_Scale()
@@ -251,9 +251,8 @@ void FeaturesPlugin_Scale::loadNamingDS(GeomAlgoAPI_Scale& theScaleAlgo,
 
   // Name the faces
   std::shared_ptr<GeomAPI_DataMapOfShapeShape> 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());
 }
index 962679d49966782d299b43b0066f88228acfab59..7121e968d710362ec4be831088e383c6ba14f249 100644 (file)
@@ -21,6 +21,7 @@
 #include <FeaturesPlugin_Symmetry.h>
 
 #include <GeomAlgoAPI_PointBuilder.h>
+#include <GeomAlgoAPI_FaceBuilder.h>
 
 #include <GeomAPI_Edge.h>
 #include <GeomAPI_Face.h>
@@ -33,8 +34,7 @@
 #include <ModelAPI_ResultBody.h>
 #include <ModelAPI_ResultPart.h>
 
-#include <iostream>
-#include <GeomAlgoAPI_FaceBuilder.h>
+#include <FeaturesPlugin_Tools.h>
 
 //=================================================================================================
 FeaturesPlugin_Symmetry::FeaturesPlugin_Symmetry()
@@ -369,9 +369,8 @@ void FeaturesPlugin_Symmetry::loadNamingDS(GeomAlgoAPI_Symmetry& theSymmetryAlgo
 
   // Name the faces
   std::shared_ptr<GeomAPI_DataMapOfShapeShape> 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());
 }