Closest point with fixed distance

Hi

Is there a way to find a closest point by distance? I want to connect the green point with a point on the green curve but in a way so that the lines are all exactly the same length? So either a way to get the closest point with that distance, or to rotate a line that’s 0,5 so that it snaps to the line

Thanks

closest point distance.gh (21.1 KB)

Nice data sorting challenge :slight_smile:

closest point distance.gh (26.7 KB)

1 Like

Thank you so much!

1 Like

Hi

Just a follow-up question if possible
I’ve tried to flip the direction of the lines so that they go towards the corner instead, but there is an error on a lot of the shapes when I try it that way, is there a simple way to solve it?

Thanks


closest point distance v2.gh (24.2 KB)

You have changed something on the inputs and you need to cull duplicate points then it works again.

1 Like

Thanks a lot, got it! :slight_smile:

1 Like