Generative Components

5. Layout Component 建筑布局组件

Bottom-up workflow from generated building-massing blocks to their arrangement within a site boundary
IMG-LAYOUT-DESIGNS-01 — Bottom-up layout workflow: generate the building-massing blocks, arrange their coverage shapes within the site boundary, and then place the complete massings at the calculated positions. / 自下而上的布局流程:先生成建筑体量单元,再在用地边界内布置其覆盖轮廓,最后将完整建筑体量放置到计算所得的位置。

The Layout Component follows a bottom-up workflow. The Additive and Subtractive Components first generate the individual building massings; the Layout Component then arranges those massings within a user-defined site boundary. It controls the position and optional rotation of each instance while managing conflicts between buildings and the site. The resulting layout can be generated directly or optimized together with the connected building forms through SSIEA.

Layout Component(建筑布局组件)采用自下而上的生成流程:首先由加法组件和减法组件生成单体建筑体量,再由布局组件将这些体量布置在用户指定的用地边界内。该组件控制各体量实例的位置及可选旋转,并处理建筑之间以及建筑与用地边界之间的冲突。生成的布局既可直接用于方案探索,也可通过SSIEA与建筑体量参数共同优化。

5.1 Connect building massing components 连接建筑体量组件

The ComponentIDs input accepts the component instance IDs of Additive and Subtractive Components. Connect each generator’s InstanceID output directly, or right-click a generator, choose Copy Component Instance ID, and collect several IDs in a Grasshopper Panel before connecting them to the Layout Component. When using a Panel, enable Multiline Data and place each ID on a separate line so Grasshopper supplies every ID as a distinct list item. Repeat an ID when several instances of the same generated massing are required. The component validates every ID; invalid, missing, or unsupported references produce a warning and do not replace the previous valid layout.

ComponentIDs输入端接收加法组件和减法组件的组件实例ID。可以直接连接各生成组件的InstanceID输出端,也可以右键单击生成组件,选择Copy Component Instance ID(复制组件实例ID),并在Grasshopper Panel中汇集多个ID后再连接至布局组件。使用Panel时,应启用Multiline Data(多行数据),并将每个ID分别放在独立的一行中,使Grasshopper将其作为列表中的独立数据项传递。若布局中需要同一建筑体量的多个实例,可重复输入对应ID。组件会验证每个ID;无效、缺失或不受支持的引用将触发警告,并且不会覆盖此前有效的布局结果。

Direct InstanceID connections from Additive and Subtractive Components to the Layout Component
Direct InstanceID connections / 直接连接InstanceID
Copying component instance IDs and supplying several IDs through a Grasshopper Panel
Copy component instance IDs and supply them through a Panel / 复制组件实例ID并通过Panel输入

Each additional massing instance introduces its own placement variables and increases the optimization search dimension. Include only the instances required by the intended site arrangement.

每增加一个体量实例,都会引入相应的位置变量并提高优化搜索维度。因此,建议仅加入目标布局所需的建筑实例。

5.2 Configure the layout 布局配置

Double-click the component to open the Layout Editor. Complete the settings below, then click Apply parameters. Settings remain editable until they are applied.

双击组件打开Layout Editor(布局编辑器)。完成以下设置后,单击Apply parameters(应用参数)。在应用前,所有设置均可继续调整。

Complete Layout Editor showing separation, rotation, collision priority, output grouping, scaling, and boundary controls
IMG-LAYOUT-EDITOR-01 — Complete Layout Editor with its current controls visible. / 显示全部当前控制项的布局编辑器。

5.2.1 Site boundary 用地边界

Click Select site boundary and choose a valid, closed, planar curve in Rhino. The boundary must provide enough usable space for all connected massings. If a valid arrangement cannot be calculated, the component reports the problem and preserves the previous valid output rather than returning a partial layout.

单击Select site boundary(选择用地边界),并在Rhino中选择有效、闭合且平面的曲线。边界内应具有足够的可用空间以容纳所有已连接体量。如果无法计算出有效布局,组件会报告问题并保留此前有效的输出,而不会返回不完整的布局。

