mirror of
https://github.com/ajisaacs/OpenNest.git
synced 2026-11-22 08:47:40 -05:00
A braze-casing angle whose 0.98" curve was exported as 199 lines of 0.005" made a single Fill of 33 copies take 8.6 minutes, and Auto Nest's Irregular engine never finished its first plate in 15 minutes: it proposes such fills as Lattice blocks. Two causes. Shape.JoinOffsetLines tested convexity with an unnormalized cross product, so shallow concave turns between tiny lines fell under the epsilon, the nearly parallel offsets missed each other, and the fallback arc swept the long way round: a near circle per joint, 414 entities in the spacing outline. A non-convex turn now gets a straight bridge, as concave corners already do. Spacing outlines with a dense run of tiny entities are also thinned to Douglas-Peucker chords on an offset padded by 0.0015, so every chord stays outside the true spacing outline: clearance can only grow, by at most 0.003 beside the run, and validation still reads true geometry. The angle's outline is now 21 entities; the Fill takes 69 s with no overlaps, and Irregular finishes the whole job (24 sheets in under 5 minutes, 22 by a 15-minute limit, against 28). Problem-nest corpus (auto-nest, fill): all layouts and counts unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>