feat(engine): add IsOverallBest flag to NestProgress
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -191,7 +191,8 @@ namespace OpenNest
|
|||||||
int plateNumber,
|
int plateNumber,
|
||||||
List<Part> best,
|
List<Part> best,
|
||||||
Box workArea,
|
Box workArea,
|
||||||
string description)
|
string description,
|
||||||
|
bool isOverallBest = false)
|
||||||
{
|
{
|
||||||
if (progress == null || best == null || best.Count == 0)
|
if (progress == null || best == null || best.Count == 0)
|
||||||
return;
|
return;
|
||||||
@@ -233,6 +234,7 @@ namespace OpenNest
|
|||||||
BestParts = clonedParts,
|
BestParts = clonedParts,
|
||||||
Description = description,
|
Description = description,
|
||||||
ActiveWorkArea = workArea,
|
ActiveWorkArea = workArea,
|
||||||
|
IsOverallBest = isOverallBest,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -46,5 +46,6 @@ namespace OpenNest
|
|||||||
public List<Part> BestParts { get; set; }
|
public List<Part> BestParts { get; set; }
|
||||||
public string Description { get; set; }
|
public string Description { get; set; }
|
||||||
public Box ActiveWorkArea { get; set; }
|
public Box ActiveWorkArea { get; set; }
|
||||||
|
public bool IsOverallBest { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user