code wiki / _hdl_build / nx_mechparts_gate.nx
nx_mechparts_gate.nx
buildroot/runtime/_hdl_build/nx_mechparts_gate.nx
about
nx_mechparts_gate.nx -- teeth for the mechanical-primitive library (cadtwin R1b-lite). Builds all 5 as1
part types (hex nut w/ hole, bolt w/ hex head, rod=cylinder, plate, L-bracket) into one scene, asserts each
emits real geometry (verts+tris, watertight-ish edge parity for the closed ones), renders a composite PNG
to EYEBALL realism (knowledge/nx_mechparts.png), and checks determinism. expect_exit: 0 license_tier: ORIGINAL
dependencies 4 imports · 0 importers
imports: nx_mechparts.nxnx_render_core.nxnx_meshrender.nxnx_apng.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 gg_puts(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 gg_putn(v: i64) -> i64 |
| 24 | func gg_tooth(name: *u8, pass: i64, fails: *i64) -> i64 |
| 31 | func gg_chk(fb: *i64, n: i64) -> i64 { var x: i64 = 0; var i: i64 = 0; while i < n { x = x + fb[i] * (1 + (i % 7)); i = i + 1 } return x } called by 1: main |
| 32 | func gg_cover(fb: *i64, n: i64, bg: i64) -> i64 { var k: i64 = 0; var i: i64 = 0; while i < n { if fb[i] != bg { k = k + 1 } i = i + 1 } return k } called by 1: main |
| 34 | func main() -> i64 |