Template class for locating local extremum of distance between two curves. Searches for a pair of parameter values (U,V) such that dist(C1(u),C2(v)) passes through an extremum, and (U,V) is the solution closest to (U0,V0).
More...
#include <Extrema_GenLocateExtCC.hxx>
|
| | Extrema_GenLocateExtCC (const TheCurve &theC1, const TheCurve &theC2, const double theU0, const double theV0, const double theTolU, const double theTolV) |
| | Calculates the distance between two curves C1 and C2. Searches for a local extremum starting from initial parameters (U0, V0).
|
| bool | IsDone () const |
| | Returns True if the distance is found.
|
| double | SquareDistance () const |
| | Returns the value of the extremum square distance.
|
| void | Point (ThePOnC &theP1, ThePOnC &theP2) const |
| | Returns the points of the extremum distance.
|
template<typename
TheCurve, typename TheTool, typename ThePOnC, typename TheCCLocF>
class Extrema_GenLocateExtCC< TheCurve, TheTool, ThePOnC, TheCCLocF >
Template class for locating local extremum of distance between two curves. Searches for a pair of parameter values (U,V) such that dist(C1(u),C2(v)) passes through an extremum, and (U,V) is the solution closest to (U0,V0).
- Template Parameters
-
| TheCurve | Curve type (e.g., Adaptor3d_Curve, Adaptor2d_Curve2d) |
| TheTool | Tool for curve operations |
| ThePOnC | Point on curve type |
| TheCCLocF | Function type for curve-curve local extremum |
◆ Extrema_GenLocateExtCC()
template<typename
TheCurve, typename TheTool, typename ThePOnC, typename TheCCLocF>
Calculates the distance between two curves C1 and C2. Searches for a local extremum starting from initial parameters (U0, V0).
- Parameters
-
| theC1 | First curve |
| theC2 | Second curve |
| theU0 | Initial parameter on first curve |
| theV0 | Initial parameter on second curve |
| theTolU | Tolerance on parameter of first curve |
| theTolV | Tolerance on parameter of second curve |
◆ IsDone()
template<typename
TheCurve, typename TheTool, typename ThePOnC, typename TheCCLocF>
Returns True if the distance is found.
◆ Point()
template<typename
TheCurve, typename TheTool, typename ThePOnC, typename TheCCLocF>
Returns the points of the extremum distance.
- Parameters
-
| theP1 | Point on first curve |
| theP2 | Point on second curve |
◆ SquareDistance()
template<typename
TheCurve, typename TheTool, typename ThePOnC, typename TheCCLocF>
Returns the value of the extremum square distance.
The documentation for this class was generated from the following file: