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