Points correspond to the point with the shortest distance to the ring

I now have a point and a loop (gp_Pnt and TopoDS_Wire), how do I find the point with the shortest distance on the loop? I used BRepExtrema_ExtPC and Extrema_ExtPC, but the results are not ideal. What should I do for help?

Attachments: