Grasshopper

generative modeling for Rhino

# List division and rotation of elements

Hi there! I hope everything is going great on your current camp. I am currently working on my final project and I decided to do a plug-in building, in which you can see the way the building develops from a few pieces until all of the pieces are in place. You could also, theoretically, modify the form of the base, high, etc.

To do this I started making three pieces (all triangular) of different sizes... and then I stablished that there is going to be a bigger concentration of bigger pieces on the first third of the building, a bigger concentration of medium pieces on the second third and a bigger concentration of small pieces on the last third. I did this by rotating the pieces a number of times accordingly to a percentage.. the funny thing is that it works most of the times, but it doesn't work if the base of the building has 3, 8, 12, 18 or 20 sides (20 being the higher number on the number slider).. maybe there is a way to solve this with lists that I am not using????

My second problem is that I want to rotate each floor of the building separetly using a range... the thing is, I cannot make it work, because it rotates each triangle and not the whole floor... maybe there is a way of making groups or changing the list definition, but I'm not getting there.... I tried working with planes, but it is even more difficult to make the whole thing work...

I'm attaching the grasshopper documment and a couple of pictures so you can get my idea....

Views: 101

Attachments:

### Replies to This Discussion

Hi Alfonso!

Could you please specify a bit clearer what do you mean by 'it doesn't work with 3, 8, 12...'? I am modifying the parameters and can't really see what is not working...

Also, the problem about rotating is because you have all your vertical triangles in the same branch. Try flipping the data tree... ;)

Hi..

I am attaching three printscreens, one with a 6 sides base, one with 7 sides and one with 8 sides, where two of the triangles overlap, that is the problem.

I'll try flipping the lists in order to rotate the different floors...

is it ok if I send my finished project next week? I haven't had so much time to work on the project

Attachments:

the rotation is already working.. great!

Hi Alfonso.

The problem is with the way you are splitting the index, a bit complicated. Check the attached alternative:

Also Alfonso, I have seen waaaay too many fixed parameters everywhere... Are you sure you could not convert them into variable parameters and open up some freedom...? Give it a try please!

Attachments:

by Nasia.S

• View All