Files
ViewDesignEngine/docs/14-v3.5-开发计划.md
T

42 lines
1.3 KiB
Markdown
Raw Normal View History

# ViewDesignEngine v3.5 性能+实战计划
> 制定: 2026-07-24 | 状态: ✅ 完成
---
## 1. ⚡ 性能优化 — 布尔运算 10x
当前 `Union_BoxAndCylinder` 耗时 ~1.8s。目标 0.2s。
- [ ]`BrepModel``to_mesh()` 缓存(避免每次 classify 重建 mesh
- [ ] `classify_point_mesh` 用 BVH 加速射线查询
- [ ] 面分割提前退出:AABB 不相交则跳过
- [ ] 基准测试验证改进
## 2. 🔧 实战零件示例
验证全管线可用的端到端实例。
- [ ] `examples/10_flange` — 法兰零件:挤压→打孔→倒角→STEP 导出
- [ ] `examples/11_gear` — 齿轮:参数化齿形→阵列→IGES 导出
## 3. 🌲 参数特征树
参数化建模的基础。
- [ ] `FeatureNode` 数据结构(操作类型 + 参数 + 子节点)
- [ ] `FeatureHistory` 管理 undo/redo
- [ ] 测试:box→fillet→shell→undo→redo
## 4. 📏 测量工具
- [ ] `distance(const BrepModel&, const BrepModel&)` — 两体最小距离
- [ ] `surface_area(const BrepModel&)` — 表面积
- [ ] `volume(const BrepModel&)` — 精确体积(散度定理)
## 5. 🔩 装配约束
- [ ] `ConstraintType` 枚举:Coincident, Concentric, Tangent, Parallel, Distance
- [ ] `apply_constraint(node_a, node_b, type)` — 自动计算变换矩阵
- [ ] 测试:两个零件 concentric 约束