nx_stl_write_mesh_test.nx
buildroot/runtime/nx_stl_write_mesh_test.nx
about
nx_stl_write_mesh_test.nx -- KAT gate: the GENERAL mesh exporter writes an
ARBITRARY NxMesh to binary STL that the existing reader/slicer pipeline accepts.
Proves (a) cube parity with the hardcoded writer, (b) Q14->f32->Q14 units survive
EXACTLY end-to-end (10mm corner comes back as 163840 Q14), (c) a NON-cube mesh
(quad) also round-trips -> the seam is general, not cube-special. expect_exit: 0.
dependencies 6 imports · 0 importers
imports: nx_syscalls.nxnx_le.nxnx_f32_encode.nxnx_mesh.nxnx_stl_write.nxnx_stl.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| none |
functions
| 14 | func w(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 15 | func wn(v: i64) -> i64 |
| 24 | func chk(cond: i64, pass: *i64, fail: *i64, label: *u8) -> i64 |
| 29 | func eqi(a: i64, b: i64) -> i64 { if a == b { return 1 } return 0 } called by 1: main |
| 31 | func max_abs_coord(m: *NxMesh) -> i64 |
| 46 | func main() -> i64 |