mirror of
https://github.com/ajisaacs/OpenNest.git
synced 2026-10-11 17:54:40 -04:00
EmitCandidateForValidation emits exactly one owned contour with its normal lead-in and lead-out and its ORIGINAL contour type — the perimeter keeps External even with no holes before it — through a small shared EmitChosenContours seam, so a perimeter candidate's emitted leads can be validated before the hole choices exist. The probe is a throwaway program: never installed on a Part, never a complete plan. Normal Emit and EmitPrefix keep the perimeter-last gate untouched (still throwing for Emit([perimeter]) on a holed part); foreign and re-stamped choices still fail ownership/geometry validation and source shapes/settings are never used directly. Differential tests pin per-contour block fidelity (External-vs-hole lead geometry, five lead styles, two hole choice/orders, scribes once, reversed winding, rotated capture, circle rounding/clamping without cross-contour state) — contour lead geometry is choice-independent, only absolute accumulated coordinates drift by ulps with program head.