4 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 6b96c0c788 fix(brep/mesh): 修正反馈 A 组 VDE-1193/1194/1195 — 边去重/序列化异常/网格绕向自检
VDE-1194 BrepModel::add_edge_unique 改用无向键 (min<<32)|max 去重,
并以惰性 unordered_map 索引替代 O(E) 线性扫描;修复一致取向三角网格
公共边反向遍历导致去重失效、watertightness 恒 0 的误报
(box 网格共享边 30→18,diag_err 1→0)。新增 3 项单测。

VDE-1195 BinarySerializer::read_file 打不开/读取失败抛 std::runtime_error,
deserialize 校验 VDE 魔数/版本/体量并抛异常;C ABI vde_deserialize_mesh
捕获异常返回 nullptr,避免异常穿越 C 边界。新增 3 项单测。

VDE-1193 定位体积坍缩根因:to_mesh 输出为逐面独立三角汤(公共边顶点不焊接)
且绕向混杂,散度定理体积在内部抵消;repair_mesh 的 fix_orientation/fill_holes
原为空实现、flipped_faces 恒 0。新增 mesh::weld_and_unify_orientation
(空间哈希焊接 + 共享边 BFS 绕向统一 + 分量有符号体积翻正),
MeshHealingReport 补齐 boundary_edges / winding_consistent / outward_oriented
自检字段;vde_step_probe 增加 vol_cons/wt/winding_ok/outward 输出。
box_000_none 体积 0→4.080、box_007_rotate 0→800.000,test_cube 保持
1000000 无回归。新增 3 项单测(共 13 项通过)。

验证:test_brep 30 通过、test_serializer 8 通过、test_mesh_repair 13 通过,
GetDiagnostics 无错误。
2026-09-10 22:21:09 +08:00
hm 1a78e8e191 fix: comprehensive test fixes and implementation bugs
Build system: fix VDE_BUILD_TYPE, MinGW big-obj, cross-platform temp dir
Core fixes: Matrix4D inverse, ExactPredicates sign, GJK overflow, VdeFormat weights, VRML/Collada IO
Test fixes: ObjectPool, Transaction paths, /tmp replacement, Matrix4D expectations
Result: 292/295 fast tests pass (99%)
2026-08-04 06:44:53 +08:00
茂之钳 4eb4f00c57 test: max coverage — 10 new + 11 expanded test files, 140+ cases
Build & Test / build-and-test (push) Has been cancelled
VDE Build & Test / build-and-test (push) Has been cancelled
Build & Test / python-bindings (push) Has been cancelled
New tests: plane/line/topology_compression/serializer/memory_pool/
  interval/format_utils/sat/ray_intersect/tri_intersect
Expanded: quality_feedback/gdt/validate/interference/motion/
  explode/convex_hull/distance/polygon/transaction/sdf

Total test files: 162 → 172 (+10)
2026-08-02 16:32:36 +08:00