feat(engine): integrate NFP phase into FindBestFill (sync overload)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-13 10:22:39 -04:00
parent bbc3466bc8
commit c4d09f2466

View File

@@ -151,6 +151,13 @@ namespace OpenNest
if (IsBetterFill(pairResult, best, workArea))
best = pairResult;
// NFP phase (non-rectangular parts only)
var nfpResult = FillNfpBestFit(item, workArea);
Debug.WriteLine($"[FindBestFill] NFP: {nfpResult?.Count ?? 0} parts");
if (IsBetterFill(nfpResult, best, workArea))
best = nfpResult;
return best;
}