NurbsSurface.closest_point
- NurbsSurface.closest_point(point, return_parameters=False)[source]
Compute the closest point on the curve to a given point.
- Parameters
point (Point) – The point to project to the surface.
return_parameters (bool, optional) – If True, return the surface UV parameters in addition to the closest point.
- Returns
Point
| tuple[Point
, tuple[float, float]] – If return_parameters is False, the nearest point on the surface. If return_parameters is True, the UV parameters in addition to the nearest point on the surface.