Some objects associated with pads rotated incorrectly
Gerbonara version: head (091ee849), but also previous versions Gerber source: Altium 24.7.2 Python version: 3.12.4
When using Gerbonara to convert an Altium-generated gerber to SVG, some of the pads are rotated incorrectly in the SVG output. I'm creating the SVG like this:
stack = LayerStack.open(filename)
svg = stack.to_pretty_svg(side)
The issue is caused by the rotation angle being interpreted incorrectly, eventually in the ArcPoly graphics primitive. As a test, If I add a conversion from degrees to radians in the ArcPoly from_regular_polygon function, then this gerber is interpreted correctly.
Rotated incorrectly using to_pretty_svg():
KiCad's Gerber Viewer loads it correctly:
This is the offending gerber: 2024-08-09_RGBW_puck_RevA2_Gerber.zip

