feat(engine): add IsOverallBest flag to NestProgress

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-18 22:11:29 -04:00
parent f73bb2bc2f
commit e789fe312d
2 changed files with 4 additions and 1 deletions

View File

@@ -191,7 +191,8 @@ namespace OpenNest
int plateNumber,
List<Part> best,
Box workArea,
string description)
string description,
bool isOverallBest = false)
{
if (progress == null || best == null || best.Count == 0)
return;
@@ -233,6 +234,7 @@ namespace OpenNest
BestParts = clonedParts,
Description = description,
ActiveWorkArea = workArea,
IsOverallBest = isOverallBest,
});
}

View File

@@ -46,5 +46,6 @@ namespace OpenNest
public List<Part> BestParts { get; set; }
public string Description { get; set; }
public Box ActiveWorkArea { get; set; }
public bool IsOverallBest { get; set; }
}
}