X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAPI%2FGeomAPI_Dir.cpp;h=6f57e76815be685afaf7de7fdd399aaceead0348;hb=ced1c42d80f02b1efa749ecdf35e620dcca4d9cc;hp=5c42d68a0d9e6afc35664479468a23ca8701ee89;hpb=70c9f5e2dc706c38c9cde76df9108011512b8680;p=modules%2Fshaper.git diff --git a/src/GeomAPI/GeomAPI_Dir.cpp b/src/GeomAPI/GeomAPI_Dir.cpp index 5c42d68a0..6f57e7681 100644 --- a/src/GeomAPI/GeomAPI_Dir.cpp +++ b/src/GeomAPI/GeomAPI_Dir.cpp @@ -9,7 +9,7 @@ #include -#define MY_DIR static_cast(myImpl) +#define MY_DIR implPtr() GeomAPI_Dir::GeomAPI_Dir(const double theX, const double theY, const double theZ) : GeomAPI_Interface(new gp_Dir(theX, theY, theZ)) @@ -41,6 +41,11 @@ const std::shared_ptr GeomAPI_Dir::xyz() return std::shared_ptr(new GeomAPI_XYZ(MY_DIR->X(), MY_DIR->Y(), MY_DIR->Z())); } +void GeomAPI_Dir::reverse() +{ + MY_DIR->Reverse(); +} + double GeomAPI_Dir::dot(const std::shared_ptr& theArg) const { return MY_DIR->Dot(theArg->impl());