diff options
author | Garret Fick <garret@ficksworkshop.com> | 2015-12-30 18:44:07 +0800 |
---|---|---|
committer | Garret Fick <garret@ficksworkshop.com> | 2015-12-30 18:44:07 +0800 |
commit | f61eee807f87c329f6f88645ecdb48f01b887c52 (patch) | |
tree | 9c1422fac612c4bca82968c278540875ae9307e2 /gerber/am_statements.py | |
parent | ff1ad704d5bb7814fdaebc156b727ec3c5f2d1a8 (diff) | |
download | gerbonara-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.py | 4 |
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): |