feat(engine): integrate NFP phase into FindBestFill (sync overload)
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -151,6 +151,13 @@ namespace OpenNest
|
|||||||
if (IsBetterFill(pairResult, best, workArea))
|
if (IsBetterFill(pairResult, best, workArea))
|
||||||
best = pairResult;
|
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;
|
return best;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user