feat: add RowFillStrategy and ColumnFillStrategy with registry integration
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
17
OpenNest.Engine/Strategies/ColumnFillStrategy.cs
Normal file
17
OpenNest.Engine/Strategies/ColumnFillStrategy.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System.Collections.Generic;
|
||||
using OpenNest.Engine.Fill;
|
||||
|
||||
namespace OpenNest.Engine.Strategies;
|
||||
|
||||
public class ColumnFillStrategy : IFillStrategy
|
||||
{
|
||||
public string Name => "Column";
|
||||
public NestPhase Phase => NestPhase.Custom;
|
||||
public int Order => 160;
|
||||
|
||||
public List<Part> Fill(FillContext context)
|
||||
{
|
||||
var filler = new StripeFiller(context, NestDirection.Vertical);
|
||||
return filler.Fill();
|
||||
}
|
||||
}
|
||||
17
OpenNest.Engine/Strategies/RowFillStrategy.cs
Normal file
17
OpenNest.Engine/Strategies/RowFillStrategy.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System.Collections.Generic;
|
||||
using OpenNest.Engine.Fill;
|
||||
|
||||
namespace OpenNest.Engine.Strategies;
|
||||
|
||||
public class RowFillStrategy : IFillStrategy
|
||||
{
|
||||
public string Name => "Row";
|
||||
public NestPhase Phase => NestPhase.Custom;
|
||||
public int Order => 150;
|
||||
|
||||
public List<Part> Fill(FillContext context)
|
||||
{
|
||||
var filler = new StripeFiller(context, NestDirection.Horizontal);
|
||||
return filler.Fill();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user