feat(v4.1): incremental update + large assembly + format robustness
CI / Build & Test (push) Failing after 35s
CI / Release Build (push) Failing after 48s
Build & Test / build-and-test (push) Has been cancelled
Build & Test / python-bindings (push) Has been cancelled

- IncrementalUpdateEngine: dirty propagation, topological rebuild, cache hit/miss
- InstanceCache: shared LOD mesh for identical parts
- LargeAssemblyManager: BVH spatial index, view frustum culling, assembly stats
- format_io: auto-detect STEP/IGES, batch import with error recovery
- 31 tests: incremental (11), large assembly (12), format IO (8)
This commit is contained in:
茂之钳
2026-07-25 03:51:57 +00:00
parent 89c2525f9f
commit 2e004fda6d
11 changed files with 1223 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
# ViewDesignEngine v4.1 — 增量更新 + 大装配 + 格式健壮性
> 制定: 2026-07-25 | 状态: 执行中
## 1. 🔄 增量更新引擎
特征树参数修改 → 仅重建受影响的下游节点,而非全量重算。
- [ ] `DirtyFlag` 标记传播:修改叶节点 → 沿依赖链向上标脏
- [ ] `incremental_rebuild(FeatureNode)` — 仅重建脏节点
- [ ] 缓存支持:`mesh_cache` / `bounds_cache` 按 node_id 存储
- [ ] `invalidate_cache(node_id)` — 清除脏节点的缓存
- [ ] 性能对比:增量 vs 全量重建耗时
- [ ] 测试:修改尺寸 → 增量重建正确性
## 2. 📦 大装配性能(10K+ 零件)
- [ ] `AssemblyInstancer` 扩展:batch placement + 共享几何
- [ ] `SpatialIndex` 集成:BVH/R-Tree 加速装配遍历
- [ ] `LOD` 自动切换:视距/屏幕误差驱动
- [ ] `InstanceCache`:实例化零件共享 mesh 数据
- [ ] 性能测试:10K 零件装配遍历 < 100ms
- [ ] 测试:大规模装配无内存爆炸
## 3. 📐 STEP/IGES 健壮性
- [ ] STEP 导入:处理更多实体类型(ADVANCED_FACE, EDGE_LOOP 变体)
- [ ] STEP 导入:容错解析(跳过未知实体,继续解析已知部分)
- [ ] IGES 导入:处理截断文件、非标格式
- [ ] 格式自动检测:STEP vs IGES 自动识别
- [ ] 批量导入测试:工业标准测试文件集
- [ ] 测试:损坏/截断文件优雅降级