Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Static Public Member Functions
Extrema_GCurveLocator< TheCurve, TheCurveTool, ThePOnC, ThePoint > Class Template Reference

Template class for locating the closest point on a curve to a given point. Among a set of sampled points on the curve, finds the one closest to the target. More...

#include <Extrema_GCurveLocator.hxx>

Static Public Member Functions

static void Locate (const ThePoint &theP, const TheCurve &theC, const int theNbU, ThePOnC &thePapp)
 Among a set of points {C(ui), i=1,NbU}, locate the point P=C(uj) such that: distance(P,C) = Min{distance(P,C(ui))}.
 
static void Locate (const ThePoint &theP, const TheCurve &theC, const int theNbU, const double theUmin, const double theUsup, ThePOnC &thePapp)
 Among a set of points {C(ui), i=1,NbU}, locate the point P=C(uj) such that: distance(P,C) = Min{distance(P,C(ui))} The search is done between theUmin and theUsup.
 

Detailed Description

template<typename TheCurve, typename TheCurveTool, typename ThePOnC, typename ThePoint>
class Extrema_GCurveLocator< TheCurve, TheCurveTool, ThePOnC, ThePoint >

Template class for locating the closest point on a curve to a given point. Among a set of sampled points on the curve, finds the one closest to the target.

Template Parameters
TheCurvethe curve type
TheCurveToolthe curve tool providing curve operations
ThePOnCthe point-on-curve type
ThePointthe point type (gp_Pnt or gp_Pnt2d)

Member Function Documentation

◆ Locate() [1/2]

static void Extrema_GCurveLocator< TheCurve, TheCurveTool, ThePOnC, ThePoint >::Locate ( const ThePoint & theP,
const TheCurve & theC,
const int theNbU,
const double theUmin,
const double theUsup,
ThePOnC & thePapp )
inlinestatic

Among a set of points {C(ui), i=1,NbU}, locate the point P=C(uj) such that: distance(P,C) = Min{distance(P,C(ui))} The search is done between theUmin and theUsup.

Parameters
thePthe target point
theCthe curve to sample
theNbUthe number of sample points
theUminthe minimum parameter value
theUsupthe maximum parameter value
thePappthe result point on curve

◆ Locate() [2/2]

static void Extrema_GCurveLocator< TheCurve, TheCurveTool, ThePOnC, ThePoint >::Locate ( const ThePoint & theP,
const TheCurve & theC,
const int theNbU,
ThePOnC & thePapp )
inlinestatic

Among a set of points {C(ui), i=1,NbU}, locate the point P=C(uj) such that: distance(P,C) = Min{distance(P,C(ui))}.

Parameters
thePthe target point
theCthe curve to sample
theNbUthe number of sample points
thePappthe result point on curve

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