fix: normalize best-fit pairs to landscape and fix viewer size swap

Normalize pair bounding box to landscape (width >= height) in
PairEvaluator for consistent display and filtering. Fix
BestFitViewerForm where BoundingWidth/BoundingHeight were passed
in the wrong order to the plate Size constructor.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-20 14:43:31 -04:00
parent cf1c5fe120
commit 884817c5f9
2 changed files with 12 additions and 2 deletions

View File

@@ -291,8 +291,8 @@ namespace OpenNest.Forms
cell.PartColor = partColor;
cell.Dock = DockStyle.Fill;
cell.Plate.Size = new Geometry.Size(
result.BoundingHeight,
result.BoundingWidth);
result.BoundingWidth,
result.BoundingHeight);
var parts = result.BuildParts(drawing);