6 Commits
Author SHA1 Message Date
hm b2245ca0f7 feat(brep/foundation): Wave21 IGES face orientation, zero-copy import caches, UTF-8 leftovers
A52 (IGES face orientation closure, importer/exporter symmetric):
- importer: apply_shell_orientation derives face.reversed = (514 ORIENTATION==0) XOR (186 SHELLFLAG==0);
  token_is_pure_int guards legacy "0HNAME"; convert_face reads 510 OUTERLOOPFLAG, convert_loop reads
  508 ORIENTATION (diagnostics only); empty/void shells use their own SHELLFLAG
- exporter: 514 writes per-face ORIENTATION (0 when reversed), 510 OUTERLOOPFLAG=1, 508 ORIENTATION
  from edge.reversed; 144 counts reversed trimmed faces only (no orientation field); 186 keeps "1,0"
- test_iges_export 34 -> 43 tests (T1-T8, real corpus round-trips): occ__bug25415 vol_rel
  0.9697 -> 8.30e-12, occ__bug22821_test 2.0 -> 0, PWB/31000/28366 stay ~0

A53 (IGES import zero-copy caches):
- curve_cache_/surface_cache_ become unordered_map<int, shared_ptr<const NurbsCurve/NurbsSurface>>;
  hits share pointers, misses make_shared<const T>(std::move(...)); composite curves return pointers
- split_params/params_of return std::string_view (zero-copy token slicing; tokens are substrings)
- import_iges reads the file in one sized binary read (chunked fallback for >16GB or tellg failure)
- V8 Motor_1.igs 3.40 -> 1.346 s, moteur_v8_asm.igs 9.27 -> 3.284 s; topology/model hashes unchanged

A54/A55 (UTF-8 path leftovers):
- A54: 13 foundation files, 17 open sites -> open_ifstream_utf8/open_ofstream_utf8; 9 UTF-8 cases
- A55: 13 infra/plugin/capi/core files, 24+ sites (11 user-path sites in plugin_manager); 12 UTF-8 cases
- Linux-only fixed paths (/sys,/proc,/etc/machine-id) and platform.cpp fopen wrapper intentionally kept

Verification: 23 suites 918 passed / 0 failed; PR gate 1067/1067 (81.44 s); four KPI windows
bit-identical (fixed 196/36, auto 196/36, band 8/0 and 8/0); 35 extra suites green; redline identical.
2026-11-23 00:28:07 +08:00
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 11081a4db1 fix(brep): 装配级 PMI 传播/干涉批处理 3 处假实现重写为真,并清理过时工单与陈旧占位(VDE-467/VDE-242/VDE-168)
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-467:首修(3b9e5de2)仅消除链接错误,3 函数为假实现 ——
  * propagate_pmi_to_assembly:原样拷贝、从不应用装配变换 → 按 target 查零件世界变换,位置 T*position、法向逆转置归一化,未命中计入 unresolved_count
  * collect_assembly_pmi:伪造 {Dimension,auto} 占位 → 诚实返回空集合
  * interference_check_batch:包围盒中心距启发式误判 → 复用 check_interference(GJK/EPA) + 世界 AABB 间隙违规检测 + steady_clock 计时 + summary_report
- 启用 tests/brep/test_assembly_patterns.cpp 两处 DISABLED 占位并加强为 6 例判别性 gtest(19/19)
- VDE-242:更正状态为部分实现,补 5 组 API 能力映射表,指出 gouge 过切检测为真缺口
- VDE-168:清理过时 Summary/Workaround/Desired API 章节(合并为 historical)
- 删除陈旧纯占位测试 tests/cam/test_cam_3plus2.cpp(3+2 能力已在 multi_axis_roughing 实现并测试)
- apply_assembly_feature 空骨架标注 @warning 契约(签名缺放置参数),记入审计待办
2026-10-16 00:07:19 +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