refactor: rename DefinedShape to ShapeProfile
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
@@ -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);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user