Files
OpenNest/OpenNest.Core/Shapes/CircleShape.cs
AJ Isaacs 5d0de4a1b1 feat(core): add CircleShape
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-17 07:59:26 -04:00

21 lines
427 B
C#

using System.Collections.Generic;
using OpenNest.Geometry;
namespace OpenNest.Shapes
{
public class CircleShape : ShapeDefinition
{
public double Diameter { get; set; }
public override Drawing GetDrawing()
{
var entities = new List<Entity>
{
new Circle(0, 0, Diameter / 2.0)
};
return CreateDrawing(entities);
}
}
}