Input data
Editable thresholds are in
$RULES. The main logic is in calculateDCompass(). Plane selection is automatic: midline preperitoneal candidacy requires a complete calculated mesh width ≤10 cm; otherwise the calculator proceeds to retrorectus capacity, unilateral TAR, or bilateral TAR from side-specific anatomy.