3 Commits
Author SHA1 Message Date
hm 2473bdf757 E4c/E4d: vde::param 参数化表达式引擎+参数绑定 & vde::core UndoStack 撤销栈
E4c (VDE-583 §3):
- Parameter/ExpressionEngine/ParameterManager:参数表 CRUD + 表达式依赖收敛重算
- update_all 返回变化数;min/max 钳制 + Integer 取整;依赖失败保持原值并记录错误
- bind_to_feature(param, feature_id, field) → resolve_parameters 将参数值替换进特征定义
- 表达式求值器补充 %(取模)运算符(与 * / 同优先级)

E4d (VDE-583 §4):
- vde::core::UndoStack:push(执行+合并)/undo/redo/undo_text/redo_text
- set_clean/is_clean 干净状态;begin_macro/end_macro 宏折叠为单撤销单元
- set_max_undo_levels 深度限制(裁剪失效干净标记)

测试:expression 153 / param 34 / undo_stack 19 全部通过;E4 全量构建 210/210。
2026-08-09 21:08:55 +08:00
hm a4dbcfc195 refactor(batch1): extract expression/event/drafting/infra/mechanism modules
Moved 5 modules out of geometry kernel to independent directories:

- vde_expression: expression_eval (from core)

- vde_event: update_notifier (from brep)

- vde_drafting: drawing_standards + layer_standards (from brep)

- vde_infra: concurrent_data + performance_tuning (from core)

- vde_mechanism: motion_simulation + kinematic_chain (from brep)

All 5 modules compile and tests pass (expression:145/145, concurrent:10/10, motion_sim:13/13, performance:running)

Fixed cross-namespace imports (ProjectionView, BrepModel, Assembly, Point3D)
2026-08-06 15:06:22 +08:00
hm a37a6f882e docs: module split refactor plan + directory skeleton
Created refactor_plan.md with 5-batch extraction plan:

Batch 1 (zero-risk): expression_eval, update_notifier, drawing_standards, concurrent_data, mechanism — 5 modules, 0 cross-dependencies

Batch 2 (low-risk): pdm(bom/material/quality), license(+vde_version.h fix), platform(+io_dwg_plugin fix), ui(gizmo/selection/viewport) — 4 modules, 3 fixpoints

Batch 3: render(appearance/render_types/viewport_layout/section_view) — full cluster migration

Batch 4 (CAM): 7 headers with 5-layer internal dependency chain + python bindings + 8 tests — full cluster migration

Batch 5 (long-term): split partial modules (large_assembly/structural_profiles/brep_drawing/geometric_snap/pmi_mbd)

Also created 22 target directories (11 include/ + 11 src/) with .gitkeep placeholders
2026-08-06 14:34:07 +08:00