code wiki / _hdl_build / nx_meshgen_gate.nx
nx_meshgen_gate.nx
buildroot/runtime/_hdl_build/nx_meshgen_gate.nx
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
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
structs
| none |
consts
| none |
functions
| 10 | func hw(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 11 | func 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 } |
| 12 | func pn(v: i64) -> i64 |
| 24 | func iabs(v: i64) -> i64 { if v < 0 { return 0 - v } return v } called by 1: main |
| 27 | func stl_num(fd: i64, v: i64) -> i64 |
| 40 | func write_stl(vbuf: *i64, fbuf: *i64, nf: i64, path: *u8) -> i64 |
| 63 | func main() -> i64 |