Animation showing how to select and apply a Layout Component site boundary
GIF-LAYOUT-SITE-BOUNDARY-01 — Click Select site boundary, choose a valid closed planar curve in Rhino, confirm the selection, and show the connected massings being rearranged within the new boundary. / 单击“Select site boundary”,在Rhino中选择有效的闭合平面曲线并确认,随后展示已连接建筑体量在新边界内重新布置。

5.2.2 Building separation and collision priority 建筑间距与冲突处理优先级

Enable Separate buildings to request a minimum distance between building footprints. Spacing distance accepts values from 0 to 100 in the current Rhino model units. When all constraints cannot be satisfied simultaneously, Collision priority determines which conflict is resolved first: Building-to-Site Collision prioritizes keeping buildings within the site, while Building-to-Building Collision prioritizes resolving conflicts between neighboring buildings.

启用Separate buildings(分离建筑)后,可通过Spacing distance(间距)指定建筑轮廓之间的最小距离,允许范围为0至100,单位采用当前Rhino模型单位。当所有约束无法同时满足时,Collision priority(冲突处理优先级)决定优先处理的冲突类型:Building-to-Site Collision优先处理建筑与用地边界的冲突,Building-to-Building Collision优先处理相邻建筑之间的冲突。

Comparison of layouts generated with different building-separation distances
IMG-LAYOUT-SPACING-01 — The same building massings arranged with spacing distances of 0 m, 10 m, and 20 m in the illustrated example. / 图示示例中,相同建筑体量分别采用0米、10米和20米间距时的布局对比。
Layout emphasizing building-to-site collision resolution
Building-to-Site Collision priority / 优先处理建筑与用地边界冲突
Layout emphasizing building-to-building collision resolution
Building-to-Building Collision priority / 优先处理建筑之间的冲突

5.2.3 Rotation range 旋转范围

Enable Allow rotation to vary building orientations between the specified Minimum and Maximum angles. Both values must be between -90° and 90°, and the minimum cannot exceed the maximum. Enter the same non-zero value in both fields when a fixed orientation is required. A variable rotation range adds one rotation variable for every connected massing during optimization.

启用Allow rotation(允许旋转)后,可在指定的Minimum(最小值)与Maximum(最大值)之间改变建筑朝向。两个数值均须位于-90°至90°之间,且最小值不得大于最大值。如需采用固定的非零朝向,可在两个输入框中填写相同数值。使用可变旋转范围时,优化过程会为每个已连接体量增加一个旋转变量。

Comparison of layouts generated with different building-orientation settings
IMG-LAYOUT-ROTATION-01 — Comparison of rotation ranges from 0° to 0°, ±5°, ±10°, and ±15°. / 旋转范围分别为0°、±5°、±10°和±15°时的布局对比。

5.2.4 Output grouping and scaling 输出分组与缩放

Output grouping changes the data-tree organization without changing the generated geometry. Group by Floor retains floor-based branches, while Group by Building collects the geometry of each building in its own branch. Keep the Scaling factor at 1.0 for normal use. A positive alternative value may be used when the model scale requires normalized layout calculation; the transformed outputs are returned at the project scale.

Output grouping(输出分组)只改变数据树的组织方式,不改变生成的几何结果。Group by Floor保留按楼层组织的分支,Group by Building则将每栋建筑的几何结果汇集到独立分支中。常规使用时建议将Scaling factor(缩放因子)保持为1.0;当模型尺度需要归一化计算时,可输入其他正数,变换后的输出仍会恢复至项目尺度。

5.3 Generate and inspect layouts 生成与检查布局

