fix: preserve circle rotation direction through geometry round-trip
Circle.Rotation was lost in three places, causing reversed circles to still offset inward instead of outward: - ConvertGeometry.AddCircle hardcoded CCW instead of using circle.Rotation - ConvertProgram.AddArcMove created Circle without setting Rotation from arc - Shape.OffsetOutward/OffsetInward copied Circle without setting Rotation Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -97,7 +97,7 @@ namespace OpenNest.Converters
|
||||
if (startpt != lastpt)
|
||||
pgm.MoveTo(startpt);
|
||||
|
||||
pgm.ArcTo(startpt, circle.Center, RotationType.CCW);
|
||||
pgm.ArcTo(startpt, circle.Center, circle.Rotation);
|
||||
|
||||
lastpt = startpt;
|
||||
return lastpt;
|
||||
|
||||
Reference in New Issue
Block a user