|
| | Extrema_GGExtPC () |
| | Default constructor.
|
| |
| | Extrema_GGExtPC (const ThePoint &theP, const TheCurve &theC, const double theUinf, const double theUsup, const double theTolF=1.0e-10) |
| | Calculates all extremum distances between point P and curve C within the specified parameter range.
|
| |
| | Extrema_GGExtPC (const ThePoint &theP, const TheCurve &theC, const double theTolF=1.0e-10) |
| | Calculates all extremum distances between point P and curve C using the full curve parameter range.
|
| |
| void | Initialize (const TheCurve &theC, const double theUinf, const double theUsup, const double theTolF=1.0e-10) |
| | Initializes the algorithm with curve and parameter range.
|
| |
| void | Perform (const ThePoint &theP) |
| | Performs the extremum computation for the given point.
|
| |
| bool | IsDone () const |
| | Returns true if the distances are found.
|
| |
| double | SquareDistance (const int theN) const |
| | Returns the Nth extremum square distance.
|
| |
| int | NbExt () const |
| | Returns the number of extremum distances.
|
| |
| 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.
|
| |
| void | TrimmedSquareDistances (double &theDist1, double &theDist2, ThePoint &theP1, ThePoint &theP2) const |
| | Returns the distances at curve endpoints.
|
| |
template<
typename TheCurve,
typename TheCurveTool,
typename TheExtPElC,
typename ThePoint,
typename TheVector,
typename ThePOnC,
typename TheSequenceOfPOnC,
typename TheEPC>
class Extrema_GGExtPC< TheCurve, TheCurveTool, TheExtPElC, ThePoint, TheVector, ThePOnC, TheSequenceOfPOnC, TheEPC >
Generic class for computing extremal distances between a point and a curve.
This template class provides comprehensive extremum search functionality, handling different curve types (lines, circles, ellipses, parabolas, hyperbolas, Bezier, BSpline, and general curves) with optimized algorithms.
- Template Parameters
-
| TheCurve | The curve type (e.g., Adaptor3d_Curve, Adaptor2d_Curve2d) |
| TheCurveTool | The curve tool providing static methods |
| TheExtPElC | The elementary curve extremum class |
| ThePoint | The point type (e.g., gp_Pnt, gp_Pnt2d) |
| TheVector | The vector type (e.g., gp_Vec, gp_Vec2d) |
| ThePOnC | The point-on-curve type |
| TheSequenceOfPOnC | The sequence of points on curve |
| TheEPC | The general extremum point-curve class |