t(tx, ty, tz)
| 参数 | 类型 | 默认值 | 说明 |
|---|---|---|---|
tx, ty, tz | float | — | 沿 scope X/Y/Z 轴的平移量。 |
平移当前形状的 scope 原点。等价于 translate(tx, ty, tz)。平移操作不会改变几何体本身,只改变 scope 的位置。
将 scope 向上移动 5 单位:
Mass --> t(0, 5, 0) Raised
CGA.js 中的 t 实现基于 CityEngine 2025.1 官方文档。
@StartRule\nLot --> primitiveCube(4, 4, 4)\n t(2, 0, 0)\n color(0.5, 0.5, 1)