Grasshopper

algorithmic modeling for Rhino

A simple drainage script using SpiderWeb.
Since it's based on a graph it is not as smooth as others but it should be faster

Views: 401

Comment

You need to be a member of Grasshopper to add comments!

Comment by claudemit on September 21, 2015 at 1:48am

thanks, I got it.

Comment by Richard Schaffranek on September 21, 2015 at 12:30am

Yes the direction of the line plays a roll. As I said SpiderWeb is based on directed graphs. So an edge always connects two points from Startpoint to Endpoint. so if you would like to have also an edge going form the Endpoint to the Startpoint you would need to draw a second line.

The undirected option is actually no "undirected" option it just draws a directed graph where for each edge there is another edge in the reverse direction.

Comment by claudemit on September 20, 2015 at 10:05pm

thanks for your reply!

Shall i manipulate the direction of lines?if there is a mixed web in which some part of lines are directed and the orther are undirected, how to make the mixed graph?

could you supply a example?

thanks!

Comment by Richard Schaffranek on September 20, 2015 at 11:22am

As for the drainage Pattern will post an update to the spiderweb 4.2 version. There was a big break in everything between 3 and 4...

Sorry.

Comment by Richard Schaffranek on September 20, 2015 at 11:21am

Hallo,

SpiderWeb works on directed graphs (mostly). In this case the Line From Graph component is set to directed (d). If you right click on the component than you will see the options directed / undirected. If you switch to undirected the result should be the same. 

Comment by claudemit on September 20, 2015 at 9:45am

Hi Richard,

I don't know how to post the Gh code. It's just a simple test using one rhino file of you example  "DisplayGraph".

Comment by Richard Schaffranek on September 20, 2015 at 9:15am
Could you Plesse post a file for the second exampl.
Comment by claudemit on September 20, 2015 at 7:56am

hi Richard,

I think the latest version 4.2 has made a big change in output data for many components.I failed to make this example work on spiderwed 4.2. There is no result at the step of breath-first search.


The problems of examples for 3.0 are hard for beginners, could you update the examples?

By the way, I find the result of ShortestPathBetweenPoints is different from the componet ShortestWalk. Could you tell me why?

Thanks!

Comment by Richard Schaffranek on January 21, 2012 at 4:32am

The script [and other examples] can be downloaded with the newest release of SpiderWeb from:

http://www.gbl.tuwien.ac.at/Archiv/digital.html

Richard

Comment by Nay Soe on January 20, 2012 at 12:11pm

is it possible i can take a look at your script, i never figured out how to use spiderweb

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service