fix(posts): post CI Fiber cut-offs in their sequence, not last

b0997f6 moved every cut-off after the parts. Plate.Parts order is the
cut sequence, and the user sets each cut-off's place in it (Set
Sequence), so the post must follow it rather than reorder. Cut-offs
still post as uncompensated open lines with no lead-in.
This commit is contained in:
aj committed 2026-09-28 18:41:06 -04:00
1 parent 86dbd8819b
commit 6803d7519f
3 files changed
+38 -17

No files matched your search

@@ -196,14 +196,10 @@ namespace OpenNest.Posts.CincinnatiCIFiber
private int WriteSheet(Plate plate, TextWriter w, int contourNumber)
{
// Cut-offs run last: severing the sheet first would free the
// skeleton before the parts are cut (matches the CL post).
var ordered = plate
.Parts.Where(p => !p.BaseDrawing.IsCutOff)
.Concat(plate.Parts.Where(p => p.BaseDrawing.IsCutOff));
// Plate order is the cut sequence, cut-offs included: the user sets
// where each cut-off runs, so the post must not reorder them.
var partNumber = 0;
foreach (var part in ordered)
foreach (var part in plate.Parts)
{
partNumber++;
contourNumber = WritePart(part, partNumber, w, contourNumber);