nx_autorig_mesh_gate.nx
buildroot/runtime/nx_autorig_mesh_gate.nx
about
nx_autorig_mesh_gate.nx -- proves the one-call auto-rig is FAITHFUL, not a new arithmetic. A bare prism goes
through nx_autorig_mesh in one call and, SEPARATELY, through cs_run then bh_run by hand; the two skeletons and
the two skinned rigs must be BYTE-IDENTICAL, so this organ only adds an entry point. It also proves the one
call actually produced a rig (VERT+TRIS+SKEL+SKIN, weights summing to the NXA 4096 at every vertex -- the
anti-vacuity tooth: a no-op that copied the mesh would carry no SKIN) and that a volumeless sheet is refused
by name at the skeleton stage. SUBJECT: nx_autorig_mesh via amesh_run, in-process.
license_tier: ORIGINAL expect_exit: 0
dependencies 4 imports · 0 importers
imports: nx_syscalls.nxnx_gate_verdict.nxnx_nxa.nxnx_autorig_mesh.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
| 13 | const MG_DIR: *u8 = "/tmp/nx_autorig_mesh_gate" |
| 14 | const MG_MODE_DIR: i64 = 493 |
| 15 | const MG_AROUND: i64 = 4 |
| 16 | const MG_LEN: i64 = 6000 |
| 17 | const MG_RINGS: i64 = 61 |
| 18 | const MG_R: i64 = 300 |
| 19 | const MG_CELLS: i64 = 64 |
| 20 | const MG_VCAP: i64 = 2048 |
| 21 | const MG_TCAP: i64 = 8192 |
| 22 | const MG_SKIN_SUM: i64 = 4096 |
| 23 | const MG_SHEET_N: i64 = 8 // an 8x8 flat grid in z=0: triangulated, zero volume, cs must refuse it |
functions
| 25 | func mgw(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 26 | func mg_ring_xy(k: i64, r: i64, out: *i64) -> i64 called by 1: mg_prism |
| 33 | func mg_tri(tris: *i64, st: *i64, a: i64, b: i64, c: i64) -> i64 |
| 39 | func mg_prism(vert: *i64, tris: *i64, st: *i64) -> i64 |
| 82 | func mg_sheet(vert: *i64, tris: *i64, st: *i64) -> i64 |
| 109 | func mg_write(path: *u8, vert: *i64, tris: *i64, st: *i64) -> i64 |
| 118 | func mg_open(path: *u8, lp: *i64) -> i64 |
| 123 | func mg_files_equal(pa: *u8, pb: *u8) -> i64 |
| 136 | func mg_skin_badsum(b: *u8, flen: i64) -> i64 |
| 153 | func mg_has(b: *u8, flen: i64, tag: *u8) -> i64 { if nxa_find(b, flen, nxa_tag4(tag)) >= 0 { return 1 } return 0 } |
| 155 | func main() -> i64 |
| 216 | func hw_num_line(v: i64) -> i64 { mgw(" value=" as *u8); gv_num(v); mgw("\n" as *u8); return 0 } |