#include <ModelAPI_Feature.h>
#include <GeomAlgoAPI_Symmetry.h>
+#include <GeomAlgoAPI_MakeShapeList.h>
class GeomAPI_Trsf;
/// Symmetry kind.
inline static const std::string& ID()
{
- static const std::string MY_SYMMETRY_ID("MirrorCopy");
+ static const std::string MY_SYMMETRY_ID("Symmetry");
return MY_SYMMETRY_ID;
}
return MY_PLANE_OBJECT_ID;
}
+ /// Attribute name of keeping original shape.
+ inline static const std::string& KEEP_ORIGINAL_RESULT()
+ {
+ static const std::string MY_KEEP_ORIGINAL_RESULT_ID("keep_original");
+ return MY_KEEP_ORIGINAL_RESULT_ID;
+ }
+
/// \return the kind of a feature.
FEATURESPLUGIN_EXPORT virtual const std::string& getKind()
{
/// Perform symmetry with respect to a plane.
void performSymmetryByPlane();
- /// Perform the naming
- void loadNamingDS(GeomAlgoAPI_Symmetry& theSymmetryAlgo,
- std::shared_ptr<ModelAPI_ResultBody> theResultBody,
- std::shared_ptr<GeomAPI_Shape> theBaseShape);
-
/// Create new result on given shapes and the index of result
- void buildResult(GeomAlgoAPI_Symmetry& theSymmetryAlgo,
+ void buildResult(std::shared_ptr<GeomAlgoAPI_Symmetry>& theSymmetryAlgo,
std::shared_ptr<GeomAPI_Shape> theBaseShape,
int theResultIndex);