shapeL(frontWidth, rightWidth)
| 参数 | 类型 | 默认值 | 说明 |
|---|---|---|---|
frontWidth | float | — | 前侧臂宽度。 |
rightWidth | float | — | 右侧臂宽度。 |
将当前矩形形状分割为 L 形。常用于生成 L 形建筑平面或地块。
生成分割 L 形:
Lot --> shapeL(5, 3) LShape
CGA.js 中的 shapeL 实现基于 CityEngine 2025.1 官方文档。
@StartRule\nLot --> primitiveCube(6, 0.2, 6)\n // shapeL(3, 3)\n color(0.7, 0.8, 0.7)