feat: RegenerateCutOffs uses geometry-based perimeter cache

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-22 22:44:15 -04:00
parent 4287c5fa46
commit 17fc9c6cab
2 changed files with 33 additions and 1 deletions

View File

@@ -112,10 +112,12 @@ namespace OpenNest
Parts.RemoveAt(i);
}
var cache = BuildPerimeterCache(this);
// Regenerate and materialize each cut-off
foreach (var cutoff in CutOffs)
{
cutoff.Regenerate(this, settings);
cutoff.Regenerate(this, settings, cache);
if (cutoff.Drawing.Program.Codes.Count == 0)
continue;