nx_modelfacts.nx
buildroot/runtime/nx_modelfacts.nx
about
nx_modelfacts.nx -- CLI for 3D model fact extraction into the refcorpus measured-facts plane.
nx_modelfacts probe <file>
nx_modelfacts sweep <listfile> <source> <provenance> <license> [put]
The nx_mediafacts pattern applied to the model classes (GLB/STL/OBJ/PLY): bounded window read
+ a DRAIN pass so the true file size is known (binary STL detection and truncation honesty
both need it), closed fact vocabulary, distribution rows through rc_put_row in-process so the
k-anonymity floor physically gates what reaches the journal.
license_tier: ORIGINAL No hw writes (Rule 26). expect_exit: 0
dependencies 4 imports · 0 importers
imports: nx_syscalls.nxnx_modelfacts_lib.nxnx_mediafacts_lib.nxnx_refcorpus.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
| 15 | const MDLC_MAGIC_65536: i64 = 65536 |
| 17 | const MDLC_WINDOW: i64 = 4194304 |
| 18 | const MDLC_MAX_FILES: i64 = 4096 |
| 19 | const MDLC_PATH_MAX: i64 = 384 |
functions
| 21 | func mdlc_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } |
| 22 | func mdlc_w(s: *u8) -> i64 { sys_write(1, s, mdlc_slen(s)); return 0 } |
| 23 | func mdlc_e(s: *u8) -> i64 { sys_write(2, s, mdlc_slen(s)); return 0 } |
| 24 | func mdlc_num(v: i64) -> i64 |
| 37 | func mdlc_itoa(v: i64, out: *u8) -> i64 |
| 50 | func mdlc_fmtname(f: i64) -> *u8 |
| 60 | func mdlc_read(path: *u8, buf: *u8, sizebox: *i64) -> i64 |
| 82 | func mdlc_print_probe(facts: *i64) -> i64 |
| 97 | func mdlc_row(fmt: i64, metric: *u8, val: i64, unit: *u8, cnt: i64, src: *u8, prov: *u8, lic: *u8, do_put: i64, wrote: *i64) -> i64 |
| 118 | func mdlc_mmm(fmt: i64, base: *u8, arr: *i64, cnt: i64, unit: *u8, src: *u8, prov: *u8, lic: *u8, do_put: i64, wrote: *i64) -> i64 |
| 145 | func main(argc: i64, argv: *i64) -> i64 |