![]() |
Open CASCADE Technology Reference Manual 8.0.0
|
Template class for computing extremal distance function between a point and a curve. Searches for a parameter value u such that dist(P, C(u)) passes through an extremum. Inherits from math_FunctionWithDerivative and is used by math_FunctionRoot and math_FunctionRoots algorithms. More...
#include <Extrema_GFuncExtPC.hxx>

Public Member Functions | |
| Extrema_GFuncExtPC () | |
| Default constructor. | |
| Extrema_GFuncExtPC (const ThePoint &theP, const TheCurve &theC) | |
| Constructor with point and curve initialization. | |
| void | Initialize (const TheCurve &theC) |
| Sets the curve field. | |
| void | SetPoint (const ThePoint &theP) |
| Sets the point field. | |
| bool | Value (const double theU, double &theF) override |
| Calculation of F(u). | |
| bool | Derivative (const double theU, double &theDF) override |
| Calculation of F'(u). | |
| bool | Values (const double theU, double &theF, double &theDF) override |
| Calculation of F(u) and F'(u). | |
| int | GetStateNumber () override |
| Save the found extremum. | |
| int | NbExt () const |
| Return the number of found extrema. | |
| double | SquareDistance (const int theN) const |
| Returns the Nth square distance. | |
| bool | IsMin (const int theN) const |
| Shows if the Nth distance is a minimum. | |
| const ThePOnC & | Point (const int theN) const |
| Returns the Nth extremum point. | |
| void | SubIntervalInitialize (const double theUfirst, const double theUlast) |
| Determines boundaries of subinterval for root finding. | |
| double | SearchOfTolerance () |
| Computes a tolerance value. If 1st derivative of curve |D1| < Tol, it is considered D1=0. | |
Public Member Functions inherited from math_FunctionWithDerivative | |
| ~math_FunctionWithDerivative () override | |
Public Member Functions inherited from math_Function | |
| virtual | ~math_Function ()=default |
| Virtual destructor, for safe inheritance. | |
Template class for computing extremal distance function between a point and a curve. Searches for a parameter value u such that dist(P, C(u)) passes through an extremum. Inherits from math_FunctionWithDerivative and is used by math_FunctionRoot and math_FunctionRoots algorithms.
If D1c and D2c are the first and second derivatives: F(u) = (C(u)-P).D1c(u) / ||D1c|| DF(u) = ||D1c|| + (C(u)-P).D2c(u)/||D1c|| - F(u)*D2c.D1c/||D1c||^2
| TheCurve | Curve type (e.g., Adaptor3d_Curve, Adaptor2d_Curve2d) |
| TheCurveTool | Tool for curve operations |
| ThePOnC | Point on curve type |
| ThePoint | Point type (e.g., gp_Pnt, gp_Pnt2d) |
| TheVector | Vector type (e.g., gp_Vec, gp_Vec2d) |
| TheSeqPOnC | Sequence of points on curve type |
|
inline |
Default constructor.
|
inline |
Constructor with point and curve initialization.
| theP | Point to compute distance from |
| theC | Curve to compute distance to |
|
inlineoverridevirtual |
Calculation of F'(u).
| theU | Parameter value |
| theDF | Output derivative value |
Implements math_FunctionWithDerivative.
|
inlineoverridevirtual |
|
inline |
Sets the curve field.
| theC | Curve to set |
|
inline |
Shows if the Nth distance is a minimum.
| theN | Index of extremum |
|
inline |
Return the number of found extrema.
|
inline |
Returns the Nth extremum point.
| theN | Index of extremum |
|
inline |
Computes a tolerance value. If 1st derivative of curve |D1| < Tol, it is considered D1=0.
|
inline |
Sets the point field.
| theP | Point to set |
|
inline |
Returns the Nth square distance.
| theN | Index of extremum |
|
inline |
Determines boundaries of subinterval for root finding.
| theUfirst | First parameter bound |
| theUlast | Last parameter bound |
|
inlineoverridevirtual |
Calculation of F(u).
| theU | Parameter value |
| theF | Output function value |
Implements math_FunctionWithDerivative.
|
inlineoverridevirtual |
Calculation of F(u) and F'(u).
| theU | Parameter value |
| theF | Output function value |
| theDF | Output derivative value |
Implements math_FunctionWithDerivative.