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...
|
| 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.
|
| |
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
-
| TheCurve | the curve type |
| TheCurveTool | the curve tool providing curve operations |
| ThePOnC | the point-on-curve type |
| ThePoint | the point type (gp_Pnt or gp_Pnt2d) |