Skip to content

Commit

Permalink
Update am_statements.py
Browse files Browse the repository at this point in the history
Remove unit conversion since Polygon expects degree. This bug leads to false rotated polygons in aperture macros.
  • Loading branch information
ncalbrecht committed Oct 18, 2021
1 parent 7225725 commit e4ad0c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gerber/am_statements.py
Expand Up @@ -547,7 +547,7 @@ def to_gerber(self, settings=None):
return fmt.format(**data)

def to_primitive(self, units):
return Polygon(self.position, self.vertices, self.diameter / 2.0, 0, rotation=math.radians(self.rotation), units=units, level_polarity=self._level_polarity)
return Polygon(self.position, self.vertices, self.diameter / 2.0, 0, rotation=self.rotation, units=units, level_polarity=self._level_polarity)


class AMMoirePrimitive(AMPrimitive):
Expand Down

0 comments on commit e4ad0c4

Please sign in to comment.