SHAPER
9.12.0
|
3D point defined by three coordinates More...
Public Member Functions | |
GEOMAPI_EXPORT | GeomAPI_Pln (const std::shared_ptr< GeomAPI_Ax3 > &theAxis) |
Creation of plane by the axis placement. More... | |
GEOMAPI_EXPORT | GeomAPI_Pln (const std::shared_ptr< GeomAPI_Pnt > &thePoint, const std::shared_ptr< GeomAPI_Dir > &theNormal) |
Creation of plane by the point and normal. More... | |
GEOMAPI_EXPORT | GeomAPI_Pln (const double theA, const double theB, const double theC, const double theD) |
Creation of plane by coefficients (Ax+By+Cz+D=0) More... | |
GEOMAPI_EXPORT std::shared_ptr< GeomAPI_Pnt > | location () const |
Returns a point of this plane. More... | |
GEOMAPI_EXPORT std::shared_ptr< GeomAPI_Dir > | direction () const |
Returns a plane normal. More... | |
GEOMAPI_EXPORT std::shared_ptr< GeomAPI_Dir > | xDirection () const |
Returns a plane x direction. More... | |
GEOMAPI_EXPORT void | coefficients (double &theA, double &theB, double &theC, double &theD) |
Returns the plane coefficients (Ax+By+Cz+D=0) More... | |
GEOMAPI_EXPORT bool | isCoincident (const std::shared_ptr< GeomAPI_Pln > thePlane, const double theTolerance=1.e-7) |
Returns true if planes are coincident. More... | |
GEOMAPI_EXPORT std::shared_ptr< GeomAPI_Pnt > | intersect (const std::shared_ptr< GeomAPI_Lin > &theLine) const |
Returns intersection point or empty if no intersections. More... | |
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. More... | |
GEOMAPI_EXPORT double | distance (const std::shared_ptr< GeomAPI_Pln > thePlane) const |
GEOMAPI_EXPORT double | distance (const std::shared_ptr< GeomAPI_Pnt > thePoint) const |
GEOMAPI_EXPORT void | translate (const std::shared_ptr< GeomAPI_Dir > theDir, const double theDist) |
Translates the plane along direction theDir on distance theDist. More... | |
GEOMAPI_EXPORT std::shared_ptr< GeomAPI_Lin > | intersect (const std::shared_ptr< GeomAPI_Pln > thePlane) const |
template<class T > | |
T * | implPtr () |
Returns the pointer to the impl. More... | |
template<class T > | |
const T * | implPtr () const |
Returns the pointer to the impl. More... | |
template<class T > | |
const T & | impl () const |
Returns the reference object of the impl. More... | |
template<class T > | |
void | setImpl (T *theImpl) |
Updates the impl (deletes the old one) More... | |
GEOMAPI_EXPORT bool | empty () const |
Returns true if the impl is empty. More... | |
3D point defined by three coordinates
GeomAPI_Pln::GeomAPI_Pln | ( | const std::shared_ptr< GeomAPI_Ax3 > & | theAxis | ) |
Creation of plane by the axis placement.
GeomAPI_Pln::GeomAPI_Pln | ( | const std::shared_ptr< GeomAPI_Pnt > & | thePoint, |
const std::shared_ptr< GeomAPI_Dir > & | theNormal | ||
) |
Creation of plane by the point and normal.
GeomAPI_Pln::GeomAPI_Pln | ( | const double | theA, |
const double | theB, | ||
const double | theC, | ||
const double | theD | ||
) |
Creation of plane by coefficients (Ax+By+Cz+D=0)
std::shared_ptr< GeomAPI_Pnt > GeomAPI_Pln::location | ( | ) | const |
Returns a point of this plane.
std::shared_ptr< GeomAPI_Dir > GeomAPI_Pln::direction | ( | ) | const |
Returns a plane normal.
std::shared_ptr< GeomAPI_Dir > GeomAPI_Pln::xDirection | ( | ) | const |
Returns a plane x direction.
void GeomAPI_Pln::coefficients | ( | double & | theA, |
double & | theB, | ||
double & | theC, | ||
double & | theD | ||
) |
Returns the plane coefficients (Ax+By+Cz+D=0)
bool GeomAPI_Pln::isCoincident | ( | const std::shared_ptr< GeomAPI_Pln > | thePlane, |
const double | theTolerance = 1.e-7 |
||
) |
Returns true if planes are coincident.
std::shared_ptr< GeomAPI_Pnt > GeomAPI_Pln::intersect | ( | const std::shared_ptr< GeomAPI_Lin > & | theLine | ) | const |
Returns intersection point or empty if no intersections.
std::shared_ptr< GeomAPI_Pnt > GeomAPI_Pln::project | ( | const std::shared_ptr< GeomAPI_Pnt > & | thePoint | ) | const |
Returns projection of the given point onto the plane.
double GeomAPI_Pln::distance | ( | const std::shared_ptr< GeomAPI_Pln > | thePlane | ) | const |
double GeomAPI_Pln::distance | ( | const std::shared_ptr< GeomAPI_Pnt > | thePoint | ) | const |
void GeomAPI_Pln::translate | ( | const std::shared_ptr< GeomAPI_Dir > | theDir, |
const double | theDist | ||
) |
Translates the plane along direction theDir on distance theDist.
std::shared_ptr< GeomAPI_Lin > GeomAPI_Pln::intersect | ( | const std::shared_ptr< GeomAPI_Pln > | thePlane | ) | const |
|
inlineinherited |
Returns the pointer to the impl.
|
inlineinherited |
Returns the pointer to the impl.
|
inlineinherited |
Returns the reference object of the impl.
|
inlineinherited |
Updates the impl (deletes the old one)
|
inherited |
Returns true if the impl is empty.