Applying the editor settings generates an initial valid layout. To explore another arrangement without changing the setup, right-click the Layout Component and choose Generate Sample Layout. This command only rearranges the current building massings, including their rotations when enabled; it does not regenerate their forms. To sample both new building forms and a corresponding new arrangement, connect the massing generators and the Layout Component to SSIEA, then right-click SSIEA and choose Generate Sample Model. SSIEA regenerates the connected massings and updates their layout in the same solution, allowing the combined design space to be inspected before optimization. Generate several samples and revise the massing ranges, layout constraints, or site boundary if the resulting designs are unsuitable.

应用编辑器设置后,组件会生成一个初始有效布局。如需在不改变设置的情况下探索其他排布,可右键单击布局组件并选择Generate Sample Layout(生成示例布局)。该命令只会重新布置当前建筑体量,并在启用旋转时更新其朝向,不会重新生成建筑体量形态。如需同时生成新的建筑体量及其对应布局,应将体量生成组件和布局组件连接至SSIEA,然后右键单击SSIEA并选择Generate Sample Model(生成示例模型)。SSIEA会在同一次求解中重新生成已连接的建筑体量并更新其布局,从而便于在优化前检查建筑形态与排布共同构成的设计空间。建议生成多个示例;如果结果不理想,应相应调整体量参数范围、布局约束或用地边界。

Whichever sampling method is used, inspect the site boundary, building footprints, and spacing before optimization. If the site is too constrained, reduce the number or size of the connected massings, reduce the required separation, or revise the site boundary.

无论采用哪种采样方式,进入优化前都应检查用地边界、建筑轮廓和建筑间距。如果用地约束过强,可减少已连接体量的数量或尺寸、降低间距要求,或调整用地边界。

Layout Component context menu showing Generate Sample Layout
IMG-LAYOUT-GENERATION-01 — Right-click the Layout Component and choose Generate Sample Layout to rearrange the current building massings. / 右键单击布局组件并选择Generate Sample Layout,以重新布置当前建筑体量。
SSIEA context menu showing Generate Sample Model with the massing generators and Layout Component connected
IMG-LAYOUT-OPTIMIZATION-01 — With the massing generators and Layout Component connected, right-click SSIEA and choose Generate Sample Model to update both building forms and their arrangement. / 连接体量生成组件和布局组件后,右键单击SSIEA并选择Generate Sample Model,即可同时更新建筑形态及其排布。
Animation comparing Generate Sample Layout with SSIEA Generate Sample Model
GIF-LAYOUT-GENERATION-MODES-01 — Use Generate Sample Layout to change only the arrangement of the current massings, then use SSIEA's Generate Sample Model to regenerate both the building forms and their layout. / 先使用“Generate Sample Layout”仅改变当前建筑体量的排布,再使用SSIEA的“Generate Sample Model”同时重新生成建筑形态及其布局。

The component provides gross-area values and transformed floor, roof, façade, opening, core, and raw-massing geometry. It also outputs the site boundary, one working plane for each arranged massing, and a translation log that records the transformed footprint boundaries. The final Metrics output contains four layout-quality values in this order: overlap violation ratio, overlapping area, boundary exceedance ratio, and exceeding area. These outputs can be used for downstream analysis, evaluation, and visualization.

组件输出总建筑面积,以及经过变换的楼板、屋顶、立面、开口、核心筒和原始体量几何。同时还输出用地边界、每个已布置体量对应的工作平面,以及记录轮廓变换结果的位移记录。最后的Metrics(布局质量指标)输出依次包含四个数值:重叠违规比例、重叠面积、越界比例和越界面积。这些输出可用于后续分析、评价与可视化。

5.4 Optimize the layout 布局优化

Connect the configured Layout Component to SSIEA to optimize the arrangement. To optimize building form and site arrangement together, also connect the relevant Additive and Subtractive Components to SSIEA. Complete the sample-generation checks described in Section 5.3 before starting the optimization.

将完成设置的布局组件连接至SSIEA,即可对建筑排布进行优化。如需同时优化建筑形态和场地布局,还应将相应的加法组件和减法组件连接至SSIEA。正式开始优化前,请先完成第5.3节所述的示例生成与检查。

Enlarged manual illustration