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:
2026-03-21 07:48:00 -04:00
parent 0597a11a23
commit 811d23510e
4 changed files with 56 additions and 3 deletions

View 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();
}
}

View 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();
}
}