20 #ifndef GeomAPI_Pln_H_
21 #define GeomAPI_Pln_H_
24 #include <GeomAPI_Interface.h>
42 GeomAPI_Pln(
const std::shared_ptr<GeomAPI_Ax3>& theAxes);
46 GeomAPI_Pln(
const std::shared_ptr<GeomAPI_Pnt>& thePoint,
47 const std::shared_ptr<GeomAPI_Dir>& theNormal);
51 GeomAPI_Pln(
const double theA,
const double theB,
const double theC,
const double theD);
55 std::shared_ptr<GeomAPI_Pnt>
location()
const;
59 std::shared_ptr<GeomAPI_Dir>
direction()
const;
63 std::shared_ptr<GeomAPI_Dir>
xDirection()
const;
67 void coefficients(
double& theA,
double& theB,
double& theC,
double& theD);
71 bool isCoincident(
const std::shared_ptr<GeomAPI_Pln> thePlane,
const double theTolerance = 1.e-7);
75 std::shared_ptr<GeomAPI_Pnt>
intersect(
const std::shared_ptr<GeomAPI_Lin>& theLine)
const;
79 std::shared_ptr<GeomAPI_Pnt>
project(
const std::shared_ptr<GeomAPI_Pnt>& thePoint)
const;
83 double distance(
const std::shared_ptr<GeomAPI_Pln> thePlane)
const;
87 double distance(
const std::shared_ptr<GeomAPI_Pnt> thePoint)
const;
91 void translate(
const std::shared_ptr<GeomAPI_Dir> theDir,
const double theDist);
95 std::shared_ptr<GeomAPI_Lin>
intersect(
const std::shared_ptr<GeomAPI_Pln> thePlane)
const;
99 typedef std::shared_ptr<GeomAPI_Pln> GeomPlanePtr;
The class represents a coordinate plane which is 2d plane with X and Y directions and origin.
Definition: GeomAPI_Ax3.h:33
3D direction defined by three normalized coordinates
Definition: GeomAPI_Dir.h:34
General base class for all interfaces in this package.
Definition: GeomAPI_Interface.h:38
Line in 3D.
Definition: GeomAPI_Lin.h:35
\Plane in 3D place, defined by normal, center and x-direction.
Definition: GeomAPI_Pln.h:38
GEOMAPI_EXPORT GeomAPI_Pln(const std::shared_ptr< GeomAPI_Ax3 > &theAxes)
Creation of plane by the axis placement.
Definition: GeomAPI_Pln.cpp:31
GEOMAPI_EXPORT void coefficients(double &theA, double &theB, double &theC, double &theD)
Returns the plane coefficients (Ax+By+Cz+D=0)
Definition: GeomAPI_Pln.cpp:65
GEOMAPI_EXPORT std::shared_ptr< GeomAPI_Pnt > project(const std::shared_ptr< GeomAPI_Pnt > &thePoint) const
Returns projection of the given point onto the plane.
Definition: GeomAPI_Pln.cpp:102
GEOMAPI_EXPORT std::shared_ptr< GeomAPI_Dir > direction() const
Returns a plane normal.
Definition: GeomAPI_Pln.cpp:53
GEOMAPI_EXPORT void translate(const std::shared_ptr< GeomAPI_Dir > theDir, const double theDist)
Translates the plane along direction theDir on distance theDist.
Definition: GeomAPI_Pln.cpp:129
GEOMAPI_EXPORT bool isCoincident(const std::shared_ptr< GeomAPI_Pln > thePlane, const double theTolerance=1.e-7)
Returns true if planes are coincident.
Definition: GeomAPI_Pln.cpp:70
GEOMAPI_EXPORT std::shared_ptr< GeomAPI_Dir > xDirection() const
Returns a plane x direction.
Definition: GeomAPI_Pln.cpp:59
GEOMAPI_EXPORT double distance(const std::shared_ptr< GeomAPI_Pln > thePlane) const
Definition: GeomAPI_Pln.cpp:114
GEOMAPI_EXPORT std::shared_ptr< GeomAPI_Pnt > intersect(const std::shared_ptr< GeomAPI_Lin > &theLine) const
Returns intersection point or empty if no intersections.
Definition: GeomAPI_Pln.cpp:84
GEOMAPI_EXPORT std::shared_ptr< GeomAPI_Pnt > location() const
Returns a point of this plane.
Definition: GeomAPI_Pln.cpp:47
3D point defined by three coordinates
Definition: GeomAPI_Pnt.h:38