RhinoCurve.closest_point
- RhinoCurve.closest_point(point, maxdist=0.0, return_param=False)[source]
Compute the closest point on a curve to a point in space.
- Parameters
point (point) – A point location.
maxdist (float, optional) – The maximum distance between the point on the curve and the curve. Default is
0.0
.return_param (bool, optional) – Return not only the point coordinates, but also the parameter of the point on the curve. Default is
False
.
- Returns
list – The XYZ coordinates of the closest point, if
return_param
isFalse
. The XYZ coordinates of the closest point and the curve parameter, ifreturn_param
isTrue
.