![]() |
Open CASCADE Technology Reference Manual 8.0.0
|
This class implements methods for computing all the orthogonal projections of a 2D point onto a 2D curve. More...
#include <Geom2dAPI_ProjectPointOnCurve.hxx>
Public Member Functions | |
| Geom2dAPI_ProjectPointOnCurve () | |
| Constructs an empty projector algorithm. Use an Init function to define the point and the curve on which it is going to work. | |
| Geom2dAPI_ProjectPointOnCurve (const gp_Pnt2d &P, const occ::handle< Geom2d_Curve > &Curve) | |
| Create the projection of a point. | |
| Geom2dAPI_ProjectPointOnCurve (const gp_Pnt2d &P, const occ::handle< Geom2d_Curve > &Curve, const double Umin, const double Usup) | |
| Create the projection of a point. | |
| void | Init (const gp_Pnt2d &P, const occ::handle< Geom2d_Curve > &Curve) |
| Initializes this algorithm with the given arguments, and computes the orthogonal projections of a point. | |
| void | Init (const gp_Pnt2d &P, const occ::handle< Geom2d_Curve > &Curve, const double Umin, const double Usup) |
| Initializes this algorithm with the given arguments, and computes the orthogonal projections of the point P onto the portion of the curve Curve limited by the two points of parameter Umin and Usup. | |
| int | NbPoints () const |
| return the number of of computed orthogonal projectionn points. | |
| operator int () const | |
| gp_Pnt2d | Point (const int Index) const |
| Returns the orthogonal projection on the curve. Index is a number of a computed point. Exceptions Standard_OutOfRange if Index is not in the range [ 1,NbPoints ], where NbPoints is the number of solution points. | |
| double | Parameter (const int Index) const |
| Returns the parameter on the curve of a point which is the orthogonal projection. Index is a number of a computed projected point. Exceptions Standard_OutOfRange if Index is not in the range [ 1,NbPoints ], where NbPoints is the number of solution points. | |
| void | Parameter (const int Index, double &U) const |
| Returns the parameter on the curve of a point which is the orthogonal projection. Index is a number of a computed projected point. Exceptions Standard_OutOfRange if Index is not in the range [ 1,NbPoints ], where NbPoints is the number of solution points. | |
| double | Distance (const int Index) const |
| Computes the distance between the point and its computed orthogonal projection on the curve. Index is a number of computed projected point. Exceptions Standard_OutOfRange if Index is not in the range [ 1,NbPoints ], where NbPoints is the number of solution points. | |
| gp_Pnt2d | NearestPoint () const |
| Returns the nearest orthogonal projection of the point on the curve. Exceptions StdFail_NotDone if this algorithm fails. | |
| operator gp_Pnt2d () const | |
| double | LowerDistanceParameter () const |
| Returns the parameter on the curve of the nearest orthogonal projection of the point. Exceptions StdFail_NotDone if this algorithm fails. | |
| double | LowerDistance () const |
| Computes the distance between the point and its nearest orthogonal projection on the curve. Exceptions StdFail_NotDone if this algorithm fails. | |
| operator double () const | |
| const Extrema_ExtPC2d & | Extrema () const |
| return the algorithmic object from Extrema | |
This class implements methods for computing all the orthogonal projections of a 2D point onto a 2D curve.
| Geom2dAPI_ProjectPointOnCurve::Geom2dAPI_ProjectPointOnCurve | ( | ) |
Constructs an empty projector algorithm. Use an Init function to define the point and the curve on which it is going to work.
| Geom2dAPI_ProjectPointOnCurve::Geom2dAPI_ProjectPointOnCurve | ( | const gp_Pnt2d & | P, |
| const occ::handle< Geom2d_Curve > & | Curve ) |
Create the projection of a point.
on a curve <Curve>
| Geom2dAPI_ProjectPointOnCurve::Geom2dAPI_ProjectPointOnCurve | ( | const gp_Pnt2d & | P, |
| const occ::handle< Geom2d_Curve > & | Curve, | ||
| const double | Umin, | ||
| const double | Usup ) |
Create the projection of a point.
on a curve <Curve> limited by the two points of parameter Umin and Usup. Warning Use the function NbPoints to obtain the number of solutions. If projection fails, NbPoints returns 0.
Computes the distance between the point and its computed orthogonal projection on the curve. Index is a number of computed projected point. Exceptions Standard_OutOfRange if Index is not in the range [ 1,NbPoints ], where NbPoints is the number of solution points.
| const Extrema_ExtPC2d & Geom2dAPI_ProjectPointOnCurve::Extrema | ( | ) | const |
return the algorithmic object from Extrema
| void Geom2dAPI_ProjectPointOnCurve::Init | ( | const gp_Pnt2d & | P, |
| const occ::handle< Geom2d_Curve > & | Curve ) |
Initializes this algorithm with the given arguments, and computes the orthogonal projections of a point.
on a curve <Curve>
| void Geom2dAPI_ProjectPointOnCurve::Init | ( | const gp_Pnt2d & | P, |
| const occ::handle< Geom2d_Curve > & | Curve, | ||
| const double | Umin, | ||
| const double | Usup ) |
Initializes this algorithm with the given arguments, and computes the orthogonal projections of the point P onto the portion of the curve Curve limited by the two points of parameter Umin and Usup.
| double Geom2dAPI_ProjectPointOnCurve::LowerDistance | ( | ) | const |
Computes the distance between the point and its nearest orthogonal projection on the curve. Exceptions StdFail_NotDone if this algorithm fails.
| double Geom2dAPI_ProjectPointOnCurve::LowerDistanceParameter | ( | ) | const |
Returns the parameter on the curve of the nearest orthogonal projection of the point. Exceptions StdFail_NotDone if this algorithm fails.
| int Geom2dAPI_ProjectPointOnCurve::NbPoints | ( | ) | const |
return the number of of computed orthogonal projectionn points.
| gp_Pnt2d Geom2dAPI_ProjectPointOnCurve::NearestPoint | ( | ) | const |
Returns the nearest orthogonal projection of the point on the curve. Exceptions StdFail_NotDone if this algorithm fails.
| Geom2dAPI_ProjectPointOnCurve::operator double | ( | ) | const |
| Geom2dAPI_ProjectPointOnCurve::operator gp_Pnt2d | ( | ) | const |
| Geom2dAPI_ProjectPointOnCurve::operator int | ( | ) | const |
Returns the parameter on the curve of a point which is the orthogonal projection. Index is a number of a computed projected point. Exceptions Standard_OutOfRange if Index is not in the range [ 1,NbPoints ], where NbPoints is the number of solution points.
Returns the parameter on the curve of a point which is the orthogonal projection. Index is a number of a computed projected point. Exceptions Standard_OutOfRange if Index is not in the range [ 1,NbPoints ], where NbPoints is the number of solution points.
Returns the orthogonal projection on the curve. Index is a number of a computed point. Exceptions Standard_OutOfRange if Index is not in the range [ 1,NbPoints ], where NbPoints is the number of solution points.