code wiki / _hdl_build / nx_variant_mesh_gate.nx

nx_variant_mesh_gate.nx

buildroot/runtime/_hdl_build/nx_variant_mesh_gate.nx

6345 B131 linesdepth 4pulls 6 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_variant_mesh_gate.nx -- close the DnD asset loop: bestiary variant TUPLES -> the SAME SDF base -> nx_meshgen surface nets -> WATERTIGHT STL game assets. One recipe system now emits downloadable meshes (person/elf/goblin/hobgoblin/wolf/direwolf), reusable by the game systems and printable. T1 every variant meshes CLOSED (verts>=400, tris ~= 2*verts -- Euler genus-0 band) T2 variant meshes are DISTINCT (>=5 distinct vert counts of 6 -- the swap slots change the geometry) T3 STL files written + non-trivial size Writes knowledge/synth_<variant>.stl. license_tier: ORIGINAL expect_exit: 0

dependencies 4 imports · 0 importers

nx_syscalls.nx nx_sdfrender.nx nx_meshgen.nx nx_assetvariant.nx nx_variant_mesh_gate.nx

imports: nx_syscalls.nxnx_sdfrender.nxnx_meshgen.nxnx_assetvariant.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

13func 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
14func hwf(fd: i64, s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(fd,s,n); return 0 }
called by 1: wstl calls 1: sys_write
15func pn(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
26func stlnum(fd: i64, v: i64) -> i64
called by 1: wstl calls 2: sys_mmapsys_write
36func wstl(vbuf: *i64, fbuf: *i64, nf: i64, path: *u8) -> i64
54func fsize(path: *u8) -> i64
called by 1: main calls 2: sys_mmapsys_read_file
61func main() -> i64