Grasshopper

algorithmic modeling for Rhino

Are there any example files, or a doc which shows how to use Shortest Walk Component in GH?

Views: 19589

Replies to This Discussion

Hi Khizer, 

Did you check this video?

http://www.youtube.com/watch?v=Xg7F0h0wxmQ&feature=player_embedded

There are also couple images and explaination there:

http://www.food4rhino.com/project/shortestwalkgh

Amazingly, the source code is also available:

https://github.com/mcneeleurope/ShortestWalk

Cheers,

Arthur

Hey Arthur, thanks for the video...

 

If I have a couple of open polylines, seperate from each other..but overlapping... and i want find the shortest path from that, how would i do that?  

 

A very crude example, but how would i use Shortest Walk component to extract the shortest path from point A to B (closest points on curve) using grasshopper plugin?

Attachments:

Hi Khizer, 

 

From the example posted on the above link and from playing with the plugin just now I believe the shortest path has to be computed on a set of line (like a grid). 

 

In this case, you could place the points on the lines and see the shortest path on these lines. I would use geometry gym's SDR Curve Intersect to get all the curves to split eachother...

 

 

Files Attached
Attachments:

Thanks man for your time...

I dint have Geometric Gym's SDR, just downloaded it from Food4rhino... it is generating this error, when i open your file...

 

 

 

Hello,

you can actually do it with any set of curves and without Geometry Gym:

Hello Systemig,

 

Your defintion is working for smooth curves, but not for polylines...

Do you know why?

Weird, it works here.

My guess would be the data structure of your polylines.

Actually, you can fix it by setting the clean data component to remove empty branches. Or update the path mapper.
Also, the definition is incorrect for self intersecting curves, I will post a fix if needed.

Thanks... It worked by setting clean data component to remove empty branches....

 

Hey... I used the definition for a road network...and this error shows up...do you know why?

 

Here are the files for checking...

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service