3 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 095777b1fc feat(brep): 反馈全量核验 + 提案补齐批次1 + 拔模/BOM 修复
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
审计(docs):
- 全库 999 份反馈逐份核验状态。VDE-212 + VDE-333~417 共 77 份原标
  "Fixed — v1.1 implementation completed",但其 Resolution 自述
  "Deferred to VDE roadmap"(自相矛盾)。逐条提取提案 API 与 include/src
  实际符号比对(348 个提案 API 不存在),据此更正 73 份状态。
  对照表见 docs/reference/audit-proposal-batch.md。

新增 API(提案补齐批次 1;tests/brep/test_proposal_ext.cpp 13/13):
- VDE-337 heal_ext:diagnose_model / batch_auto_repair / selective_repair
  (selective_repair 为原缺口:按步骤选择修复,此前流水线固定跑全流程)
- VDE-336 boolean_ext:boolean_preview / boolean_with_undo / clip_by_plane
  (clip_by_plane 用沿法向对齐半空间盒求交,平面多面体精确)
- VDE-333 snap_ext:batch_snap / grid_snap
- VDE-338 pattern_ext:grid_pattern / linear_pattern_skip / circular_pattern_skip

修复:
- VDE-397 拔模面真实几何:create_draft_face/apply_draft 委托 modeling::draft_face;
  同源修复 draft_face 位移方向(面内投影 -> 面法向;此前顶点始终共面、拔模角恒为 0)
  与拔模面几何未更新(改用同一仿射剪切变换控点)。test_draft_analysis 19/19。
- VDE-408 层次化 BOM:BomType/BomRow/compute_bom + 聚合(总质量/按材料/唯一零件)
  + JSON/XML/CSV(内存) 导出。tests/pdm/test_bom_table.cpp 10/10。

同时纳入既有未提交改动:progressive_encoding 实体边界分层、浮动许可真实网络签出、
DWG 运行时插件桥、brep_boolean / exact_offset / halfedge_mesh 等及其测试。

回归:test_brep 44、test_brep_modeling 75、test_brep_heal 41、
test_advanced_healing 33、test_advanced_blend 44、test_brep_blend 12、
test_direct_modeling 53、test_brep_boolean 21、test_boolean_robustness 15、
test_routing_ext 15、test_v5_features 7、test_draft_analysis 19、
test_bom_table 10、test_proposal_ext 13、test_topology_compression 15、
test_dxf 27、test_license 40 全绿。
2026-10-04 16:51:26 +08:00