RhinoNurbsSurface.closest_point

RhinoNurbsSurface.closest_point(point, return_parameters=False)[source]

Compute the closest point on the curve to a given point.

Parameters:
pointcompas.geometry.Point

The test point.

return_parametersbool, optional

If True, return the UV parameters of the closest point as tuple in addition to the point location.

Returns:
compas.geometry.Point

If return_parameters is False.

compas.geometry.Point, (float, float)

If return_parameters is True.