code wiki / _hdl_build / nx_t2mesh_gate.nx

nx_t2mesh_gate.nx

buildroot/runtime/_hdl_build/nx_t2mesh_gate.nx

6000 B111 linesdepth 4pulls 6 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_t2mesh_gate.nx -- prove the t2mesh GENERATOR emits MANY different objects from text (not hand-crafted). T1 each prompt -> a valid CLOSED mesh (F~=2V). T2 different prompts -> DIFFERENT geometry (>=6 distinct vert counts of 8 = the generator actually varies, not one blob). T3 'person' -> the pioneer benchmark body. Writes knowledge/t2m_*.stl (the EMITTED objects). GREEN = the ecosystem EMITS objects from prompts. license_tier: ORIGINAL expect_exit: 0

dependencies 4 imports · 0 importers

nx_syscalls.nx nx_sdfrender.nx nx_meshgen.nx nx_t2mesh.nx nx_t2mesh_gate.nx

imports: nx_syscalls.nxnx_sdfrender.nxnx_meshgen.nxnx_t2mesh.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 hw sys_write emit_one t2m_prompt t2m_gen t2m_set t2m_conf sdf_clear_ops sdf_body sdf_clear_ops ↻ sdf_set_floor sdf_set_mtx_amp sdf_set_kb t2m_id_of t2m_has t2m_id_of ↻ mg_build mg_sample_sdf mg_fi sdf_eval sdf_ellip sdf_isqrt sdf_ellip_rot sdf_isqrt ↻ sdf_smax sdf_smin sdf_smin ↻ mg_wc mg_step mg_extract mg_step ↻ mg_fi ↻ mg_wc ↻ mg_ci hw ↻ t2m_name pn

structs

none

consts

none

functions

11func 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 2: emit_onemain calls 1: sys_write
12func 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
13func pn(v: i64) -> i64
called by 2: emit_onemain calls 2: sys_mmapsys_write
24func stlnum(fd: i64, v: i64) -> i64
called by 1: wstl calls 2: sys_mmapsys_write
34func wstl(vbuf: *i64, fbuf: *i64, nf: i64, path: *u8) -> i64
53func emit_one(base: i64, F: *i64, cv: *i64, vb: *i64, fb: *i64, out: *i64, prompt: *u8, stl: *u8, failp: *i64) -> i64
68func main() -> i64