Expand Spacing kept the first selected part fixed and stalled on full plates.
- A pair of selected parts now shares each push (later part half, earlier
part the rest, later part any remainder), so no selected part is an anchor.
Both shares run to the full target, so a part between two short gaps no
longer ping-pongs while its partners never move.
- Clamps act like the work-area edge: a part may close on the keep-out but
never enter it, and the clamp gap neither chases the target spacing nor
counts as the achieved spacing. Before, clamps held their full entry gap
and a part resting just above one capped the whole search.
- A part flush on an edge can slide along it again. A push that leaned into
the edge by rounding (parts turned a quarter or half) divided zero room by
a tiny component and pinned every move.
- Faster search with identical layouts: per-part pair lists, clearances
remembered at the positions measured, box-proven clamp pairs skipped,
trial-move gaps measured only up to their threshold, the overlap clipping
run only for outlines that touch, cross or nest, and ring distances
measured at offsets without copying outlines. Clearance gains the bounded
and offset distance used for this.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Engine tests drew the same rectangle, square, L-shape and arc part in
private helpers across the Expander, golden-layout, fill-stack and
fixed-strategy tests. They now use TestDrawingFactory; files whose
helper had its own default size keep a one-line wrapper for it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>