feat: update FindBestRotation to use rotating calipers algorithm

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-06 22:49:09 -05:00
parent a190ed25b4
commit 1c8763a201
3 changed files with 56 additions and 36 deletions

View File

@@ -599,14 +599,14 @@ namespace OpenNest.Geometry
get { return EntityType.Shape; }
}
public double FindBestRotation(double stepAngle)
public BoundingRectangleResult FindBestRotation()
{
return Entities.FindBestRotation(stepAngle);
return Entities.FindBestRotation();
}
public double FindBestRotation(double stepAngle, double startAngle, double endAngle)
public BoundingRectangleResult FindBestRotation(double startAngle, double endAngle)
{
return Entities.FindBestRotation(stepAngle, startAngle, endAngle);
return Entities.FindBestRotation(startAngle, endAngle);
}
}
}