OCCRevolutionSurface.closest_point

OCCRevolutionSurface.closest_point(point, return_parameters=False)

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

Parameters:
pointPoint

The point to project to the surface.

return_parametersbool, 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.