Grasshopper

algorithmic modeling for Rhino

Help With Automating line connections between an expandable number of tree branches

Hi,

I have made a script that distributes points along curves at a varying density such that i can connect lines in between points on different curves to effectively triangulate the space in between but in a way that i can control.

(left becomes right)

(whole script (highlighted grouped area is the problem part))

the script works fine for 3 or more curves up until the points are distributed but because the lines are connected in a specific order between points i have to manually input the data streams between the same line components if i want to change the number of curves. 

(problem area)

as you can see in this script it is built to take 3 curves as branches of data (a 4th branch is errored because there is no 4th branch of data in this image). 

I want to use this strategy to link together approximately 60 curves so I am looking for a way to automate the process of creating the lines. i think this would be possible if i do not explode the tree - i have 2 ideas for potential solutions but have had very limited success on my own so i need someone more experienced to help.

Views: 884

Attachments:

Replies to This Discussion

I have an idea to use the Path Mapper component to create a shifted list set of my original stream of 3 branch data  and combine those new 3 branches with my old 3 branches to make a 6 branch data stream then use the tree branch component with a path that is automated to the number of data streams i have (say using the tree statistics component) to link up with a line component.

So far I have failed in doing this because I cannot seem to make a 6 branch tree.  

SOLUTION FOUND!!!!!!!!!!!!!!!!!!!!!!!!!!

I did not get to test out my hunch about creating a 6 branch tree and using the tree branch component to help create the lines needed because i could not find a way to make the 6 branch tree. Instead i found another way of mapping the pattern and using the path matter component to shift paths and wrap. 

the image shows the automated solution definition below the highlighted area that did the same thing but was not automated to take on more data( ie the stuff under the highlight can now replace the highlight in the script). I use two shift list components - the top one does not shift the list at all but the bottom one does - the top one is there to ensure that both streams of data have the same indicies. 

Attachments:

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service