Add LineTypeName to Layer and propagate resolved color/line-type through all DXF entity conversions (Arc, Circle, Line, Spline, Polyline, LwPolyline, Ellipse). Entities that inherit ByLayer properties now correctly resolve to their layer's values. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
32 lines
585 B
C#
32 lines
585 B
C#
using System.Drawing;
|
|
|
|
namespace OpenNest.Geometry
|
|
{
|
|
public class Layer
|
|
{
|
|
public static readonly Layer Default = new Layer("0")
|
|
{
|
|
Color = Color.White,
|
|
IsVisible = true
|
|
};
|
|
|
|
public Layer(string name)
|
|
{
|
|
Name = name;
|
|
}
|
|
|
|
public string Name { get; set; }
|
|
|
|
public bool IsVisible { get; set; }
|
|
|
|
public Color Color { get; set; }
|
|
|
|
public string LineTypeName { get; set; }
|
|
|
|
public override string ToString()
|
|
{
|
|
return Name;
|
|
}
|
|
}
|
|
}
|