6 Commits
Author SHA1 Message Date
hm 732097a080 feat(app): B-7 应用模块深度 — CAM 5 轴 G-code 往返(≤2e-6)/swarf 无过切 rel 1.8e-16、机构二阶级联解析(rel<1e-9)+死点诊断、PDM 修订/配置 BOM(rel=0)+完整性;254 测试全绿 2026-10-26 00:54:51 +08:00
hm 9d479efe7d 补齐三项已记录缺口为真实实现
Build & Test / build-and-test (push) Canceled after 0s
VDE Build & Test / build-and-test (push) Canceled after 0s
Build & Test / python-bindings (push) Canceled after 0s
- apply_assembly_feature(VDE-467 遗留):AssemblyFeatureParams 增
  position(装配/世界坐标放置)/target_parts(零件过滤);按类型分派真实几何
  (BoltHole/RivetPattern -> make_hole 布尔减、阵列/重叠孔成槽;WeldJoint ->
  make_cylinder + brep_union 增料),世界->局部变换 + 工具体沿轴线锚定到各零件表面。
  新增 6 例判别性测试(test_v5_features 30/30)。
- VDE-242 gouge(过切)检测:新增 vde::cam::check_gouge —— 刀具旋转体轴向/角向
  采样离散,逐刀路点在面过滤后的网格上以 core::closest_point 精算最近点,
  按有符号距离判定切穿材料并输出 gouge_depth/gouge_point/point_index。
  新增 7 例判别性测试(test_cam_advanced 25/25)。
- export_3d_pdf PMI 编码进 U3D 流:新增 Pdf3dPmiEntity DTO +
  kU3DPmiBlockType(0xFFFFFFF1) 语义实体块 + export_pdf3d(_file) 重载;
  export_3d_pdf 按 display.visible 过滤并映射标注写盘。
  新增 2 例判别性测试(test_pmi_mbd 39/39)。

同步更新 VDE-242/334/467 工单与审计/参考文档。
2026-10-16 08:55:37 +08:00
hm b378b191da build(io/brep): VDE-006/013/067 依赖环解除 + 模块开关接线 + 裸 mesh:: 清理
Build & Test / build-and-test (push) Canceled after 0s
VDE Build & Test / build-and-test (push) Canceled after 0s
Build & Test / python-bindings (push) Canceled after 0s
VDE-006:新增集成层 vde_io 归集跨层 TU,依赖图变严格单向
io→brep→{sdf,mesh}→{curves,collision}→spatial→core→foundation,删除
-Wl,--start-group;BrepModel 桥接(brep_to_mesh/mesh_bridge)归 vde_brep。
移除兜底后暴露并修复两处反向依赖:core/icp.cpp→vde_spatial,
brep/parallel_boolean.cpp→vde::boolean(VDE_DEPS_brep 增 boolean)。

VDE-013:顶层解析 VDE_BUILD_*→VDE_ENABLE_*,VDE_DEPS_* 级联关闭,
src/ 与 tests/ 按 VDE_ENABLE_* 门控,使模块开关真正生效。

VDE-067:全仓裸 mesh:: 清理为完全限定名 vde::mesh::(正则命中 0)。

回归:全量构建 EXIT 0;test_icp/test_parallel_boolean/test_geometry_completion
全绿。既有缺陷(FEA 球面网格挂起、CAM in_range 哨兵、3MF 装配、时序竞态)
经取证与本批无关,记入 docs/reference/audit-feedback.md §5。
2026-10-07 06:39:07 +08:00
hm 9b021b6b33 feat(cam): VDE-353 simulate_material_removal 刀路材料去除仿真
Build & Test / build-and-test (push) Canceled after 0s
VDE Build & Test / build-and-test (push) Canceled after 0s
Build & Test / python-bindings (push) Canceled after 0s
实现 VDE-353 提案 2:simulate_material_removal(stock, toolpath,
tool_diameter, tool_flute_length) → BrepModel。
以立铣刀参数调用既有 material_removal_simulation 得剩余材料网格,
再经 brep::mesh_to_brep_model 转回 B-Rep;刀具直径/刃长非法或无剩余
网格时原样返回毛坯。

- include/vde_cam/cam_toolpath.h:前置声明 brep::BrepModel + 声明
- src/vde_cam/cam_toolpath.cpp:实现
- tests/cam/test_cam_toolpath.cpp:VDE353Test 2 项(含"剩余体积严格小于
  毛坯"的真实性校验,验证确非空转)

回归:test_cam_toolpath 13/13 全绿。
更新 VDE-353.md 与 audit-proposal-batch.md(已实现 28→29 / 缺失 252→251)。
2026-10-05 02:22:39 +08:00
hm e1b00ade36 refactor(batch4): extract CAM subsystem + assembly_lod
CAM: 7 headers + 7 sources + 8 tests moved from core/ to vde_cam/

  Internal 5-layer dependency chain preserved (cam_toolpath → strategies → advanced/optimization/5axis/mesh/gcode)

  Python bindings updated (python/src/vde_cam.cpp)

Assembly LOD: moved from brep/ to vde_render/

Tests: cam_toolpath 11/11, cam_strategies 31/31, gcode_import 10/10, assembly_lod 22/22 — all pass

Fixed: test_cam_3plus2 disabled (pre-existing VDE-242 not implemented)

Fixed: removed unused using namespace vde::brep from CAM tests
2026-08-06 17:06:21 +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