refactor: rename DefinedShape to ShapeProfile

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-12 22:19:49 -04:00
parent 0c395421cd
commit e4e1d9b5a3
3 changed files with 5 additions and 5 deletions

View File

@@ -398,7 +398,7 @@ namespace OpenNest.Geometry
public override Entity OffsetEntity(double distance, OffsetSide side) public override Entity OffsetEntity(double distance, OffsetSide side)
{ {
var offsetShape = new Shape(); var offsetShape = new Shape();
var definedShape = new DefinedShape(this); var definedShape = new ShapeProfile(this);
Entity lastEntity = null; Entity lastEntity = null;
Entity lastOffsetEntity = null; Entity lastOffsetEntity = null;

View File

@@ -2,14 +2,14 @@
namespace OpenNest.Geometry namespace OpenNest.Geometry
{ {
public class DefinedShape public class ShapeProfile
{ {
public DefinedShape(Shape shape) public ShapeProfile(Shape shape)
{ {
Update(shape.Entities); Update(shape.Entities);
} }
public DefinedShape(List<Entity> entities) public ShapeProfile(List<Entity> entities)
{ {
Update(entities); Update(entities);
} }

View File

@@ -112,7 +112,7 @@ namespace OpenNest.Forms
drawing.Source.Path = item.Path; drawing.Source.Path = item.Path;
drawing.Quantity.Required = item.Quantity; drawing.Quantity.Required = item.Quantity;
var shape = new DefinedShape(entities); var shape = new ShapeProfile(entities);
SetRotation(shape.Perimeter, RotationType.CW); SetRotation(shape.Perimeter, RotationType.CW);