#include <ModelAPI_ResultBody.h>
#include <ModelAPI_ResultPart.h>
-#include <iostream>
+#include <FeaturesPlugin_Tools.h>
//=================================================================================================
FeaturesPlugin_Scale::FeaturesPlugin_Scale()
// 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());
}
#include <FeaturesPlugin_Symmetry.h>
#include <GeomAlgoAPI_PointBuilder.h>
+#include <GeomAlgoAPI_FaceBuilder.h>
#include <GeomAPI_Edge.h>
#include <GeomAPI_Face.h>
#include <ModelAPI_ResultBody.h>
#include <ModelAPI_ResultPart.h>
-#include <iostream>
-#include <GeomAlgoAPI_FaceBuilder.h>
+#include <FeaturesPlugin_Tools.h>
//=================================================================================================
FeaturesPlugin_Symmetry::FeaturesPlugin_Symmetry()
// 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());
}