code wiki / _hdl_build / nx_stl_view_demo.nx

nx_stl_view_demo.nx

buildroot/runtime/_hdl_build/nx_stl_view_demo.nx

2926 B57 linesdepth 4pulls 4 transitivereach 0 importersview sourcekind sketch/demotopic stl
docsdependenciesstructsconstsfunctions

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

nx_stl_view_html.nx nx_fab_slice.nx nx_syscalls.nx nx_stl_view_demo.nx

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

main sys_mmap dm_w32 dm_setv dm_w32 ↻ nx_stl_view_emit fstl_tri_count fab_u32le sv_cat sv_cati sys_mmap ↻ sv_emit_geometry sv_catmm sv_cati ↻ fstl_vert_um ff32_to_um fab_pow2 fab_u32le ↻ sys_openat_wr sys_write sys_exit sys_close

structs

none

consts

8const K_MAGIC_65536: i64 = 65536
9const K_MAGIC_16777216: i64 = 16777216
10const K_MAGIC_1101004800: i64 = 1101004800
11const K_MAGIC_3248488448: i64 = 3248488448
12const K_MAGIC_2048: i64 = 2048
13const K_MAGIC_262144: i64 = 262144

functions

15func dm_w32(b: *u8, off: i64, v: i64) -> i64
called by 2: dm_setvmain
20func dm_setv(stl: *u8, tri: i64, vtx: i64, xb: i64, yb: i64, zb: i64) -> i64
called by 1: main calls 1: dm_w32
26func main() -> i64