code wiki / (root) / nx_mmdev.nx

nx_mmdev.nx

buildroot/runtime/nx_mmdev.nx

3003 B58 linesdepth 4pulls 7 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_mmdev.nx -- CLI for the millimetre surface-deviation ruler (PG4, procgen.plan, 2026-08-24). nx_mmdev <ours.nxmesh> <reference.nxmesh> -> JSON, both directions, units are TENTHS of a millimetre. Exit 0 measured / 2 usage / 3 unreadable / 4 REFUSED extent bound (a subject over 2.5 m would overflow the integer point-triangle test, and the ruler declines rather than reporting garbage) / 5 empty mesh. Thin main: every function lives in nx_mmdev_lib so nx_mmdev_gate composes it in-process. license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_itoa_lib.nx nx_mmdev_lib.nx nx_mmdev.nx

imports: nx_syscalls.nxnx_itoa_lib.nxnx_mmdev_lib.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main mm_w sys_write sys_mmap nxa_die sys_write ↻ sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_munmap sys_close md_res sys_mmap ↻ md_measure sys_mmap ↻ md_grid_build nm_ntris nm_u32 nm_tri_base nm_nlayers nm_u32 ↻ sys_mmap ↻ nm_coord vm_f32_to_int nm_u32 ↻ md_cell_of

structs

none

consts

none

functions

12func mm_w(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
called by 3: mm_kvmm_dirmain calls 1: sys_write
13func mm_kv(k: *u8, v: i64, last: i64) -> i64
called by 2: mm_dirmain calls 2: mm_wnxi_out
18func mm_dir(tag: *u8, res: *i64) -> i64
called by 1: main calls 3: mm_wmm_kvmd_mean
31func main(argc: i64, argv: *i64) -> i64