code wiki / (root) / nx_clipcap_lib.nx

nx_clipcap_lib.nx

buildroot/runtime/nx_clipcap_lib.nx

2334 B58 linesdepth 2pulls 4 transitivereach 3 importersview sourcekind library
docsdependenciesstructsconstsfunctions

about

nx_clipcap_lib.nx -- THE TORSO-CAPSULE DEFINITION (shared ruler geometry). Extracted 2026-08-13 when the SECOND consumer appeared: nx_dance_emit's capsule-clearance pass must avoid EXACTLY the capsule nx_clipcheck measures. Two derivations would be the twin-ruler defect -- a corrector and a judge that disagree manufacture unfixable REDs. ONE definition: a vertical capsule at the spine-band centroid (joints within CC_MAGIC_3000 of the bind midline laterally), z-span 40..80 permil of bind stature, radius CC_TORSO_R; limb points carry CC_LIMB_R; eligibility margin CC_GRACE. license_tier: ORIGINAL No hw writes (Rule 26).

dependencies 2 imports · 2 importers

nx_syscalls.nx nx_vecmath.nx nx_clipcap_lib.nx nx_clipcheck.nx nx_dance_emit.nx

imports: nx_syscalls.nxnx_vecmath.nx

imported by: nx_clipcheck.nxnx_dance_emit.nx

structs

none

consts

13const CC_TORSO_R: i64 = 11000 // 110mm in 0.01mm units
14const CC_LIMB_R: i64 = 3000 // 30mm
15const CC_GRACE: i64 = 2000 // 20mm eligibility margin
16const CC_MAGIC_3000: i64 = 3000 // spine-band lateral half-width (30mm)

functions

18func cc_isqrt(v: i64) -> i64 { return vm_isqrt(v) }
called by 1: cc_pseg calls 1: vm_isqrt
20func cc_pseg(px: i64, py: i64, pz: i64, ax: i64, ay: i64, z1: i64, z2: i64) -> i64
30func cc_axis_skel(W: *i64, sow: i64, AX: *i64) -> i64