mirror of
https://github.com/ajisaacs/OpenNest.git
synced 2026-11-22 16:57:41 -05:00
A file such as a sheet of ornaments imported as one drawing, with every part but the largest treated as a cutout. PartBodies (Core) now finds the separate parts by contour nesting, and the CAD Converter offers a Separate (N) button plus Separate This Part / Separate All Parts in the entity menu. Each part keeps its entity IDs, so roles, exclusions, breakoffs, tabbed cutouts and dimensions follow it; separation is refused when a breakoff or tabbed cutout spans parts. SVG import keeps element titles as labeled regions, which name the separated parts. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
31 lines
1016 B
C#
31 lines
1016 B
C#
using System.Collections.Generic;
|
|
using ACadSharp;
|
|
using OpenNest.Bending;
|
|
using OpenNest.Geometry;
|
|
|
|
namespace OpenNest.IO
|
|
{
|
|
public class DxfImportResult
|
|
{
|
|
public List<Entity> Entities { get; set; } = new();
|
|
|
|
/// <summary>
|
|
/// The file's geometry on every layer, before any cleanup. These are separate
|
|
/// instances from <see cref="Entities"/>.
|
|
/// </summary>
|
|
public List<Entity> RawEntities { get; set; } = new();
|
|
public CadDocument Document { get; set; }
|
|
|
|
/// <summary>
|
|
/// Bends the file states outright, as an SVG's BEND layer does; null when bends are
|
|
/// detected from <see cref="Document"/> instead.
|
|
/// </summary>
|
|
public List<Bend> Bends { get; set; }
|
|
|
|
/// <summary>Names the file gives to regions of its geometry, such as SVG titles; empty when none.</summary>
|
|
public List<LabeledRegion> Labels { get; set; } = new();
|
|
|
|
public List<string> Warnings { get; set; } = new();
|
|
}
|
|
}
|