Hi, well in this lecture we're going to add an interesting part to the code. We're going to create a box with the same length and width as the overall grids boundary, and assign its height to subtract our created geometry from will first use the bounding box component and connect it to the cells output of our rectangular grid. This will give us the boundary of each cell. So in order to get the total sales boundary, we'll need to add the solid union component. Now we will create a box and we will need to specify its location and size. We will add move components and connect Set factor and slider to it to be able to control the boxes movement in the right direction.
But we will also need to specify the center of the box by finding the center of the solid union component. We'll do that by adding the area component and then connecting it to the solid Union. The centroid output is then connected to the geometry inputs in the move components. I will take the exact grid boundary to create the length and width of the box. We'll add a multiplication components to multiply this size of the grid cell by the number of cells. Then divided by two and for the height, we will connect it to a slider to be able to control the height of our box.
Now we have a large box which we are going to subtract our geometry from. And to do that finally you will add the solid difference component which we can bake into Rhino by right click, bake, choose layer and click OK. And that's the end of our first code random geometrical transformation. Now you will need to get familiar a bit with the code by doing the coming exercise.