code wiki / (root) / nx_fbx_measure.nx

nx_fbx_measure.nx

buildroot/runtime/nx_fbx_measure.nx

21411 B520 linesdepth 7pulls 9 transitivereach 0 importersview sourcekind tool
docsdependenciesstructsconstsfunctions

about

nx_fbx_measure.nx -- SOVEREIGN body-mesh measurement organ (replaces the node instrument). Reads a binary FBX (7200/7500: node records, zlib'd double/float vertex arrays) OR an ASCII OBJ, finds the largest vertex array (the body), and emits a height-sliced silhouette profile + landmark table (hip/waist/shoulder/head positions and widths as permyriad-of-height). MEASUREMENT ONLY -- no geometry is retained or copied; safe under every CC license variant. The same landmark code measures our EMITTED meshes, closing the 1:1-by-measurement loop. usage: nx_fbx_measure <file.fbx|file.obj> license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_zlib_wrap.nx nx_nxa.nx nx_fbx_measure.nx

imports: nx_syscalls.nxnx_zlib_wrap.nxnx_nxa.nx

imported by: nobody (leaf or entry point)

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

main fmw sys_write sys_mmap sys_map_file sys_openat_rd sys_lseek sys_close fm_obj fmn sys_mmap ↻ sys_write ↻ fm_measure sys_mmap ↻ fmw ↻ fmn ↻ fm_u32 fm_walk fm_u64 fm_u32 ↻ fm_u32 ↻ fm_walk ↻ nx_zlib_inflate sys_mmap ↻ nx_deflate_inflate sys_mmap ↻ nx_bitstream_alloc sys_mmap ↻ _deflate_inflate_block nx_bitstream_read_lsb nx_bitstream_bits_remainin _bs_peek_byte nx_bitstream_byte_align nx_bitstream_read_byte_ali nx_bitstream_byte_align ↻ _deflate_build_static_litl sys_mmap ↻ nx_huffman_build sys_mmap ↻ _deflate_build_static_dist

structs

none

consts

12const FM_MAGIC_2047: i64 = 2047
13const FM_MAGIC_1048575: i64 = 1048575
14const FM_MAGIC_4503599627370496: i64 = 4503599627370496
15const FM_MAGIC_9007199254740992: i64 = 9007199254740992
16const FM_MAGIC_8388607: i64 = 8388607
17const FM_MAGIC_8388608: i64 = 8388608
18const FM_MAGIC_2000000: i64 = 2000000
19const FM_MAGIC_4611686018427387903: i64 = 4611686018427387903
20const FM_MAGIC_10000: i64 = 10000
21const FM_MAGIC_7500: i64 = 7500
22const FM_MAGIC_500000: i64 = 500000
23const FM_MAGIC_4096: i64 = 4096
24const FM_MAGIC_2147483647: i64 = 2147483647
25const FM_MAGIC_4294967296: i64 = 4294967296
27const FM_SLICES: i64 = 40
28const FM_MAXV: i64 = 4000000 // vertex cap (12M i64 mm coords = 96MB)

functions

30func fmw(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: fm_measuremain calls 1: sys_write
31func fmn(v: i64) -> i64
called by 2: fm_measuremain calls 2: sys_mmapsys_write
43func fm_u32(b: *u8, o: i64) -> i64
47func fm_u64(b: *u8, o: i64) -> i64
called by 1: fm_walk calls 1: fm_u32
51func fm_f64_mm(b: *u8, o: i64) -> i64
called by 1: main calls 1: fm_u32
73func fm_f32_mm(b: *u8, o: i64) -> i64
called by 1: main calls 1: fm_u32
89func fm_walk(b: *u8, flen: i64, off0: i64, big: i64, best: *i64) -> i64
called by 2: fm_walkmain calls 3: fm_u64fm_u32fm_walk
193func fm_measure(vx: *i64, n: i64) -> i64
called by 1: main calls 3: sys_mmapfmwfmn
277func fm_obj(b: *u8, flen: i64, vx: *i64) -> i64
called by 1: main
320func main(argc: i64, argv: *i64) -> i64