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>(),
16 theNormal->impl<gp_Dir>()))
20 GeomAPI_Pln::GeomAPI_Pln(
21 const double theA, const double theB, const double theC, const double theD)
22 : GeomAPI_Interface(new gp_Pln(theA, theB, theC, theD))
26 boost::shared_ptr<GeomAPI_Pnt> GeomAPI_Pln::location()
28 gp_Pnt aLoc = impl<gp_Pln>().Location();
29 return boost::shared_ptr<GeomAPI_Pnt>(new GeomAPI_Pnt(aLoc.X(), aLoc.Y(), aLoc.Z()));
32 boost::shared_ptr<GeomAPI_Dir> GeomAPI_Pln::direction()
34 const gp_Dir& aDir = impl<gp_Pln>().Axis().Direction();
35 return boost::shared_ptr<GeomAPI_Dir>(new GeomAPI_Dir(aDir.X(), aDir.Y(), aDir.Z()));
38 void GeomAPI_Pln::coefficients(double& theA, double& theB, double& theC, double& theD)
40 impl<gp_Pln>().Coefficients(theA, theB, theC, theD);