fix: regenerate cut-offs on part rotation and default cut direction

- Regenerate cut-off programs after RotateSelectedParts so cut lines
  update when parts are rotated, not just moved
- Change default CutDirection from TowardOrigin to AwayFromOrigin so
  cuts start at the origin axis

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-22 22:58:47 -04:00
parent 1c561d880e
commit 4db51b8cdf
2 changed files with 4 additions and 1 deletions

View File

@@ -11,6 +11,6 @@ namespace OpenNest
public double PartClearance { get; set; } = 0.125;
public double Overtravel { get; set; }
public double MinSegmentLength { get; set; } = 0.05;
public CutDirection CutDirection { get; set; } = CutDirection.TowardOrigin;
public CutDirection CutDirection { get; set; } = CutDirection.AwayFromOrigin;
}
}

View File

@@ -1236,6 +1236,9 @@ namespace OpenNest.Controls
for (var i = 0; i < SelectedParts.Count; ++i)
SelectedParts[i].Offset(diff);
if (Plate.CutOffs.Count > 0)
Plate.RegenerateCutOffs(cutOffSettings);
}
protected override void UpdateMatrix()