taper(height)
| 参数 | 类型 | 默认值 | 说明 |
|---|---|---|---|
height | float | — | 锥化高度。 |
将当前形状锥化(taper)。从底面向上逐渐缩小截面,形成锥形或金字塔形。
锥化形状:
Base --> taper(5) Pyramid
CGA.js 中的 taper 实现基于 CityEngine 2025.1 官方文档。
@StartRule\nLot --> primitiveCube(4, 4, 4)\n taper(5)\n color(0.9, 0.8, 0.5)