innerRectangle()
| 参数 | 类型 | 默认值 | 说明 |
|---|
提取当前多边形内的最大内接矩形。常用于在不规则地块上放置规则建筑。
提取内接矩形:
Lot --> innerRectangle() Building
CGA.js 中的 innerRectangle 实现基于 CityEngine 2025.1 官方文档。
@StartRule\nLot --> primitiveCube(6, 0.2, 6)\n innerRectangle()\n color(0.8, 0.7, 0.5)