diff options
author | Garret Fick <garret@ficksworkshop.com> | 2016-06-25 16:46:44 +0800 |
---|---|---|
committer | Garret Fick <garret@ficksworkshop.com> | 2016-06-25 16:46:44 +0800 |
commit | ccb6eb7a766bd6edf314978f3ec4fc0dcd61652d (patch) | |
tree | 0f752f20823644f1950ab6bd4c85e66700498602 /gerber/gerber_statements.py | |
parent | efcb221fc7bd8dae583357e6c4e1c2d3fc9e9df6 (diff) | |
download | gerbonara-ccb6eb7a766bd6edf314978f3ec4fc0dcd61652d.tar.gz gerbonara-ccb6eb7a766bd6edf314978f3ec4fc0dcd61652d.tar.bz2 gerbonara-ccb6eb7a766bd6edf314978f3ec4fc0dcd61652d.zip |
Add support for polygon apertures
Diffstat (limited to 'gerber/gerber_statements.py')
-rw-r--r-- | gerber/gerber_statements.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gerber/gerber_statements.py b/gerber/gerber_statements.py index 725febf..234952e 100644 --- a/gerber/gerber_statements.py +++ b/gerber/gerber_statements.py @@ -285,10 +285,15 @@ class ADParamStmt(ParamStmt): @classmethod def obround(cls, dcode, width, height): - '''Create an obrou d aperture definition statement''' + '''Create an obround aperture definition statement''' return cls('AD', dcode, 'O', ([width, height],)) @classmethod + def polygon(cls, dcode, diameter, num_vertices, rotation, hole_diameter): + '''Create a polygon aperture definition statement''' + return cls('AD', dcode, 'P', ([diameter, num_vertices, rotation, hole_diameter],)) + + @classmethod def macro(cls, dcode, name): return cls('AD', dcode, name, '') |