summaryrefslogtreecommitdiff
path: root/gerber/am_statements.py
diff options
context:
space:
mode:
authorGarret Fick <garret@ficksworkshop.com>2016-06-28 23:15:20 +0800
committerGarret Fick <garret@ficksworkshop.com>2016-06-28 23:15:20 +0800
commitb140f5e4767912110f69cbda8417a8e076345b70 (patch)
treebd9c74ddff137aec3e56e9179999ed4946902af3 /gerber/am_statements.py
parentccb6eb7a766bd6edf314978f3ec4fc0dcd61652d (diff)
downloadgerbonara-b140f5e4767912110f69cbda8417a8e076345b70.tar.gz
gerbonara-b140f5e4767912110f69cbda8417a8e076345b70.tar.bz2
gerbonara-b140f5e4767912110f69cbda8417a8e076345b70.zip
Don't flash G03-only commands
Diffstat (limited to 'gerber/am_statements.py')
-rw-r--r--gerber/am_statements.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gerber/am_statements.py b/gerber/am_statements.py
index 0d92a8c..a58f1dd 100644
--- a/gerber/am_statements.py
+++ b/gerber/am_statements.py
@@ -523,7 +523,7 @@ class AMPolygonPrimitive(AMPrimitive):
return fmt.format(**data)
def to_primitive(self, units):
- return Polygon(self.position, self.vertices, self.diameter / 2.0, hole_radius=0, rotation=self.rotation, units=units, level_polarity=self._level_polarity)
+ return Polygon(self.position, self.vertices, self.diameter / 2.0, rotation=math.radians(self.rotation), units=units, level_polarity=self._level_polarity)
class AMMoirePrimitive(AMPrimitive):
@@ -897,7 +897,7 @@ class AMCenterLinePrimitive(AMPrimitive):
return fmt.format(**data)
def to_primitive(self, units):
- return Rectangle(self.center, self.width, self.height, rotation=self.rotation, units=units, level_polarity=self._level_polarity)
+ return Rectangle(self.center, self.width, self.height, rotation=math.radians(self.rotation), units=units, level_polarity=self._level_polarity)
class AMLowerLeftLinePrimitive(AMPrimitive):