Allow quantity -1 for infinite.

This commit is contained in:
AJ
2025-01-05 23:16:39 -05:00
parent a1ad16bc52
commit ccbf8beeae
4 changed files with 41 additions and 35 deletions

View File

@@ -51,7 +51,7 @@ namespace SawCut.Nesting
{
var bins = new List<Bin>();
while (Items.Count > 0 && bins.Count < MaxBinCount)
while (Items.Count > 0 && (MaxBinCount == -1 || bins.Count < MaxBinCount))
{
var bin = new Bin(StockLength);
bin.Spacing = Spacing;