X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAPI%2FGeomAPI_Shape.h;h=4e148978cd162140c5b9316ebd6ef0e5d89c9c6a;hb=4df4bd61da1ea5d357671c819a8ced6ec9ba77ac;hp=c7345461bd6a3bebfaea24509edfbb77ebc3c133;hpb=87b6a30a3afb8fb32e7e43ade8d9c947d9eb1684;p=modules%2Fshaper.git diff --git a/src/GeomAPI/GeomAPI_Shape.h b/src/GeomAPI/GeomAPI_Shape.h index c7345461b..4e148978c 100644 --- a/src/GeomAPI/GeomAPI_Shape.h +++ b/src/GeomAPI/GeomAPI_Shape.h @@ -21,6 +21,8 @@ #ifndef GeomAPI_Shape_H_ #define GeomAPI_Shape_H_ +#include "GeomAPI_Dir.h" + #include #include #include @@ -142,6 +144,10 @@ public: /// Returns true if min distance between shapes < tolerance. GEOMAPI_EXPORT bool isIntersect(const std::shared_ptr theShape) const; + + // Translates the shape along the direction for the given offset + GEOMAPI_EXPORT + void translate(const std::shared_ptr theDir, const double theOffset); }; //! Pointer on list of shapes