using OpenNest.Geometry; using System.Collections.Generic; namespace OpenNest.Engine.Fill { /// /// Ranks fill results by count first, then density. /// This is the original scoring logic used by DefaultNestEngine. /// public class DefaultFillComparer : IFillComparer { public bool IsBetter(List candidate, List current, Box workArea) { if (candidate == null || candidate.Count == 0) return false; if (current == null || current.Count == 0) return true; return FillScore.Compute(candidate, workArea) > FillScore.Compute(current, workArea); } } }