From 7681a1bad054685154c2d47866a7246eb3b4ce03 Mon Sep 17 00:00:00 2001 From: AJ Isaacs Date: Sun, 22 Mar 2026 19:12:49 -0400 Subject: [PATCH] feat: add Drawing.IsCutOff flag for cut-off support Co-Authored-By: Claude Opus 4.6 (1M context) --- OpenNest.Core/Drawing.cs | 2 ++ OpenNest.Tests/CutOffTests.cs | 13 +++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 OpenNest.Tests/CutOffTests.cs diff --git a/OpenNest.Core/Drawing.cs b/OpenNest.Core/Drawing.cs index a55cd80..b64bcd1 100644 --- a/OpenNest.Core/Drawing.cs +++ b/OpenNest.Core/Drawing.cs @@ -56,6 +56,8 @@ namespace OpenNest public Color Color { get; set; } + public bool IsCutOff { get; set; } + public NestConstraints Constraints { get; set; } public SourceInfo Source { get; set; } diff --git a/OpenNest.Tests/CutOffTests.cs b/OpenNest.Tests/CutOffTests.cs new file mode 100644 index 0000000..76823b9 --- /dev/null +++ b/OpenNest.Tests/CutOffTests.cs @@ -0,0 +1,13 @@ +using OpenNest.CNC; + +namespace OpenNest.Tests; + +public class CutOffTests +{ + [Fact] + public void Drawing_IsCutOff_DefaultsFalse() + { + var drawing = new Drawing("test", new Program()); + Assert.False(drawing.IsCutOff); + } +}