X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAlgoAPI%2FGeomAlgoAPI_ShapeAPI.h;h=5e0ef0ba9e7cc24ba745753a849666b485b6c21d;hb=d9d6904264df238227607220a68dca38c537d8cb;hp=f5769a35e2bff8d91480b91b6b1584af38f6c20e;hpb=596cc06a3cdc89783d15e893e7da4b6b882fb442;p=modules%2Fshaper.git diff --git a/src/GeomAlgoAPI/GeomAlgoAPI_ShapeAPI.h b/src/GeomAlgoAPI/GeomAlgoAPI_ShapeAPI.h index f5769a35e..5e0ef0ba9 100644 --- a/src/GeomAlgoAPI/GeomAlgoAPI_ShapeAPI.h +++ b/src/GeomAlgoAPI/GeomAlgoAPI_ShapeAPI.h @@ -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 makeTranslation( + std::shared_ptr theSourceShape, + std::shared_ptr theStartPoint, + std::shared_ptr theEndPoint) throw (GeomAlgoAPI_Exception); }; } #endif