nx_cad_page.nx
buildroot/runtime/nx_cad_page.nx
about
nx_cad_page.nx -- EMIT the live nishifamily.com/cad page for Nishi CAD.
Self-contained: imports the sovereign CAD/DCC organs, AUTHORS three real solids
(parametric cylinder, parametric box, sculpted icosphere), bakes their actual
geometry into the page, runs the model->print pipeline + the measured-exceed
checks AT RENDER TIME, and renders an interactive zero-dependency 3D viewer (no
WebGL, no libraries) plus the honest measured census. No HTML/JS number is
typed by hand -- the organ computes them. Publish is the separate sovereign
step nx_aw_push. license_tier: ORIGINAL
genealogy_id: nishi_cad_live_page
lineage_id: nx_cad_page_v1
dependencies 14 imports · 0 importers
diagram shows first 10 each side; +4 more imports, +0 more importers in the complete lists below.
imports: nx_syscalls.nxnx_mesh.nxnx_mesh_edit.nxnx_mesh_sculpt.nxnx_cad.nxnx_sdf.nxnx_csg.nxnx_cad_exceed.nxnx_stl_write.nxnx_stl.nxnx_machine_graph.nxnx_material_profile.nxnx_gcode_emit.nxnx_slice_pipeline.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
| 27 | const CAD_MAGIC_163840: i64 = 163840 |
| 28 | const CAD_MAGIC_327680: i64 = 327680 |
| 29 | const CAD_MAGIC_245760: i64 = 245760 |
| 30 | const CAD_MAGIC_81920: i64 = 81920 |
| 31 | const CAD_MAGIC_49152: i64 = 49152 |
| 32 | const CAD_MAGIC_98304: i64 = 98304 |
| 33 | const CAD_MAGIC_65536: i64 = 65536 |
| 34 | const CAD_MAGIC_3277: i64 = 3277 |
| 35 | const CAD_MAGIC_6554: i64 = 6554 |
| 36 | const CAD_MAGIC_4194304: i64 = 4194304 |
| 38 | const CAD_OUT: *u8 = "web_assets/cad.html" |
| 39 | const CAD_CAP: i64 = 2097152 |
functions
| 41 | func cat(dst: *u8, off: i64, s: *u8) -> i64 |
| 47 | func catn(dst: *u8, off: i64, v: i64) -> i64 |
| 60 | func emit_mesh_js(h: *u8, off: i64, m: *NxMesh, name: *u8) -> i64 |
| 84 | func smoke_count(buf: *u8, len: i64, needle: *u8) -> i64 called by 1: main |
| 97 | func emit_grade(h: *u8, off: i64, ok: i64) -> i64 |
| 104 | func main() -> i64 |