From the course: Grasshopper and Rhino: C# Scripting

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Paneling

Paneling

From the course: Grasshopper and Rhino: C# Scripting

Start my 1-month free trial

Paneling

- [Instructor] In the last lesson, we learned how to output a grid of points as a tree. Now let's use those points to generate panels, which will form a facade. Let's take a closer look at how our points are made up. We currently have a grid of points made up of rows, starting from the bottom and each row contained in an array. The plan is to create panels from these points, using groups of four points to act as the corners of each panel. To do this, we're going to create nested four loops over the duration of the grid. The first four loop will represent the number of rows in the grid with i as the variable. So for the first loop, I will simply equal i for the second i equal i plus one and so on. Within each of these loops, we'll create another four loop for each point in the row. For this, we'll use the variable j and for the first loop, J would simply equal J for the second J plus one and so on. Using this logic,…

Contents