code wiki / _hdl_build / nx_anthro_gate.nx

nx_anthro_gate.nx

buildroot/runtime/_hdl_build/nx_anthro_gate.nx

7792 B154 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_anthro_gate.nx -- ★Q4 ANATOMY REFERENCE PASS (operator reality audit: "the multi-layered person has no anatomical correctness in an IRL situation"). This gate MEASURES the being's proportions FROM ITS SDF (execution- level -- what is actually there, not what the part table claims) and grades them against the BANKED anthropometric canon (knowledge/anthropometry_banked.txt, fetched from the artistic-anatomy/anthropometry reference 2026-07-12): stature = 7.5 head-heights +-8% | legs (sole->crotch) 0.47..0.53 of stature | arm ~0.40 of stature +-8% shoulder/hip halfwidth 1.08..1.30 (men 1.18) | fingertips at mid-thigh when arms hang T1 bank present. T2 the measurements (printed -- the tape measure). T3 the canon verdicts. T4 determinism. license_tier: ORIGINAL expect_exit: 0

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_bodyatlas.nx nx_anthro_gate.nx

imports: nx_syscalls.nxnx_bodyatlas.nx

imported by: nobody (leaf or entry point)

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

main hw sys_write sys_mmap sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close pn sys_mmap ↻ sys_write ↻ atlas_hand_curl atlas_build ba_add sys_mmap ↻ ba_axis_x ba_ax_defaults ba_is_arm ba_is_leg ba_axis_y ba_ax_defaults ↻ ba_is_arm ↻ ba_knee_y ba_ax_defaults ↻ ba_max it_sin4096 it_cos4096 it_sin4096 ↻ ba_rig_setup sys_mmap ↻ ba_ax_defaults ↻ ba_nin atlas_sync_pose it_sin4096 ↻ it_cos4096 ↻ sys_mmap ↻ ba_fwd_fk atlas_pose

structs

none

consts

none

functions

12func hw(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 1: main calls 1: sys_write
13func pn(v: i64) -> i64 { let b: *u8=sys_mmap(32) as *u8; var x: i64=v; var ng: i64=0; if x<0{ng=1;x=0-x} var i: i64=31; if x==0{b[i]=48 as u8;i=i-1} while x>0{b[i]=(48+x%10) as u8;x=x/10;i=i-1} if ng==1{b[i]=45 as u8;i=i-1} sys_write(1,(b as i64+i+1) as *u8,31-i); return 0 }
called by 1: main calls 2: sys_mmapsys_write
16func scan_down(x: i64, z: i64, yhi: i64, ylo: i64) -> i64
called by 1: main calls 1: ba_sdf
25func scan_up(x: i64, z: i64, ylo: i64, yhi: i64) -> i64
called by 1: main calls 1: ba_sdf
34func halfwidth_at(y: i64, lim: i64) -> i64
called by 1: main calls 1: ba_sdf
44func main() -> i64