mirror of
https://github.com/ajisaacs/OpenNest.git
synced 2026-11-23 12:27:41 -05:00
LabelBoxFinder scored a maximal rectangle by how many label heights fit across it, so a long, thin strip (the gap between a hole and a slanted edge) beat a roomier pocket, and centering put the box at the strip's narrowest point. Each orientation now finds the widest margin the label can have on every side beyond the clearance, by bisecting on the margin and asking only for rectangles at least that thick, and centers the box in the rectangle that gives it. A turn off the axes must give half again the margin plus half the label height before it replaces horizontal or vertical text. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>