feat(core): add CircleShape

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-17 07:59:26 -04:00
parent f92d09a863
commit 5d0de4a1b1
2 changed files with 46 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
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);
}
}
}