feat: add LeadConfig, CutOffConfig, and ThicknessConfig data models
This commit is contained in:
9
OpenNest.Data/CutOffConfig.cs
Normal file
9
OpenNest.Data/CutOffConfig.cs
Normal 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";
|
||||
}
|
||||
9
OpenNest.Data/LeadConfig.cs
Normal file
9
OpenNest.Data/LeadConfig.cs
Normal 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; }
|
||||
}
|
||||
14
OpenNest.Data/ThicknessConfig.cs
Normal file
14
OpenNest.Data/ThicknessConfig.cs
Normal 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();
|
||||
}
|
||||
Reference in New Issue
Block a user