Above are some variations of the building I created!
Since Grasshopper doesn’t have preset forms, I decided to practice utilizing the loop functions to create a complex building with four parameters. I created the building by starting with a polygon with a variable number of sides. Then I used a loop to create a circumscribed new polygon and translate it up in the Z direction to create a twisting effect.
The parameters I used in the main loop were:
1) The height of the building (400, 500, 550, 600, 650, 700, 750)
2) The twist parameter (.02,.04,.06,.08,1)
3) Number of sides on the polygon (5,6,7,8)
4) Radius of the polygon (150, 200, 250, 300)
I wrote a python script (shown below) to find the cross product of all those parameters. It returned a CSV with 560 different variable configurations. I then put those into my Grasshopper file and ran all the options!
Finally, I exported all the values into an excel sheet that lists the parameters and the results.
Finally, here are some screenshot of the code I used:
This was the block used to make the circumscribed polygons.
Calculating various result values.
The end of the loop, exporting the parameters and results to CSV.