Commit Graph

5 Commits

Author SHA1 Message Date
e5f742680e bvh_geometry_check: catch NaN leaf bounds, infinite-bound override tolerance blow-up, invalid --geom, and strict JSON (BVH-GEOMETRY-CHECK-NAN-INF-GEOM) 2026-11-25 01:05:53 +01:00
99d799a648 Publish BVH geometry reports atomically (#6615)
Squash-merged after diff review of PR #6615
2026-11-23 11:15:25 -06:00
09a3c58e2d Guard bvh_geometry_check JSON output against input aliases 2026-11-22 23:03:38 +01:00
3557964e2f bvh_geometry_check: set errors="replace" on stdout, as every CLI tool must
A redirected stdout on Windows is encoded with the console's ANSI code page, and `python -I` ignores
PYTHONUTF8, so a path outside that code page ended the run. tests/test_tool_stdout_encoding.py
requires the guard in every tool's __main__ block, and it fails on this branch without it.

Synthetic data only; no game files.
2026-11-22 18:48:57 +01:00
7b5ac4d929 tools/bvh_geometry_check.py: check a rehydration's geometry against what the BLAS stores
Bounds (leaves inside and equal to sceneBounds in the leaf frame), stored box overrides (inside the rehydrated slot and no looser, within 4 float32 ulps), paired leaves sharing an edge in the index buffer (position-free) and the internal box area as a tie-break, from docs/bvh.md §4a. On the 8 local samples the right geometry passes everything and a wrong decode fails. Six synthetic tests.
2026-11-22 18:48:56 +01:00