feat: add Bends property to Drawing, GrainAngle to Plate

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-24 20:19:53 -04:00
parent c2a470f79c
commit 7056f8816f
2 changed files with 10 additions and 1 deletions

View File

@@ -1,6 +1,8 @@
using OpenNest.CNC;
using OpenNest.Bending;
using OpenNest.CNC;
using OpenNest.Converters;
using OpenNest.Geometry;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Threading;
@@ -62,6 +64,8 @@ namespace OpenNest
public SourceInfo Source { get; set; }
public List<Bend> Bends { get; set; } = new List<Bend>();
public double Area { get; protected set; }
public void UpdateArea()

View File

@@ -88,6 +88,11 @@ namespace OpenNest
/// </summary>
public Material Material { get; set; }
/// <summary>
/// Material grain direction in radians. 0 = horizontal.
/// </summary>
public double GrainAngle { get; set; }
/// <summary>
/// The parts that the plate contains.
/// </summary>