nx_clipcap_lib.nx
buildroot/runtime/nx_clipcap_lib.nx
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
imports: nx_syscalls.nxnx_vecmath.nx
imported by: nx_clipcheck.nxnx_dance_emit.nx
structs
| none |
consts
| 13 | const CC_TORSO_R: i64 = 11000 // 110mm in 0.01mm units |
| 14 | const CC_LIMB_R: i64 = 3000 // 30mm |
| 15 | const CC_GRACE: i64 = 2000 // 20mm eligibility margin |
| 16 | const CC_MAGIC_3000: i64 = 3000 // spine-band lateral half-width (30mm) |
functions
| 18 | func cc_isqrt(v: i64) -> i64 { return vm_isqrt(v) } |
| 20 | func cc_pseg(px: i64, py: i64, pz: i64, ax: i64, ay: i64, z1: i64, z2: i64) -> i64 |
| 30 | func cc_axis_skel(W: *i64, sow: i64, AX: *i64) -> i64 |