Grasshopper

algorithmic modeling for Rhino

[Q]How to repeat a list of branches until it reach a certain length ??

Hi ,

As the title saying, is there any way to repeat a list of branches until it reach a certain length ??

Views: 826

Replies to This Discussion

Say I have two branches,each branch contains two vectors:

{0}--->(0,1,0);(0,-1,0)

{1}--->(0,-1,0);(0,1,0)

 

then I want to repeat these two branches until 40 branches:{0},{1},{2},{3},{4},...{39}. In this new branches list ,{2} contain the same items as {0} ,{3} contains the same items as {1} .

 

I hope I have made myself clear enough .Thanks for any help!!

 

 

Hi Alpha,

 

have a look at the attached image and/or file.

I think this is what you wanted.

I don't know the exact situation of your definition, so maybe you have to change it a little bit.

Hope this helps.

 

Best,

Martin.

Attachments:

Hi Martin, This is really helpful .I can achieve what I want by this way .Thanks !

But I still want to have one logically direct way to achive this .

So my [Q]uestion become [W]ish now ! I wish the David would give a word !

Hi Alpha,

 

This is how I would achieve it with current native GH components

Hi Danny ,

 

This is exactly what I an dreaming !!Thanks !

 

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