summaryrefslogtreecommitdiff
path: root/gerber/gerber_statements.py
diff options
context:
space:
mode:
Diffstat (limited to 'gerber/gerber_statements.py')
-rw-r--r--gerber/gerber_statements.py7
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, '')