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<typename
TheCurve, typename TheTool, typename ThePOnC, typename ThePnt, typename ThePCLocF>
class Extrema_GenLocateExtPC< TheCurve, TheTool, ThePOnC, ThePnt, ThePCLocF >
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]
template<typename
TheCurve, typename TheTool, typename ThePOnC, typename ThePnt, typename ThePCLocF>
◆ Extrema_GenLocateExtPC() [2/3]
template<typename
TheCurve, typename TheTool, typename ThePOnC, typename ThePnt, typename ThePCLocF>
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]
template<typename
TheCurve, typename TheTool, typename ThePOnC, typename ThePnt, typename ThePCLocF>
| Extrema_GenLocateExtPC< TheCurve, TheTool, ThePOnC, ThePnt, ThePCLocF >::Extrema_GenLocateExtPC |
( |
const ThePnt & | theP, |
|
|
const TheCurve & | theC, |
|
|
const double | theU0, |
|
|
const double | theUmin, |
|
|
const double | theUsup, |
|
|
const double | theTolU ) |
|
inline |
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()
template<typename
TheCurve, typename TheTool, typename ThePOnC, typename ThePnt, typename ThePCLocF>
Sets the fields of the algorithm.
◆ IsDone()
template<typename
TheCurve, typename TheTool, typename ThePOnC, typename ThePnt, typename ThePCLocF>
Returns True if the distance is found.
◆ IsMin()
template<typename
TheCurve, typename TheTool, typename ThePOnC, typename ThePnt, typename ThePCLocF>
Returns True if the extremum distance is a minimum.
◆ Perform()
template<typename
TheCurve, typename TheTool, typename ThePOnC, typename ThePnt, typename ThePCLocF>
The algorithm is done with the point P. An exception is raised if the fields have not been initialized.
◆ Point()
template<typename
TheCurve, typename TheTool, typename ThePOnC, typename ThePnt, typename ThePCLocF>
Returns the point of the extremum distance.
◆ SquareDistance()
template<typename
TheCurve, typename TheTool, typename ThePOnC, typename ThePnt, typename ThePCLocF>
Returns the value of the extremum square distance.
The documentation for this class was generated from the following file: