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 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