Salome HOME
Deleting the option of "Scale" feature from dimensions in X, in Y and in Z.
[modules/shaper.git] / src / GeomAPI / GeomAPI_Trsf.cpp
index 21a972872bbf2ca3a10d58fc0e14b3f0e66c5eac..6274599632846ba108524e290d1dbd777035545e 100644 (file)
 
 #include <gp_Ax1.hxx>
 #include <gp_Ax2.hxx>
+#include <gp_GTrsf.hxx>
 #include <gp_Trsf.hxx>
 
 #define MY_TRSF implPtr<gp_Trsf>()
 
+#include <iostream>
+
 //=================================================================================================
 GeomAPI_Trsf::GeomAPI_Trsf()
 : GeomAPI_Interface(new gp_Trsf())
@@ -73,3 +76,10 @@ void GeomAPI_Trsf::setSymmetry(const std::shared_ptr<GeomAPI_Ax2> thePlane)
 {
   MY_TRSF->SetMirror(thePlane->impl<gp_Ax2>());
 }
+
+//=================================================================================================
+void GeomAPI_Trsf::setScale(const std::shared_ptr<GeomAPI_Pnt> theCenterPoint,
+                            const double theScaleFactor)
+{
+  MY_TRSF->SetScale(theCenterPoint->impl<gp_Pnt>(), theScaleFactor);
+}