## 3 Method
### Dynamo Script Overview and Implementation
#### 3.2.4 Spatial Shaping and Randomization  
The process of space formation on the plane, created through the site and building boundary lines, consists of three major steps, as shown in Figure 5.  
Figure 4: Visual programming of road intersection spacing.  
Figure 5: Visual programming of spatial shaping and randomization.  
* Creating the Grid In the first step, a grid was created on a 2D plane. This grid consisted of 441 points arranged in a 21 \(\times\) 21 matrix. These points are said to be \"transparent\", suggesting that they do not in themselves define a space or structure, but rather serve as potential anchor points for the spatial structures that will be created in the following steps.
* Random Point Selection In the second step, an algorithm was used to randomly select four points from the grid created in the previous phase. This randomness introduces a degree of variability and unpredictability into the design process, allowing for a wide range of possible spatial configurations.
* Square Formation and Combination In the third and final step, a square was created for each of the four points selected in the previous phase. These squares can vary in size from 1000 mm to 10,000 mm. The squares were then combined to create a unified space. This combination arranges or connects the squares to create a coherent spatial structure. The result of this process is a 2D spatial arrangement, an alternate layout, or a design based on the selection and combination of squares. Because the process involves random selection, it can generate a wide variety of potential spatial arrangements, thereby providing multiple design alternatives for a given site.  
2.5 Input of the Number of Floors and the Floor Height, and the Generation of Mass Excluding the True North Sunlight Area During the building design process, two critical parameters come into play: the number of floors and the height of each floor, commonly referred to as the \"floor height\". The input of these values yields a predictive model that reflects the anticipated shape and size of an actual building. This results in a primary building mass, often without accounting for the direction of sunlight and the influence of true north. By defining the height of each floor and determining the total number of floors, the 3D model of the resulting building, particularly its surface and solid components, were adjusted or shifted in the Z-axis direction. This determines the overall height and form of the building, as shown in Figure 6.  
Figure 6: Visual programming of the number of floors and the floor height, as well as the generated mass.  
For certain experiments or tests in the design phase, the number of floors was restricted to eight to reduce the number of variables. This limitation offers a more comprehensive understanding of the ramifications of the other influencing factors. When specific sections of a building design are omitted due to the influence of sunlight, the resultant shapes of the surface and solid components are analyzed meticulously. For visual differentiation, these components are assigned distinct colors and levels of transparency using a geometric color node. This visualization strategy provides a clearer insight into the different design segments and their respective influences.