Files
ViewDesignEngine/docs/archive/14-v3.5-开发计划.md
T
茂之钳 486a0fe011
CI / Build & Test (push) Failing after 35s
CI / Release Build (push) Failing after 33s
Build & Test / build-and-test (push) Has been cancelled
Build & Test / python-bindings (push) Has been cancelled
docs: reorganize documentation — developer-friendly structure
New structure:
- docs/index.md — main navigation
- docs/getting-started.md — 5-minute quick start
- docs/guides/module-manual.md — all 11 modules with file listing
- docs/guides/api-usage.md — API reference with code examples
- docs/guides/ — architecture, building, testing, contributing
- docs/reference/ — competitive analysis, gap analysis, versioning
- docs/api/ — Doxygen generated HTML
- docs/archive/ — historical development plans

Old development plans archived. Clean 4-directory layout.
2026-07-27 13:32:20 +08:00

1.3 KiB
Raw Blame History

ViewDesignEngine v3.5 性能+实战计划

制定: 2026-07-24 | 状态: 完成


1. 性能优化 — 布尔运算 10x

当前 Union_BoxAndCylinder 耗时 ~1.8s。目标 0.2s。

  • BrepModelto_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 约束