X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FGeomAPI%2FGeomAPI_Pln.cpp;h=cee05500816e80885f7f4e5fd7cf6a02fe4be594;hb=9e869ede4d8c56262bb20534543c2bf56cd6a91b;hp=5780b3d819df8a23ed80928a37b03453e752cc06;hpb=e0599afe13a8f2be4fe593e6d50b23a23b0a6c81;p=modules%2Fshaper.git diff --git a/src/GeomAPI/GeomAPI_Pln.cpp b/src/GeomAPI/GeomAPI_Pln.cpp index 5780b3d81..cee055008 100644 --- a/src/GeomAPI/GeomAPI_Pln.cpp +++ b/src/GeomAPI/GeomAPI_Pln.cpp @@ -10,29 +10,27 @@ using namespace std; -GeomAPI_Pln::GeomAPI_Pln(const boost::shared_ptr& thePoint, - const boost::shared_ptr& theNormal) -: GeomAPI_Interface(new gp_Pln(thePoint->impl(), - theNormal->impl())) +GeomAPI_Pln::GeomAPI_Pln(const std::shared_ptr& thePoint, + const std::shared_ptr& theNormal) + : GeomAPI_Interface(new gp_Pln(thePoint->impl(), theNormal->impl())) { } -GeomAPI_Pln::GeomAPI_Pln( - const double theA, const double theB, const double theC, const double theD) -: GeomAPI_Interface(new gp_Pln(theA, theB, theC, theD)) +GeomAPI_Pln::GeomAPI_Pln(const double theA, const double theB, const double theC, const double theD) + : GeomAPI_Interface(new gp_Pln(theA, theB, theC, theD)) { } -boost::shared_ptr GeomAPI_Pln::location() +std::shared_ptr GeomAPI_Pln::location() { gp_Pnt aLoc = impl().Location(); - return boost::shared_ptr(new GeomAPI_Pnt(aLoc.X(), aLoc.Y(), aLoc.Z())); + return std::shared_ptr(new GeomAPI_Pnt(aLoc.X(), aLoc.Y(), aLoc.Z())); } -boost::shared_ptr GeomAPI_Pln::direction() +std::shared_ptr GeomAPI_Pln::direction() { const gp_Dir& aDir = impl().Axis().Direction(); - return boost::shared_ptr(new GeomAPI_Dir(aDir.X(), aDir.Y(), aDir.Z())); + return std::shared_ptr(new GeomAPI_Dir(aDir.X(), aDir.Y(), aDir.Z())); } void GeomAPI_Pln::coefficients(double& theA, double& theB, double& theC, double& theD)