Shortest walk?

short walk.gh (25.6 KB)
Like capture, first I use [brep closest point] command to move each points in small boxes.
So, I want to make shortest curves like number 2, not penetrate big box.

How can I do that?

A long time ago, I wrote this add-on to search for shortest paths:

Thanks,

Giulio


Giulio Piacentino
for Robert McNeel & Associates
giulio@mcneel.com