ArcToLineClosestDistance used geometric closest-point as a proxy for directional push distance, which are fundamentally different queries. The heuristic could overestimate the safe push distance when an arc faces an inclined line, causing the Compactor to over-push parts into overlapping positions. Replace with analytical computation: for each arc/line pair, solve dt/dθ = 0 to find the two critical angles where the directional distance is stationary, evaluate both (if within the arc's angular span), and fire a ray to verify the hit is within the line segment. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
34 KiB
34 KiB