cleanupGeometry(tolerance)
| 参数 | 类型 | 默认值 | 说明 |
|---|---|---|---|
tolerance | float | — | 合并阈值。距离小于此值的顶点会被合并。 |
清理几何体中的冗余顶点和退化面。合并距离过近的顶点,删除面积为零的面,优化网格结构。
清理几何体:
Mesh --> cleanupGeometry(0.001)
CGA.js 中的 cleanupGeometry 实现基于 CityEngine 2025.1 官方文档。
@StartRule\nLot --> primitiveCube(4, 4, 4)\n cleanupGeometry(0.001)\n color(0.7, 0.7, 0.8)