code wiki / (root) / nx_nxa_garment.nx

nx_nxa_garment.nx

buildroot/runtime/nx_nxa_garment.nx

9686 B252 linesdepth 7pulls 10 transitivereach 0 importersview sourcekind tooltopic nxa
docsdependenciesstructsconstsfunctions

about

nx_nxa_garment.nx -- FITTED GARMENT GENERATOR (SOTA garment rung): builds a dress mesh fitted to the character BY MEASUREMENT (per-row body cross-section radii sampled from VERT + ease margin -- tooling, per-character, no hand constants beyond the ease profile), from underbust to mid-thigh with hem flare. Appends GVRT (rest verts, mesh space), GTRI, GPIN (top-ring verts pinned; viewer binds pins to the chest frame). The viewer sims it with general edge-list XPBD -- the same machinery future GarmentCode ingests will use. usage: nx_nxa_garment <in.nxa> <out.nxa> rc: 0 ok, 2 usage, 5 bad nxa, 9 io license_tier: ORIGINAL

dependencies 4 imports · 0 importers

nx_syscalls.nx nx_nxa.nx nx_itrig.nx nx_gm_cloth_lib.nx nx_nxa_garment.nx

imports: nx_syscalls.nxnx_nxa.nxnx_itrig.nxnx_gm_cloth_lib.nx

imported by: nobody (leaf or entry point)

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

main gs_eq sys_mmap nxa_die sys_write sys_exit nxa_lock_take nxa_lock_addr sys_write ↻ nxa_lock_give nxa_lock_addr ↻ nxa_report_overrun sys_write ↻ nxa_dump_printable sys_write ↻ nxa_dump_sizes sys_write ↻ gm_dist gm_isqrt gm_xpbd_step_banked gm_xpbd_step st_alpha_tilde st_div_r gm_isqrt ↻ gw9 sys_write ↻ gn9 sys_mmap ↻ sys_write ↻ sys_map_file sys_openat_rd sys_lseek sys_close nxa_find nxa_section_entry nxa_magic nxa_check2 nxa_tag4 it_cos4096 it_sin4096

structs

none

consts

14const K_MAGIC_4611686018427387903: i64 = 4611686018427387903
15const K_MAGIC_4096: i64 = 4096
16const K_MAGIC_100000000: i64 = 100000000
17const K_MAGIC_65536: i64 = 65536
19const GU: i64 = 36 // columns around the body
20const GV: i64 = 18 // rows above-bust..hem (one-layer strapless dress)

functions

22func gw9(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
23func gn9(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
35func gs_eq(a: *u8, b: *u8) -> i64
called by 1: main
42func main(argc: i64, argv: *i64) -> i64