feat(engine): add AngleResult class and Description to NestProgress
This commit is contained in:
@@ -10,6 +10,27 @@ namespace OpenNest
|
||||
Remainder
|
||||
}
|
||||
|
||||
public class PhaseResult
|
||||
{
|
||||
public NestPhase Phase { get; set; }
|
||||
public int PartCount { get; set; }
|
||||
public long TimeMs { get; set; }
|
||||
|
||||
public PhaseResult(NestPhase phase, int partCount, long timeMs)
|
||||
{
|
||||
Phase = phase;
|
||||
PartCount = partCount;
|
||||
TimeMs = timeMs;
|
||||
}
|
||||
}
|
||||
|
||||
public class AngleResult
|
||||
{
|
||||
public double AngleDeg { get; set; }
|
||||
public NestDirection Direction { get; set; }
|
||||
public int PartCount { get; set; }
|
||||
}
|
||||
|
||||
public class NestProgress
|
||||
{
|
||||
public NestPhase Phase { get; set; }
|
||||
@@ -18,5 +39,6 @@ namespace OpenNest
|
||||
public double BestDensity { get; set; }
|
||||
public double UsableRemnantArea { get; set; }
|
||||
public List<Part> BestParts { get; set; }
|
||||
public string Description { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user