Template class for local extremum search between a point and a curve. Searches for a local extremum of distance between a point and a curve near an initial parameter value.
More...
#include <Extrema_GenLocateExtPC.hxx>
|
| | Extrema_GenLocateExtPC () |
| | Default constructor.
|
| |
| | Extrema_GenLocateExtPC (const ThePnt &theP, const TheCurve &theC, const double theU0, const double theTolU) |
| | Calculates the distance with a close point. The close point is defined by the parameter value U0. The function F(u)=distance(P,C(u)) has an extremum when g(u)=dF/du=0. The algorithm searches a zero near the close point. TolU is used to decide to stop the iterations. At the nth iteration, the criteria is: abs(Un - Un-1) < TolU.
|
| |
| | Extrema_GenLocateExtPC (const ThePnt &theP, const TheCurve &theC, const double theU0, const double theUmin, const double theUsup, const double theTolU) |
| | Calculates the distance with a close point. The close point is defined by the parameter value U0. The function F(u)=distance(P,C(u)) has an extremum when g(u)=dF/du=0. The algorithm searches a zero near the close point. Zeros are searched between Umin and Usup. TolU is used to decide to stop the iterations. At the nth iteration, the criteria is: abs(Un - Un-1) < TolU.
|
| |
| void | Initialize (const TheCurve &theC, const double theUmin, const double theUsup, const double theTolU) |
| | Sets the fields of the algorithm.
|
| |
| void | Perform (const ThePnt &theP, const double theU0) |
| | The algorithm is done with the point P. An exception is raised if the fields have not been initialized.
|
| |
| bool | IsDone () const |
| | Returns True if the distance is found.
|
| |
| double | SquareDistance () const |
| | Returns the value of the extremum square distance.
|
| |
| bool | IsMin () const |
| | Returns True if the extremum distance is a minimum.
|
| |
| const ThePOnC & | Point () const |
| | Returns the point of the extremum distance.
|
| |
Template class for local extremum search between a point and a curve. Searches for a local extremum of distance between a point and a curve near an initial parameter value.
- Template Parameters
-
◆ Extrema_GenLocateExtPC() [1/3]
◆ Extrema_GenLocateExtPC() [2/3]
Calculates the distance with a close point. The close point is defined by the parameter value U0. The function F(u)=distance(P,C(u)) has an extremum when g(u)=dF/du=0. The algorithm searches a zero near the close point. TolU is used to decide to stop the iterations. At the nth iteration, the criteria is: abs(Un - Un-1) < TolU.
◆ Extrema_GenLocateExtPC() [3/3]
Calculates the distance with a close point. The close point is defined by the parameter value U0. The function F(u)=distance(P,C(u)) has an extremum when g(u)=dF/du=0. The algorithm searches a zero near the close point. Zeros are searched between Umin and Usup. TolU is used to decide to stop the iterations. At the nth iteration, the criteria is: abs(Un - Un-1) < TolU.
◆ Initialize()
Sets the fields of the algorithm.
◆ IsDone()
Returns True if the distance is found.
◆ IsMin()
Returns True if the extremum distance is a minimum.
◆ Perform()
The algorithm is done with the point P. An exception is raised if the fields have not been initialized.
◆ Point()
Returns the point of the extremum distance.
◆ SquareDistance()
Returns the value of the extremum square distance.
The documentation for this class was generated from the following file: