rotateScope(rx, ry, rz)
| 参数 | 类型 | 默认值 | 说明 |
|---|---|---|---|
rx, ry, rz | float | — | 绕 scope X/Y/Z 轴的旋转角度(度)。 |
围绕 scope 中心旋转 scope 本身。与 r 不同,rotateScope 主要旋转 scope 的坐标轴方向,对几何体的影响取决于具体实现。
旋转 scope 轴:
Mass --> rotateScope(0, 30, 0) Tilted
CGA.js 中的 rotateScope 实现基于 CityEngine 2025.1 官方文档。
@StartRule\nLot --> primitiveCube(4, 4, 4)\n rotateScope(0, 30, 0)\n color(1, 0.5, 0.5)