Grasshopper

algorithmic modeling for Rhino

How to generate multiple identical branches with just a single branche?

for example


the original:

structure (path = 1)
{0} (n=3)

to

structure (path = 3)
{0} (n=3)
{1 (n=3)
{2} (n=3)

please help!

Views: 462

Replies to This Discussion

Your original tree contains 3 items, your desired three contains 9 items. Where do these 6 new items come from?

--
David Rutten
david@mcneel.com
Poprad, Slovakia
same as the origginal branche

for example

i have a set of numbers (1,2,3)
and i need to generate three same sets of them
(1,2,3)
(1,2,3)
(1,2,3)
Couldn't you just duplicate the data?

Best, E.
If it's a predefined (and reasonably simple) tree structure you're looking for, you can use Path Mappers to create the individual branches, then merge the streams back together again:



If you want dynamic control over the tree layout, it all becomes a lot more complex. You might be able to use some tricks depending on what kind of tree you want, but before we dive into that can of worms I'll let you tell me whether or not the 'naive' solution is good enough.

--
David Rutten
david@mcneel.com
Poprad, Slovakia
thanks a lot, what i want is indeed dynamic control over the the tree layout. how can i do?
This solution is more flexible, although it is still hardcoded to a list-length of 3.


--
David Rutten
david@mcneel.com
Poprad, Slovakia
It's not as much fun as the path mapper, but it's dynamic.

Two slightly similar versions (0.6.0059) attached.


Attachments:

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