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 4ad1690b8b VDE-404: 补齐材料库 by_category / register_custom / databases / JSON 互操作
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_pdm/material_library 上补齐缺失提案 API:
- MaterialDatabase::by_category(静态按类别过滤,按名升序)
- MaterialDatabase::register_custom(写入 custom 目录,可被 get/search/by_category 检索)
- MaterialDatabase::databases(列出 native/custom 目录名,add 默认 native、register_custom 标 custom)
- to_json / from_json(单材料扁平 JSON,17 位精度 + 字符串转义;from_json 容缺键)

(MaterialLibraryTools 为应用层名、databases 为正文词)

test_material_library 23/23 全绿
2026-10-05 20:05:11 +08:00
hm e6ee54ad1e fix(pdm): 落地 VDE-372 质量反馈三项提案 + 修复两处既有缺陷
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
- rules_for_process: 按制造工艺返回差异化设计规则集(机加工/注塑/增材/钣金/铸造)。
- optimize_quality: 以 quality_score 为反馈的生成式圆角细化,仅接受严格提升评分的修改。
- analyze_assembly: 遍历装配体逐件评分并汇总统计(均分/极值/评级分布/最差零件)。
- 修复 MfgReport 未初始化字段导致的 UB(dfm_score 同件多次调用漂移 87.5/30)。
- 修复 design_rule_check 对未内置判据的关键自定义规则静默放过的问题(保守校验 min/max)。
- 回归: tests/pdm/test_quality_feedback.cpp 新增 8 例,test_quality_feedback 21/21 全绿。
2026-10-05 16:01:39 +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
hm 85f2df2ca7 refactor(batch2): extract pdm/license/platform/ui modules
Moved 4 module groups out of geometry kernel:

- vde_pdm: bom_table + quality_feedback + material_library (from brep/core)

- vde_license: license_manager (from core, vde_version.h updated)

- vde_platform: platform (from core, io_dwg_plugin.cpp updated)

- vde_ui: gizmo_api + selection_manager + viewport_api (from brep)

All modules compile. Pre-existing test failures unchanged (case-sensitive tier parsing, orientation cube)
2026-08-06 16:27:36 +08:00