Move fill algorithms to OpenNest.Engine.Fill namespace: FillLinear, FillExtents, PairFiller, ShrinkFiller, Compactor, RemnantFiller, RemnantFinder, FillScore, Pattern, PatternTiler, PartBoundary, RotationAnalysis, AngleCandidateBuilder, and AccumulatingProgress. Move strategy layer to OpenNest.Engine.Strategies namespace: IFillStrategy, FillContext, FillStrategyRegistry, FillHelpers, and all built-in strategy implementations. Add using directives to all consuming files across Engine, UI, MCP, and Tests projects. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
27 lines
861 B
C#
27 lines
861 B
C#
using OpenNest.Engine.Fill;
|
|
using OpenNest.Geometry;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Threading;
|
|
|
|
namespace OpenNest.Engine.Strategies
|
|
{
|
|
public class FillContext
|
|
{
|
|
public NestItem Item { get; init; }
|
|
public Box WorkArea { get; init; }
|
|
public Plate Plate { get; init; }
|
|
public int PlateNumber { get; init; }
|
|
public CancellationToken Token { get; init; }
|
|
public IProgress<NestProgress> Progress { get; init; }
|
|
|
|
public List<Part> CurrentBest { get; set; }
|
|
public FillScore CurrentBestScore { get; set; }
|
|
public NestPhase WinnerPhase { get; set; }
|
|
public List<PhaseResult> PhaseResults { get; } = new();
|
|
public List<AngleResult> AngleResults { get; } = new();
|
|
|
|
public Dictionary<string, object> SharedState { get; } = new();
|
|
}
|
|
}
|