diff --git a/OpenNest.IO/CadImportResult.cs b/OpenNest.IO/CadImportResult.cs new file mode 100644 index 0000000..d040ecd --- /dev/null +++ b/OpenNest.IO/CadImportResult.cs @@ -0,0 +1,49 @@ +using System.Collections.Generic; +using ACadSharp; +using OpenNest.Bending; +using OpenNest.Geometry; + +namespace OpenNest.IO +{ + /// + /// Intermediate result of . Holds raw loaded + /// geometry and detected bends. Callers may mutate and + /// before passing to . + /// + public class CadImportResult + { + /// + /// All entities loaded from the source file, including promoted bend + /// source entities. Mutable. + /// + public List Entities { get; set; } = new List(); + + /// + /// Bends detected during import. Mutable — callers may add, remove, + /// or replace entries before building the drawing. + /// + public List Bends { get; set; } = new List(); + + /// + /// Bounding box of at import time. May be stale + /// if callers mutate ; recompute if needed. + /// + public Box Bounds { get; set; } + + /// + /// Underlying CAD document for callers that need to run additional + /// analysis (e.g., MText extraction). May be null for stream imports. + /// + public CadDocument Document { get; set; } + + /// + /// Absolute path to the source file. + /// + public string SourcePath { get; set; } + + /// + /// Default drawing name (filename without extension, unless overridden). + /// + public string Name { get; set; } + } +}