Repo-wide sweep with the pinned CSharpier 1.3.0 tool. Whitespace and line-wrapping only; OpenNest.Engine.Tests (109) and OpenNest.IO.Tests pass after reformat, full solution builds 0 errors. Added .csharpierignore so csproj/config XML keeps its existing layout (CSharpier's XML wrapping churns attributes with zero benefit). Formatting is now enforceable: dotnet csharpier check . passes.
24 lines
568 B
C#
24 lines
568 B
C#
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)
|
|
{
|
|
if (context.PartType == PartType.Rectangle)
|
|
return null;
|
|
|
|
var filler = new StripeFiller(context, NestDirection.Vertical)
|
|
{
|
|
CompleteStripesOnly = true,
|
|
};
|
|
return filler.Fill();
|
|
}
|
|
}
|