#include <CTiglProjectPointOnCurveAtAngle.h>
Public Member Functions | |
| TIGL_EXPORT | CTiglProjectPointOnCurveAtAngle (const gp_Pnt &p, const Handle(Geom_Curve)&curve, double angle, const gp_Dir &planeRefNormal) |
| TIGL_EXPORT bool | IsDone () const |
| Returns true, if the computation is successful. Note: It might be, that there is no solution possible. In this case, IsDone() returns false. | |
| TIGL_EXPORT int | NbPoints () const |
| TIGL_EXPORT double | Parameter (int i) const |
| Returns the parameter on the curve. | |
| TIGL_EXPORT gp_Pnt | Point (int i) const |
| Returns the point on the curve. Throws, if no solution exists. | |
Private Member Functions | |
| void | AddSolution (double value, double tol) const |
| void | Compute () const |
| void | FindPoint (double ustart) const |
| const | Handle (Geom_Curve) m_curve |
Private Attributes | |
| const double | m_angle |
| bool | m_hasComputed = true |
| const gp_Pnt | m_pointToProject |
| const gp_Dir | m_refNormal |
| std::vector< double > | resultParameter |
| TIGL_EXPORT tigl::CTiglProjectPointOnCurveAtAngle::CTiglProjectPointOnCurveAtAngle | ( | const gp_Pnt & | p, |
| const Handle(Geom_Curve)& | curve, | ||
| double | angle, | ||
| const gp_Dir & | planeRefNormal ) |
Projects a point a curve such that the vector from the point p to the point on the curve has a certain angle to the curve's direction.
| P | Point to project on the curve |
| curve | Curve on which p is projected on |
| angle | Angle, at which the curve is projected on. Angle in range [0,pi]. 0 means in curve direction, pi against curve direction. Pi/2 perpendicular to the curve corresponds to standard projection. |
| planeRefNormal | Normal of the reference plane, in which the angle is measured. |
|
private |
|
private |
|
private |
|
private |
| TIGL_EXPORT bool tigl::CTiglProjectPointOnCurveAtAngle::IsDone | ( | ) | const |
Returns true, if the computation is successful. Note: It might be, that there is no solution possible. In this case, IsDone() returns false.
| TIGL_EXPORT int tigl::CTiglProjectPointOnCurveAtAngle::NbPoints | ( | ) | const |
| TIGL_EXPORT double tigl::CTiglProjectPointOnCurveAtAngle::Parameter | ( | int | i | ) | const |
Returns the parameter on the curve.
| TIGL_EXPORT gp_Pnt tigl::CTiglProjectPointOnCurveAtAngle::Point | ( | int | i | ) | const |
Returns the point on the curve. Throws, if no solution exists.
|
private |
|
mutableprivate |
|
private |
|
private |
|
mutableprivate |