This advanced Grasshopper tutorial is inspired by the Lane 189 project designed by UNStudio. It will show you how to create advanced facade patterns that consist of several hexagonal modular elements that are positioned in a certain order based on facade openings. A gradient transition from bigger to smaller facade components regulates their distance to the closest facade opening.
First, with the help of Peacock plugin, we're going to position an unrolled referenced surface from Rhino on the XY plane. After, we will create a hexagonal grid that fits on an unrolled referenced surface, no matter how many hexagons we choose to have along x and y directions. This method comes with detailed mathematical explanations and sketches. In the next step, we will demonstrate advanced data tree modification where we're going to separate the list of hexagons into multiple different branches (depending on how many modules we have) based on their distance to the closest outline of the opening.
In our example, we have 7 different modules which mean we are going to separate the list of hexagons into 7 different branches. Combining Longest List and Orient Component we will position modules on an unrolled reference surface.
Using Box Morph we will scale each module to fit on a single hexagon from the grid. In the last step, we will Split each module. In order to remove unnecessary parts from the output, we will use a method that includes the advance technique of combining Gate Not and Gate And.