Wire IDistanceComputer into RotationSlideStrategy, replacing inline CPU/GPU branching. BestFitFinder constructs the appropriate implementation. Replace PushDirection enum with direction vectors in BuildOffsets. Rename IBestFitStrategy.Type and PairCandidate.StrategyType to StrategyIndex for clarity (JSON field name unchanged for backward compatibility). Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
12 lines
292 B
C#
12 lines
292 B
C#
using System.Collections.Generic;
|
|
|
|
namespace OpenNest.Engine.BestFit
|
|
{
|
|
public interface IBestFitStrategy
|
|
{
|
|
int StrategyIndex { get; }
|
|
string Description { get; }
|
|
List<PairCandidate> GenerateCandidates(Drawing drawing, double spacing, double stepSize);
|
|
}
|
|
}
|