code wiki / _hdl_build / nx_obj_export_gate.nx

nx_obj_export_gate.nx

buildroot/runtime/_hdl_build/nx_obj_export_gate.nx

4931 B103 linesdepth 4pulls 7 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_obj_export_gate.nx -- the bestiary also exports as OBJ+normals (game/DCC-friendly). Meshes 3 variants (human/goblin/wolf) and writes knowledge/synth_<v>.obj, asserting: v-count == mesh verts, vn-count == verts, f-count == tris, and the files are distinct. license_tier: ORIGINAL expect_exit: 0

dependencies 5 imports · 0 importers

nx_syscalls.nx nx_sdfrender.nx nx_meshgen.nx nx_assetvariant.nx nx_obj_export.nx nx_obj_export_gate.nx

imports: nx_syscalls.nxnx_sdfrender.nxnx_meshgen.nxnx_assetvariant.nxnx_obj_export.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 sdf_bytes av_build sys_mmap ↻ av_base_human av_p av_base_wolf av_p ↻ av_base_goblin av_p ↻ av_slot_head av_p ↻ av_slot_ears av_p ↻ av_slot_tail av_p ↻ sdf_clear_ops mg_build mg_sample_sdf mg_fi sdf_eval sdf_ellip sdf_isqrt sdf_ellip_rot sdf_isqrt ↻ sdf_smax sdf_smin sdf_abs sdf_min sdf_smin ↻ mg_wc mg_step mg_extract mg_step ↻ mg_fi ↻ mg_wc ↻ mg_ci

structs

none

consts

none

functions

10func 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
11func pn(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
23func count_prefix(path: *u8, c0: i64, c1: i64) -> i64
called by 1: main calls 2: sys_mmapsys_read_file
40func fsize(path: *u8) -> i64 { let lp: *i64 = sys_mmap(16) as *i64; let b: *u8 = sys_read_file(path, lp); if (b as i64)==0 { return 0 } return lp[0] }
called by 1: main calls 2: sys_mmapsys_read_file
42func main() -> i64