2 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 776b433eaa feat(quality): D 阶段工程质量 — 模型库 + fuzz_ccd + 性能回归 + 结构化日志 + API 版本化 + CI 增强
- D2: tests/data/models 按格式分目录模型库 + test_model_corpus 遍历测试(空库自动跳过)
- D3: tests/fuzz/fuzz_ccd(保守推进/扫掠球/GJK 一致性)+ Gitea CI Fuzz Smoketest
- D4/D6/D7: GitHub CI 新增 valgrind / sanitizer(ASan+UBSan) / coverage 三 job
- D8: tools/perf_regression.sh 性能回归脚本 + CI perf-regression job(退化>15% 报警)
- D10: include/vde/foundation/vde_log.h + src/foundation/vde_log.cpp 自研结构化日志
- D11: version.h 新增 VDE_API_VERSION_* / VDE_API_SINCE / VDE_DEPRECATED 宏
- 路线图 D 阶段状态同步
2026-08-09 08:09:22 +08:00