Nearest point to a spline

Given a spline and a point. How can I find the point on the spline which is nearest to the given point?

I would like to do that from Python.

got it:

wire = GetWires(spline)[0]
curve = wire.GetGeometry(transform_to_model_space=True)
law = curve.GetLaw()
t0 = curve.MinDistParameter(point_start)
Log in to reply