Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Public Member Functions
Extrema_GenLocateExtCC< TheCurve, TheTool, ThePOnC, TheCCLocF > Class Template Reference

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>

Public Member Functions

 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.
 

Detailed Description

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
TheCurveCurve type (e.g., Adaptor3d_Curve, Adaptor2d_Curve2d)
TheToolTool for curve operations
ThePOnCPoint on curve type
TheCCLocFFunction type for curve-curve local extremum

Constructor & Destructor Documentation

◆ Extrema_GenLocateExtCC()

Extrema_GenLocateExtCC< TheCurve, TheTool, ThePOnC, TheCCLocF >::Extrema_GenLocateExtCC ( const TheCurve & theC1,
const TheCurve & theC2,
const double theU0,
const double theV0,
const double theTolU,
const double theTolV )
inline

Calculates the distance between two curves C1 and C2. Searches for a local extremum starting from initial parameters (U0, V0).

Parameters
theC1First curve
theC2Second curve
theU0Initial parameter on first curve
theV0Initial parameter on second curve
theTolUTolerance on parameter of first curve
theTolVTolerance on parameter of second curve

Member Function Documentation

◆ IsDone()

Returns True if the distance is found.

◆ Point()

Returns the points of the extremum distance.

Parameters
theP1Point on first curve
theP2Point on second curve

◆ SquareDistance()

Returns the value of the extremum square distance.


The documentation for this class was generated from the following file: