code wiki / (root) / nx_devpaint.nx

nx_devpaint.nx

buildroot/runtime/nx_devpaint.nx

4314 B69 linesdepth 5pulls 8 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_devpaint.nx -- CLI for the derived-scale deviation heatmap (2026-08-26). nx_devpaint <candidate.nxmesh> <reference.nxmesh> <out.nxmesh> Writes the candidate back out with every triangle painted by its distance to the reference surface, and prints the DERIVED colour-scale bounds together with the rule that derived them -- because a heatmap whose scale is not published is a picture nobody can read a number off. Exit 0 painted / 2 usage / 3 unreadable / 4 REFUSED extent bound / 5 empty mesh / 6 unwritable. Thin main: every function lives in nx_devpaint_lib so nx_devpaint_gate composes it IN-PROCESS. license_tier: ORIGINAL

dependencies 4 imports · 0 importers

nx_syscalls.nx nx_itoa_lib.nx nx_nxmesh_lib.nx nx_devpaint_lib.nx nx_devpaint.nx

imports: nx_syscalls.nxnx_itoa_lib.nxnx_nxmesh_lib.nxnx_devpaint_lib.nx

imported by: nobody (leaf or entry point)

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

main dv_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 nm_ntris nm_u32 dp_res sys_mmap ↻ dp_measure sys_mmap ↻ md_grid_build nm_ntris ↻ nm_tri_base nm_nlayers nm_u32 ↻ sys_mmap ↻ nm_coord vm_f32_to_int nm_u32 ↻

structs

none

consts

none

functions

15func dv_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 2: dv_kvmain calls 1: sys_write
16func dv_kv(k: *u8, v: i64, last: i64) -> i64
called by 1: main calls 2: dv_wnxi_out
22func main(argc: i64, argv: *i64) -> i64