code wiki / _hdl_build / nx_mesh3_gate.nx

nx_mesh3_gate.nx

buildroot/runtime/_hdl_build/nx_mesh3_gate.nx

5543 B124 linesdepth 3pulls 4 transitivereach 0 importersview sourcekind gate/proof
docsdependenciesstructsconstsfunctions

about

nx_mesh3_gate.nx -- gate for the SHARED tri-mesh + STL interchange (the real3d connective-tissue rung). T1 box(12 tris) -> BINARY STL on disk: exact size 84+12*50, branded header, count field == 12 (raw re-read) T2 read-back: 12 tris, verts DEDUPLICATED to exactly 8, every coordinate BIT-IDENTICAL (fx256<->f32 exact) T3 AABB exact T4 slice-z (the print primitive): mid-height cut = 8 crossing segments (4 sides x 2 tris); above-top = 0 T5 determinism: write->read->write again -> the two STL FILES byte-identical The artifact knowledge/nx_mesh3_box.stl is REAL interchange: any slicer/CAD tool can open it. license_tier: ORIGINAL expect_exit: 0

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_mesh3.nx nx_mesh3_gate.nx

imports: nx_syscalls.nxnx_mesh3.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 m3_bytes m3_init m3_hdr m3_box m3_add_vert m3_hdr ↻ m3_vert m3_add_tri m3_hdr ↻ m3_tri m3_write_stl m3_hdr ↻ sys_mmap ↻ m3_w32 m3_tri ↻ m3_vert ↻ m3_fx_to_f32 f32_div f32_of sys_openat_wr sys_write sys_close sys_openat_rd sys_read sys_close ↻ hw sys_write ↻ pn sys_mmap ↻ sys_write ↻ m3_read_stl m3_init ↻ sys_openat_rd ↻ sys_mmap ↻ sys_read ↻ sys_close ↻ m3_r32 m3_f32_to_fx

structs

none

consts

none

functions

12func 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
13func pn(v: i64) -> i64
called by 1: main calls 2: sys_mmapsys_write
26func main() -> i64