summaryrefslogtreecommitdiff
path: root/gerber/render/apertures.py
diff options
context:
space:
mode:
Diffstat (limited to 'gerber/render/apertures.py')
-rw-r--r--gerber/render/apertures.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/gerber/render/apertures.py b/gerber/render/apertures.py
index 55e6a30..f163b1f 100644
--- a/gerber/render/apertures.py
+++ b/gerber/render/apertures.py
@@ -29,7 +29,7 @@ class Aperture(object):
"""
def draw(self, ctx, x, y):
raise NotImplementedError('The draw method must be implemented in an Aperture subclass.')
-
+
def flash(self, ctx, x, y):
raise NotImplementedError('The flash method must be implemented in an Aperture subclass.')
@@ -40,19 +40,22 @@ class Circle(Aperture):
def __init__(self, diameter=0.0):
self.diameter = diameter
+
class Rect(Aperture):
""" Rectangular Aperture base class
"""
def __init__(self, size=(0, 0)):
self.size = size
+
class Obround(Aperture):
""" Obround Aperture base class
"""
def __init__(self, size=(0, 0)):
self.size = size
-
+
+
class Polygon(Aperture):
""" Polygon Aperture base class
"""
- pass \ No newline at end of file
+ pass