nx_fbx_measure.nx
buildroot/runtime/nx_fbx_measure.nx
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
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
structs
| none |
consts
| 12 | const FM_MAGIC_2047: i64 = 2047 |
| 13 | const FM_MAGIC_1048575: i64 = 1048575 |
| 14 | const FM_MAGIC_4503599627370496: i64 = 4503599627370496 |
| 15 | const FM_MAGIC_9007199254740992: i64 = 9007199254740992 |
| 16 | const FM_MAGIC_8388607: i64 = 8388607 |
| 17 | const FM_MAGIC_8388608: i64 = 8388608 |
| 18 | const FM_MAGIC_2000000: i64 = 2000000 |
| 19 | const FM_MAGIC_4611686018427387903: i64 = 4611686018427387903 |
| 20 | const FM_MAGIC_10000: i64 = 10000 |
| 21 | const FM_MAGIC_7500: i64 = 7500 |
| 22 | const FM_MAGIC_500000: i64 = 500000 |
| 23 | const FM_MAGIC_4096: i64 = 4096 |
| 24 | const FM_MAGIC_2147483647: i64 = 2147483647 |
| 25 | const FM_MAGIC_4294967296: i64 = 4294967296 |
| 27 | const FM_SLICES: i64 = 40 |
| 28 | const FM_MAXV: i64 = 4000000 // vertex cap (12M i64 mm coords = 96MB) |
functions
| 30 | func fmw(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 31 | func fmn(v: i64) -> i64 |
| 43 | func fm_u32(b: *u8, o: i64) -> i64 |
| 47 | func fm_u64(b: *u8, o: i64) -> i64 |
| 51 | func fm_f64_mm(b: *u8, o: i64) -> i64 |
| 73 | func fm_f32_mm(b: *u8, o: i64) -> i64 |
| 89 | func fm_walk(b: *u8, flen: i64, off0: i64, big: i64, best: *i64) -> i64 |
| 193 | func fm_measure(vx: *i64, n: i64) -> i64 |
| 277 | func fm_obj(b: *u8, flen: i64, vx: *i64) -> i64 called by 1: main |
| 320 | func main(argc: i64, argv: *i64) -> i64 |