code wiki / _hdl_build / nx_meshgen_gate.nx

nx_meshgen_gate.nx

buildroot/runtime/_hdl_build/nx_meshgen_gate.nx

6229 B132 linesdepth 4pulls 5 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_meshgen_gate.nx -- prove the sovereign field->mesh extractor (surface nets) EMITS a valid closed mesh from the pioneer SDF body. T1 emits verts+tris. T2 CLOSED-manifold (F ~= 2V, Euler genus-0). T3 all face indices valid. T4 bounds match the body (tall y-span). T5 manifold vertex usage (>=90% verts used >=3x). T6 writes knowledge/nx_body.stl (the EMITTED mesh, our own code). GREEN = the extractor works -> the bridge from hand-placed SDF to an EMITTED mesh both i2mesh/t2mesh feed. license_tier: ORIGINAL expect_exit: 0

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_sdfrender.nx nx_meshgen.nx nx_meshgen_gate.nx

imports: nx_syscalls.nxnx_sdfrender.nxnx_meshgen.nx

imported by: nobody (leaf or entry point)

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

main sys_mmap sdf_bytes sdf_body sdf_clear_ops sdf_set_floor sdf_set_mtx_amp sdf_set_kb hw sys_write 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 pn sys_mmap ↻ sys_write ↻ iabs write_stl sys_openat_wr hw2 sys_write ↻ stl_num sys_mmap ↻

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 hw2(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: write_stl calls 1: sys_write
12func pn(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
24func iabs(v: i64) -> i64 { if v < 0 { return 0 - v } return v }
called by 1: main
27func stl_num(fd: i64, v: i64) -> i64
called by 1: write_stl calls 2: sys_mmapsys_write
40func write_stl(vbuf: *i64, fbuf: *i64, nf: i64, path: *u8) -> i64
63func main() -> i64