code wiki / _hdl_build / nx_mesh3_gate.nx
nx_mesh3_gate.nx
buildroot/runtime/_hdl_build/nx_mesh3_gate.nx
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
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
structs
| none |
consts
| none |
functions
| 12 | 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 } |
| 13 | func pn(v: i64) -> i64 |
| 26 | func main() -> i64 |