code wiki / _hdl_build / nx_stl_view_demo.nx
nx_stl_view_demo.nx
buildroot/runtime/_hdl_build/nx_stl_view_demo.nx
about
nx_stl_view_demo.nx -- emit a REAL openable .html artifact (not a test): builds an octahedron
STL (8 triangles, a stand-in for a statue mesh) and writes the sovereign viewer to
/tmp/nishi_stl_view.html. Open it in any browser to orbit/zoom the model. Proves the
STL -> "see the CAD" path end to end on a multi-triangle solid. license_tier: ORIGINAL
dependencies 3 imports · 0 importers
imports: nx_stl_view_html.nxnx_fab_slice.nxnx_syscalls.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
| 8 | const K_MAGIC_65536: i64 = 65536 |
| 9 | const K_MAGIC_16777216: i64 = 16777216 |
| 10 | const K_MAGIC_1101004800: i64 = 1101004800 |
| 11 | const K_MAGIC_3248488448: i64 = 3248488448 |
| 12 | const K_MAGIC_2048: i64 = 2048 |
| 13 | const K_MAGIC_262144: i64 = 262144 |
functions
| 15 | func dm_w32(b: *u8, off: i64, v: i64) -> i64 |
| 20 | func dm_setv(stl: *u8, tri: i64, vtx: i64, xb: i64, yb: i64, zb: i64) -> i64 |
| 26 | func main() -> i64 |