Salome HOME
Revert "Revert "Add a new method for translation : translation by two points.""
[modules/shaper.git] / src / GeomAlgoAPI / GeomAlgoAPI_ShapeAPI.h
index f5769a35e2bff8d91480b91b6b1584af38f6c20e..5e0ef0ba9e7cc24ba745753a849666b485b6c21d 100644 (file)
@@ -59,6 +59,16 @@ public:
                      const double theDx,
                      const double theDy,
                      const double theDz) throw (GeomAlgoAPI_Exception);
+
+  /// Performs a translation from two points.
+  /// \param theSourceShape Shape to be moved.
+  /// \param theStartPoint Movement start point.
+  /// \param theEndPoint Movement end point.
+  /// \return a shape
+  static std::shared_ptr<GeomAPI_Shape> makeTranslation(
+                     std::shared_ptr<GeomAPI_Shape> theSourceShape,
+                     std::shared_ptr<GeomAPI_Pnt>   theStartPoint,
+                     std::shared_ptr<GeomAPI_Pnt>   theEndPoint) throw (GeomAlgoAPI_Exception);
 };
 }
 #endif