Shortest Walk Gh
by McNeelEurope
The ShortestWalk add-on for Grasshopper exposes one component which, given a network of curves and a list of lines, calculates the shortest route from line start point to line end points in a network.
It is based on a topology calculator and the A* search algorithm.
To install:
- In Grasshopper, choose File > Special Folders > Components folder. Save the gha file there.
- Right-click the file > Properties > make sure there is no "blocked" text
- Restart Rhino and Grasshopper
Please let me know comments and ideas, and see also the Rhino ShortestWalk command. The source code for this command is published here.
Support Email:
4FQ.RYY3Q4@HY.UQYK@
Plug-in rating:
(5 votes)
Downloads:
License:
http://creativecommons.org/licenses/by/3.0/es/











Comments
Hi,
is there anyone out there using ShortestWalk with Rhino 5.0 (no Beta) and Grasshopper 0.9.0014?
It seems that it doesn´t work, because I cannot load the component.
Thanks for your help,
Thomas
Hi,
You are right, the Shortest Walk add-on works only with GH 0.8.0009. We are not sure yet this will be updated soon, so please keep an eye on http://www.food4rhino.com/project/shortestwalkgh.
Regards,
food4Rhino team
thanks a lot!!!
Hi Giulio,
due to the new update there are changes to the GHSDK
var pathLinks = DA.get_ParameterTargetPath(1).AppendElement(i); has to be changed to
var pathLinks = DA.ParameterTargetPath(1).AppendElement(i);
anyways really thx for this great code and work
Thanks, the update for ShortestWalk is here.
Great plug-in with many applications... the simplicity is almost deceptive!
For the next release, it could be nice to have an optional "cost" override input. For example, say I wanted to compute a shortest path which took into account the "speed" of the path network... or if I wanted to weight the paths based on what their function (a stair vs an elevator.)
Again... nice work!
-Nathan
Thank you Nathan,
I especially appreciate the comment on simplicity. How would you envision the way to choose the new lengths?
It probably takes some more work to change the algorithm to work for "shortcuts", because of how A* is designed (see also here: http://www.grasshopper3d.com/forum/topics/minimal-path-system?commentId=... ), but to "taxate" some routes should be very easy and if you feel like changing or improving the code, additions are very welcome on the github repository.
- Giulio
Thanks a lot for this ....it's very very very handy !
Thanks for this very useful plugin!