code wiki / _hdl_build / nx_detail_gate.nx
nx_detail_gate.nx
buildroot/runtime/_hdl_build/nx_detail_gate.nx
about
nx_detail_gate.nx -- gate for the DETAIL ARCHITECTURE (subdiv+displacement engine + anatomy registry).
T1 SUBDIVISION exact: box 8v/12t -> L1 26v/48t -> L2 98v/192t (midpoint dedup = watertight, counts PROVE it)
T2 DETAIL FIELD: displace L2 with a bump field (density 96/256, amp 40) -> bumped-vert count in the
binomial ballpark, every bump ALONG the normal, magnitude <= amp
T3 CRACK-FREE LAW: displacing the SAME geometry twice (same seed) -> byte-identical; different seed -> differs
T4 ANATOMY REGISTRY: rows for nipple/areola/MONTGOMERY-GLANDS/vulva/clitoris/anus/pubic-hair; NXA1 pack
round-trips byte-exact; corrupt magic REJECTED (anatomy packs = mod-economy content)
T5 STL: the subdivided+displaced mesh exports STL (9684B for 192 tris) -- detail geometry is PRINTABLE too
license_tier: ORIGINAL expect_exit: 0
dependencies 4 imports · 0 importers
imports: nx_syscalls.nxnx_mesh3.nxnx_subdiv.nxnx_anatomy.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
| 15 | 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 } |
| 16 | func pn(v: i64) -> i64 |
| 28 | func meshsum(mesh: i64) -> i64 |
| 42 | func main() -> i64 |