code wiki / (root) / nx_underridge_cleaner_gate.nx

nx_underridge_cleaner_gate.nx

buildroot/runtime/nx_underridge_cleaner_gate.nx

6503 B117 linesdepth 9pulls 25 transitivereach 0 importersview sourcekind gate/prooftopic underridge
docsdependenciesstructsconstsfunctions

about

nx_underridge_cleaner_gate.nx -- GATE: the under-ridge cleaner is GENERATED OUT OF THE TEAM (sovereign N-primitive CSG) into a real, printable, dimensionally-correct STL. T1 the 7-feature part meshes: tris>0 + nx_mesh_validate OK. T2 DIMENSIONS are real-world correct: bbox ~ 120 x 36 x 6 mm (X -82.5..+37.5, Z 0..6). T3 features removed material: solid-plate inside-count > full-part inside-count. T4 STL WRITTEN to web_assets/underridge_cleaner_v1.stl + round-trips through the reader. T5 WATERTIGHT: a mid-plate slice has n_open=0 and >=3 closed loops (outline + slots/holes). T6 NEVER-BRICK (#26): pure-integer pipeline; zero hardware-state writes. T7 LIAR-KILL: removing strap slot A restores material (geometry tracks real parameters). expect_exit: 0 license_tier: ORIGINAL

dependencies 12 imports · 0 importers

nx_syscalls.nx nx_mesh.nx nx_mesh_edit.nx nx_mesh_print_check.nx nx_sdf.nx nx_csg_scene.nx nx_underridge_cleaner.nx nx_bvh.nx nx_slice_plane.nx nx_slice_contour.nx nx_underridge_cleaner_gate.nx

diagram shows first 10 each side; +2 more imports, +0 more importers in the complete lists below.

imports: nx_syscalls.nxnx_mesh.nxnx_mesh_edit.nxnx_mesh_print_check.nxnx_sdf.nxnx_csg_scene.nxnx_underridge_cleaner.nxnx_bvh.nxnx_slice_plane.nxnx_slice_contour.nxnx_stl_write.nxnx_stl.nx

imported by: nobody (leaf or entry point)

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

main gw sys_write nx_uc_mesh nx_uc_build nx_csg_scene_new sys_mmap nx_csg_scene_add nx_sdf_make4 sys_mmap ↻ nx_sdf_make sys_mmap ↻ 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 nx_uc_lox

structs

none

consts

27const M: i64 = 16384

functions

24func gw(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 }
called by 1: main calls 1: sys_write
25func gn(v: i64) -> i64 { let b: *u8=sys_mmap(28); var m: i64=v; if m<0{sys_write(1,"-\x00" as *u8,1);m=0-m} let t: *u8=sys_mmap(28); var k: i64=0; if m==0{t[0]=48 as u8;k=1} while m>0{t[k]=(48+(m%10)) as u8;m=m/10;k=k+1} var i: i64=0; while i<k{b[i]=t[k-1-i];i=i+1} sys_write(1,b,k); return 0 }
called by 1: main calls 2: sys_mmapsys_write
30func count_part(s: *NxCsgScene) -> i64
called by 1: main calls 1: nx_csg_scene_count_inside
34func main() -> i64