Grasshopper

algorithmic modeling for Rhino

Begin a graph/network in SpiderWeb from lines instead of points

Hi There,

I'm just looking at a distribution network across a site for uni. There are 2 elements to this, first there will be 4 key routes from a base point which set out the spines of the network (see image graph - 1st lines). Next will be the secondary network branching off this 1st network (see image graph - 2nd lines).

For this second phase is there a way i can either fix the 1st network so that the same path is used for the generation of the 2nd or use this 1st network as the starting point for the 2nd?

At the moment all i can figure out is how to get the both sets as shown in the attached image graph - 1st&2nd lines. It creates unnecessary paths and loops.

I'm hoping its a simple question!

Thanks for reading anyway


Marc

Views: 600

Attachments:

Replies to This Discussion

And the working files if they are of use,


Thanks again

Marc

Attachments:

For what it is worth since UNI is over...

What you would need to do is to set the edgecost of the used edges to a very small number.

If you are using only the minimal spanning tree component this could be 0, otherwise if you want to use SSSP component this should be a realy small number e.g. 0.00001 since it can't deal with negative cost cycles...

This way you can ensure that the edges you would like to include in a more detailes network will be used again.

Best

Richard

RSS

About

Translate

Search

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service