![]() |
Open CASCADE Technology Reference Manual 8.0.0
|
Generic class for finding extremal distances between a point and a curve. More...
#include <Extrema_GGenExtPC.hxx>
Public Member Functions | |
| Extrema_GGenExtPC () | |
| Default constructor. | |
| Extrema_GGenExtPC (const ThePoint &theP, const TheCurve &theC, const int theNbSample, const double theTolU, const double theTolF) | |
| Calculates all extremum distances between point P and curve C. | |
| Extrema_GGenExtPC (const ThePoint &theP, const TheCurve &theC, const int theNbSample, const double theUmin, const double theUsup, const double theTolU, const double theTolF) | |
| Calculates all extremum distances in a given parameter range. | |
| void | Initialize (const TheCurve &theC, const int theNbU, const double theTolU, const double theTolF) |
| Initializes the algorithm with the full curve parameter range. | |
| void | Initialize (const TheCurve &theC, const int theNbU, const double theUmin, const double theUsup, const double theTolU, const double theTolF) |
| Initializes the algorithm with a specified parameter range. | |
| void | Initialize (const int theNbU, const double theUmin, const double theUsup, const double theTolU, const double theTolF) |
| Initializes only the parameter range and tolerances. | |
| void | Initialize (const TheCurve &theC) |
| Initializes the curve for the function. | |
| void | Perform (const ThePoint &theP) |
| Performs the extremum search for the given point. | |
| bool | IsDone () const |
| Returns true if the distances are found. | |
| int | NbExt () const |
| Returns the number of extremum distances. | |
| double | SquareDistance (const int theN) const |
| Returns the Nth extremum square distance. | |
| bool | IsMin (const int theN) const |
| Returns true if the Nth extremum distance is a minimum. | |
| const ThePOnC & | Point (const int theN) const |
| Returns the point of the Nth extremum distance. | |
Generic class for finding extremal distances between a point and a curve.
This template class searches for all parameter values u where the distance function F(u) = distance(P, C(u)) has an extremum, i.e., where dF/du = 0.
| TheCurve | The curve type (e.g., Adaptor3d_Curve, Adaptor2d_Curve2d) |
| TheTool | The curve tool providing static methods (FirstParameter, LastParameter) |
| ThePOnC | The point-on-curve type (e.g., Extrema_POnCurv, Extrema_POnCurv2d) |
| ThePoint | The point type (e.g., gp_Pnt, gp_Pnt2d) |
| ThePCF | The point-curve function type for extremum computation |
|
inline |
Default constructor.
|
inline |
Calculates all extremum distances between point P and curve C.
| theP | The point |
| theC | The curve |
| theNbSample | Number of sample points for root finding |
| theTolU | Tolerance on parameter u |
| theTolF | Tolerance on function value |
|
inline |
Calculates all extremum distances in a given parameter range.
| theP | The point |
| theC | The curve |
| theNbSample | Number of sample points for root finding |
| theUmin | Lower bound of parameter range |
| theUsup | Upper bound of parameter range |
| theTolU | Tolerance on parameter u |
| theTolF | Tolerance on function value |
|
inline |
Initializes only the parameter range and tolerances.
| theNbU | Number of sample points |
| theUmin | Lower bound of parameter range |
| theUsup | Upper bound of parameter range |
| theTolU | Tolerance on parameter u |
| theTolF | Tolerance on function value |
|
inline |
Initializes the curve for the function.
| theC | The curve |
|
inline |
Initializes the algorithm with the full curve parameter range.
| theC | The curve |
| theNbU | Number of sample points |
| theTolU | Tolerance on parameter u |
| theTolF | Tolerance on function value |
|
inline |
Initializes the algorithm with a specified parameter range.
| theC | The curve |
| theNbU | Number of sample points |
| theUmin | Lower bound of parameter range |
| theUsup | Upper bound of parameter range |
| theTolU | Tolerance on parameter u |
| theTolF | Tolerance on function value |
|
inline |
Returns true if the distances are found.
|
inline |
Returns true if the Nth extremum distance is a minimum.
| theN | Index of the extremum (1-based) |
|
inline |
Returns the number of extremum distances.
|
inline |
Performs the extremum search for the given point.
| theP | The point to find extrema from |
|
inline |
Returns the point of the Nth extremum distance.
| theN | Index of the extremum (1-based) |
|
inline |
Returns the Nth extremum square distance.
| theN | Index of the extremum (1-based) |