perf(fill): avoid redundant bounds recomputation

This commit is contained in:
aj
2026-09-25 21:45:03 -04:00
parent 4ec92c95ec
commit 4553f8afad
10 changed files with 483 additions and 12 deletions
@@ -18,6 +18,8 @@ namespace OpenNest.Engine.Strategies
foreach (var part in groupParts)
{
var clone = (Part)part.Clone();
// Keep the recompute: at angle 0, accumulated source translations can
// leave a different cached box than Program.BoundingBox() + Location.
clone.UpdateBounds();
if (!angle.IsEqualTo(0))