mirror of
https://github.com/ajisaacs/OpenNest.git
synced 2026-11-16 14:55:36 -05:00
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:
1 parent
1c561d880e
commit
4db51b8cdf
2 files changed
+4
-1
No files matched your search
@@ -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;
|
||||
}
|
||||
}
|
||||
@@ -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()
|
||||
|
||||
Reference in new issue
Block a user