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:
@@ -11,6 +11,6 @@ namespace OpenNest
|
|||||||
public double PartClearance { get; set; } = 0.125;
|
public double PartClearance { get; set; } = 0.125;
|
||||||
public double Overtravel { get; set; }
|
public double Overtravel { get; set; }
|
||||||
public double MinSegmentLength { get; set; } = 0.05;
|
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)
|
for (var i = 0; i < SelectedParts.Count; ++i)
|
||||||
SelectedParts[i].Offset(diff);
|
SelectedParts[i].Offset(diff);
|
||||||
|
|
||||||
|
if (Plate.CutOffs.Count > 0)
|
||||||
|
Plate.RegenerateCutOffs(cutOffSettings);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void UpdateMatrix()
|
protected override void UpdateMatrix()
|
||||||
|
|||||||
Reference in New Issue
Block a user