refactor: remove UsableRemnantArea from NestProgress and UI
This commit is contained in:
@@ -229,7 +229,6 @@ namespace OpenNest
|
|||||||
NestedWidth = bounds.Width,
|
NestedWidth = bounds.Width,
|
||||||
NestedLength = bounds.Length,
|
NestedLength = bounds.Length,
|
||||||
NestedArea = totalPartArea,
|
NestedArea = totalPartArea,
|
||||||
UsableRemnantArea = workArea.Area() - totalPartArea,
|
|
||||||
BestParts = clonedParts,
|
BestParts = clonedParts,
|
||||||
Description = description
|
Description = description
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -41,7 +41,6 @@ namespace OpenNest
|
|||||||
public double NestedWidth { get; set; }
|
public double NestedWidth { get; set; }
|
||||||
public double NestedLength { get; set; }
|
public double NestedLength { get; set; }
|
||||||
public double NestedArea { get; set; }
|
public double NestedArea { get; set; }
|
||||||
public double UsableRemnantArea { get; set; }
|
|
||||||
public List<Part> BestParts { get; set; }
|
public List<Part> BestParts { get; set; }
|
||||||
public string Description { get; set; }
|
public string Description { get; set; }
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -37,7 +37,6 @@ namespace OpenNest.Forms
|
|||||||
partsValue.Text = progress.BestPartCount.ToString();
|
partsValue.Text = progress.BestPartCount.ToString();
|
||||||
densityValue.Text = progress.BestDensity.ToString("P1");
|
densityValue.Text = progress.BestDensity.ToString("P1");
|
||||||
nestedAreaValue.Text = $"{progress.NestedWidth:F1} x {progress.NestedLength:F1} ({progress.NestedArea:F1} sq in)";
|
nestedAreaValue.Text = $"{progress.NestedWidth:F1} x {progress.NestedLength:F1} ({progress.NestedArea:F1} sq in)";
|
||||||
remnantValue.Text = $"{progress.UsableRemnantArea:F1} sq in";
|
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(progress.Description))
|
if (!string.IsNullOrEmpty(progress.Description))
|
||||||
descriptionValue.Text = progress.Description;
|
descriptionValue.Text = progress.Description;
|
||||||
|
|||||||
Reference in New Issue
Block a user