CPU reference baker. Brute-forces signed distance at each grid cell using
closestPointOnTri and the closest triangle's face normal for the
sign — same algorithm the WGSL kernel runs, so this is the trusted oracle
for tests. Output is row-major (x fastest, then y, then z).
CPU reference baker. Brute-forces signed distance at each grid cell using closestPointOnTri and the closest triangle's face normal for the sign — same algorithm the WGSL kernel runs, so this is the trusted oracle for tests. Output is row-major (x fastest, then y, then z).