1 // File: GeomAPI_Pln.cpp
2 // Created: 23 Apr 2014
3 // Author: Mikhail PONIKAROV
5 #include<GeomAPI_Pln.h>
6 #include <GeomAPI_Pnt.h>
7 #include <GeomAPI_Dir.h>
13 GeomAPI_Pln::GeomAPI_Pln(const boost::shared_ptr<GeomAPI_Pnt>& thePoint,
14 const boost::shared_ptr<GeomAPI_Dir>& theNormal)
15 : GeomAPI_Interface(new gp_Pln(thePoint->impl<gp_Pnt>(), theNormal->impl<gp_Dir>()))
19 GeomAPI_Pln::GeomAPI_Pln(const double theA, const double theB, const double theC, const double theD)
20 : GeomAPI_Interface(new gp_Pln(theA, theB, theC, theD))
24 boost::shared_ptr<GeomAPI_Pnt> GeomAPI_Pln::location()
26 gp_Pnt aLoc = impl<gp_Pln>().Location();
27 return boost::shared_ptr<GeomAPI_Pnt>(new GeomAPI_Pnt(aLoc.X(), aLoc.Y(), aLoc.Z()));
30 boost::shared_ptr<GeomAPI_Dir> GeomAPI_Pln::direction()
32 const gp_Dir& aDir = impl<gp_Pln>().Axis().Direction();
33 return boost::shared_ptr<GeomAPI_Dir>(new GeomAPI_Dir(aDir.X(), aDir.Y(), aDir.Z()));
36 void GeomAPI_Pln::coefficients(double& theA, double& theB, double& theC, double& theD)
38 impl<gp_Pln>().Coefficients(theA, theB, theC, theD);