feat: add LeadConfig, CutOffConfig, and ThicknessConfig data models

This commit is contained in:
2026-03-27 20:14:39 -04:00
parent 5d3fcb2dc8
commit 64874857a1
3 changed files with 32 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
namespace OpenNest.Data;
public class CutOffConfig
{
public double PartClearance { get; set; } = 0.02;
public double Overtravel { get; set; }
public double MinSegmentLength { get; set; } = 0.05;
public string Direction { get; set; } = "AwayFromOrigin";
}

View File

@@ -0,0 +1,9 @@
namespace OpenNest.Data;
public class LeadConfig
{
public string Type { get; set; } = "Line";
public double Length { get; set; }
public double Angle { get; set; } = 90.0;
public double Radius { get; set; }
}

View File

@@ -0,0 +1,14 @@
using System.Collections.Generic;
namespace OpenNest.Data;
public class ThicknessConfig
{
public double Value { get; set; }
public double Kerf { get; set; }
public string AssistGas { get; set; } = "";
public LeadConfig LeadIn { get; set; } = new();
public LeadConfig LeadOut { get; set; } = new();
public CutOffConfig CutOff { get; set; } = new();
public List<string> PlateSizes { get; set; } = new();
}