Files
OpenNest/OpenNest.Engine/Fill/SettleOrder.cs
T
ajandClaude Opus 5.5 cafb34b510 feat(clone): choose Shift+click push order and add box-only Ctrl+click
Shift+click in Clone Parts always kept whichever axis order landed the
copy nearest the origin, which can park it in a pocket the user didn't
want. Options > Clone push placement now picks Closest to origin (the old
behavior, still the default), Push left then down, or Push down then left.

Ctrl+click settles the copy on bounding boxes alone, so it stops square
to its neighbors' boxes instead of nesting into their shapes. Shift+click
keeps its box pass then geometry settle; both follow the chosen order.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 07:53:24 -05:00

19 lines
669 B
C#

namespace OpenNest.Engine.Fill
{
/// <summary>
/// How <see cref="Compactor.SettlePlacement"/> orders its pushes. Directions follow
/// the plate's origin quadrant: "horizontal" is toward the origin's side, as is "vertical".
/// </summary>
public enum SettleOrder
{
/// <summary>Try both orders and keep the placement closest to the origin corner.</summary>
ClosestToCorner,
/// <summary>Push horizontally first, then vertically, repeating until settled.</summary>
HorizontalFirst,
/// <summary>Push vertically first, then horizontally, repeating until settled.</summary>
VerticalFirst,
}
}