code wiki / (root) / nx_nxa_garment.nx

nx_nxa_garment.nx

buildroot/runtime/nx_nxa_garment.nx

8220 B220 linesdepth 2pulls 4 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 3 imports · 0 importers

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

imports: nx_syscalls.nxnx_nxa.nxnx_itrig.nx

imported by: nobody (leaf or entry point)

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

main gw9 sys_write sys_mmap sys_map_file sys_openat_rd sys_lseek sys_close nxa_find nxa_magic nxa_check2 nxa_tag4 gn9 sys_mmap ↻ sys_write ↻ it_cos4096 it_sin4096 it_sin4096 ↻ nxa_check2 ↻ nxa_magic ↻ sys_openat_wr sys_write ↻ sys_close ↻

structs

none

consts

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

functions

21func 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
22func gn9(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
34func main(argc: i64, argv: *i64) -> i64