summaryrefslogtreecommitdiff
path: root/gerber/am_statements.py
diff options
context:
space:
mode:
authorGarret Fick <garret@ficksworkshop.com>2016-06-25 16:46:44 +0800
committerGarret Fick <garret@ficksworkshop.com>2016-06-25 16:46:44 +0800
commitccb6eb7a766bd6edf314978f3ec4fc0dcd61652d (patch)
tree0f752f20823644f1950ab6bd4c85e66700498602 /gerber/am_statements.py
parentefcb221fc7bd8dae583357e6c4e1c2d3fc9e9df6 (diff)
downloadgerbonara-ccb6eb7a766bd6edf314978f3ec4fc0dcd61652d.tar.gz
gerbonara-ccb6eb7a766bd6edf314978f3ec4fc0dcd61652d.tar.bz2
gerbonara-ccb6eb7a766bd6edf314978f3ec4fc0dcd61652d.zip
Add support for polygon apertures
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 a58f1dd..0d92a8c 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, rotation=math.radians(self.rotation), units=units, level_polarity=self._level_polarity)
+ return Polygon(self.position, self.vertices, self.diameter / 2.0, hole_radius=0, rotation=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=math.radians(self.rotation), units=units, level_polarity=self._level_polarity)
+ return Rectangle(self.center, self.width, self.height, rotation=self.rotation, units=units, level_polarity=self._level_polarity)
class AMLowerLeftLinePrimitive(AMPrimitive):