summaryrefslogtreecommitdiff
path: root/gerber/am_statements.py
diff options
context:
space:
mode:
authorGarret Fick <garret@ficksworkshop.com>2015-12-30 18:44:07 +0800
committerGarret Fick <garret@ficksworkshop.com>2015-12-30 18:44:07 +0800
commitf61eee807f87c329f6f88645ecdb48f01b887c52 (patch)
tree9c1422fac612c4bca82968c278540875ae9307e2 /gerber/am_statements.py
parentff1ad704d5bb7814fdaebc156b727ec3c5f2d1a8 (diff)
downloadgerbonara-f61eee807f87c329f6f88645ecdb48f01b887c52.tar.gz
gerbonara-f61eee807f87c329f6f88645ecdb48f01b887c52.tar.bz2
gerbonara-f61eee807f87c329f6f88645ecdb48f01b887c52.zip
Render polygon flashes
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 599d19d..e484b10 100644
--- a/gerber/am_statements.py
+++ b/gerber/am_statements.py
@@ -18,7 +18,7 @@
import math
from .utils import validate_coordinates, inch, metric, rotate_point
-from .primitives import Circle, Line, Outline, Rectangle
+from .primitives import Circle, Line, Outline, Polygon, Rectangle
# TODO: Add support for aperture macro variables
@@ -483,7 +483,7 @@ class AMPolygonPrimitive(AMPrimitive):
return fmt.format(**data)
def to_primitive(self, units):
- raise NotImplementedError()
+ return Polygon(self.position, self.vertices, self.diameter / 2.0, rotation=math.radians(self.rotation), units=units)
class AMMoirePrimitive(AMPrimitive):