Grasshopper

algorithmic modeling for Rhino

[Q] Specific Pairings from Within the Same Tree

I have a very pesky tree.  

 

I know what I'd like to do but my brain has melted trying to figure out how to get it done.  There are too many integers floating around in my head.

 

Hopefully this example is clear enough...

 

TREE

{branch}(index) = value

{0}(0) = 1

{0}(1) = 2

{0}(2) = 3

 

{1}(0) = 0

{1}(1) = 3

{1}(2) = 4

 

{2}(0) = 0

{2}(1) = 3

 

{3}(0) = 0

{3}(1) = 1

{3}(2) = 2

{3}(3) = 4

 

{4}(0) = 1

{4}(1) = 3

 

PAIRINGS (specified by the first occurance of a branch / value combination)

list1 : list2

{0}(0) = 1 : {1}(0) = 0

{0}(1) = 2 : {2}(0) = 0

{0}(2) = 3 : {3}(0) = 0

{1}(0) > this index has now been used, move on to the next one (etc.)

{1}(1) = 3 : {3}(1) = 1

{1}(2) = 4 : {4}(0) = 1

{2}(1) = 3 : {3}(2) = 2

{3}(3) = 4 : {4}(1) = 3

 

Thanks!

Views: 5506

Replies to This Discussion

UPDATE 4:

 

Unique edge offsets that can compensate for both material thickness and desired spacing between panels.  The effect is most apparent for acute angles.  Couldn't have done this without ye old [SrfSplit].

 

Dashed line represents theoretical panel CL geometry.

 

That's it until next year.  Peace out y'all.

 

 

any chance you could share this definition? THanks -Ethan

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service