From 59e00cd707890d18f069f0875e9a923258f5b64d Mon Sep 17 00:00:00 2001 From: AJ Isaacs Date: Sun, 5 Apr 2026 00:27:40 -0400 Subject: [PATCH] feat: add PlateOption and PlateOptimizerResult data classes --- OpenNest.Core/PlateOptimizerResult.cs | 12 ++++++++++++ OpenNest.Core/PlateOption.cs | 11 +++++++++++ 2 files changed, 23 insertions(+) create mode 100644 OpenNest.Core/PlateOptimizerResult.cs create mode 100644 OpenNest.Core/PlateOption.cs diff --git a/OpenNest.Core/PlateOptimizerResult.cs b/OpenNest.Core/PlateOptimizerResult.cs new file mode 100644 index 0000000..eb793ce --- /dev/null +++ b/OpenNest.Core/PlateOptimizerResult.cs @@ -0,0 +1,12 @@ +using System.Collections.Generic; + +namespace OpenNest +{ + public class PlateOptimizerResult + { + public List Parts { get; set; } = new(); + public PlateOption ChosenSize { get; set; } + public double NetCost { get; set; } + public double Utilization { get; set; } + } +} diff --git a/OpenNest.Core/PlateOption.cs b/OpenNest.Core/PlateOption.cs new file mode 100644 index 0000000..e48f06c --- /dev/null +++ b/OpenNest.Core/PlateOption.cs @@ -0,0 +1,11 @@ +namespace OpenNest +{ + public class PlateOption + { + public double Width { get; set; } + public double Length { get; set; } + public double Cost { get; set; } + + public double Area => Width * Length; + } +}