Distance from curve/surface outline to closest object

I want to extract the distance from the centerpoint of a curve to the closest object (yellow lines) normal to the curve. i would also like to get the depth of the closest object in the meeting point (blue line). Could someone please help me out here?

image
distance from line to object.gh (7.0 KB)

distance from line to object Edited v0.gh (22.3 KB)
Honeycam 2024-01-03 19-43-05

Seems like a good solution. However i dont have the anemone plug in. I am working in Rhino 7 so i dont know if this plugin will work?

One more thing. in the video you attatched you are evaluating the distance from the right line to the brep to the left. however, here i want to obtain the length to the right like in the drawing i attatched (yellow lines)