code wiki / (root) / nx_underridge_gel_gate.nx

nx_underridge_gel_gate.nx

buildroot/runtime/nx_underridge_gel_gate.nx

5665 B109 linesdepth 8pulls 19 transitivereach 0 importersview sourcekind gate/prooftopic underridge
docsdependenciesstructsconstsfunctions

about

nx_underridge_gel_gate.nx -- GATE for the gel-delivery hook (the "really powerful vs black biofilm" rung): 3 feed holes (5mm) through the pocket floor so descaling gel can be injected behind the pad and DWELL at the rim. The feature is proven by an exact SDF field count (res- independent, cheap, robust); meshing is done at modest res for the STL artifact. T1 gel feature PRESENT: inside-count(gel hook) < inside-count(plain hook) (feed holes cut material). T2 the gel hook meshes (valid, tri count reported). T3 closure: the gel build still produces a closed part (mesh-level edge check, low res). T4 STL written to web_assets/underridge_cleaner_hook_gel.stl + round-trips. T5 NEVER-BRICK (#26). Never-break is unchanged (plate holes don't touch the sacrificial neck NB4 or the pad-proud rule NB1) -> nx_underridge_nevergate 2/2 still applies. expect_exit: 0 license_tier: ORIGINAL

dependencies 8 imports · 0 importers

nx_syscalls.nx nx_mesh.nx nx_mesh_print_check.nx nx_sdf.nx nx_csg_scene.nx nx_underridge_cleaner.nx nx_stl_write.nx nx_stl.nx nx_underridge_gel_gate.nx

imports: nx_syscalls.nxnx_mesh.nxnx_mesh_print_check.nxnx_sdf.nxnx_csg_scene.nxnx_underridge_cleaner.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_csg_scene_count_inside 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 nx_uc_build_hook nx_uc_heel_x nx_uc_heel_z nx_csg_scene_new sys_mmap ↻ nx_csg_scene_add_rot nx_csg_scene_add nx_sdf_make4 sys_mmap ↻ nx_sdf_make sys_mmap ↻ nx_csg_scene_add ↻ nx_uc_build_hook_gel nx_uc_heel_x ↻ nx_uc_heel_z ↻ nx_uc_build_hook ↻ nx_csg_scene_add_rot ↻ nx_sdf_make ↻

structs

none

consts

24const M: i64 = 16384

functions

21func 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
22func 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
26func edge_has_partner(m: *NxMesh, a: i64, b: i64, self_tri: i64) -> i64
called by 1: watertight
42func watertight(m: *NxMesh) -> i64
61func main() -> i64