code wiki / (root) / nx_vessel_emit.nx

nx_vessel_emit.nx

buildroot/runtime/nx_vessel_emit.nx

1762 B61 linesdepth 8pulls 14 transitivereach 0 importersview sourcekind tooltopic vessel
docsdependenciesstructsconstsfunctions

about

nx_vessel_emit.nx -- emit the C1 vessel solid as a printable binary STL. Meshes the CSG scene at a LOW resolution (the under-ridge OOM lesson) and writes web_assets/fermenter_vessel.stl via the sovereign STL writer. Run directly (has main + file I/O), not via nx_smoke.

dependencies 7 imports · 0 importers

nx_syscalls.nx nx_sdf.nx nx_csg.nx nx_csg_scene.nx nx_mesh.nx nx_stl_write.nx nx_vessel_csg.nx nx_vessel_emit.nx

imports: nx_syscalls.nxnx_sdf.nxnx_csg.nxnx_csg_scene.nxnx_mesh.nxnx_stl_write.nxnx_vessel_csg.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main nx_vessel_csg_build nx_sdf_make sys_mmap nx_csg_scene_new sys_mmap ↻ nx_csg_scene_add nx_csg_extract_scene sys_mmap ↻ nx_csg_scene_field nx_csg_scene_eval_i nx_sdf_eval nx_isqrt sdf_max sdf_abs sdf_min nx_cos_turn_q10 sys_mmap ↻ _nx_trig_reduce _nx_cos_q1_table nx_sin_turn_q10 nx_cos_turn_q10 ↻ nx_csg_combine_k nx_csg_combine sdf_min ↻ sdf_max ↻ nx_csg_smin mt_tet mt_cross mt_emit nx_mesh_alloc sys_mmap ↻ nx_mesh_set_vertex nx_mesh_set_triangle sys_mmap ↻ nx_stl_write_mesh nx_le_write_u32 sw_put_mesh_vert nx_le_write_u32 ↻ f32_from_q14

structs

none

consts

none

functions

14func ep_puts(s: *u8) -> i64
called by 1: main calls 1: sys_write
21func ep_putn(v: i64) -> i64
called by 1: main calls 2: sys_writesys_mmap
41func main() -> i64