RhinoPoint.closest_point

RhinoPoint.closest_point(point, maxdist=0.0, return_param=False)[source]

Compute the closest point 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

tuple – The XYZ coordinates of the point.