fix(ui): reverse sequence order so cutting starts near origin
The sequencer returns parts ordered from exit point inward. Reverse so part 1 is nearest the origin and cutting works outward. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -461,8 +461,8 @@ namespace OpenNest.Forms
|
||||
var ordered = sequencer.Sequence(plate.Parts.ToList(), plate);
|
||||
|
||||
plate.Parts.Clear();
|
||||
foreach (var s in ordered)
|
||||
plate.Parts.Add(s.Part);
|
||||
for (var i = ordered.Count - 1; i >= 0; i--)
|
||||
plate.Parts.Add(ordered[i].Part);
|
||||
}
|
||||
|
||||
public void CalculateCurrentPlateCutTime()
|
||||
|
||||
Reference in New Issue
Block a user