mirror of
https://github.com/ajisaacs/OpenNest.git
synced 2026-11-14 13:45:07 -05:00
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>
19 lines
669 B
C#
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,
|
|
}
|
|
}
|