Selecting the line segment of a polyline closest to my mouse click

I’m trying to select the curve segment of a polyline that is closest to a mouse click . In other words, I’d like to select the curve segment closest to a mouseclick as if the polyline has been exploded. Any help is greatly appreciated.

Mike

if you are happy to perform some kind of “starter action” before clicking on the Rhino canvas, you could placing a fake point somewhere, and then use something like Pull Point to find the closest segment, for instance:

Closest_Polyline_Segment.gh (11.8 KB)

1 Like

Thank you for the feedback. In my particular case, it looks like Util>Params>Get point is what I’m looking for.