summaryrefslogtreecommitdiff
path: root/gerber/primitives.py
diff options
context:
space:
mode:
authorHamilton Kibbe <hamilton.kibbe@gmail.com>2019-02-04 09:28:51 -0500
committerGitHub <noreply@github.com>2019-02-04 09:28:51 -0500
commit256cd7ec6b1e50e9629b7da3a64248df9124011a (patch)
treefa8684dfc88166285495a4c52b948f45981328d0 /gerber/primitives.py
parentf59d78b7fe92fffcc0afc56c5bec1dd211cc30c6 (diff)
parenta7a5981e0eb2b112a57c6ea1151eb2b88f798857 (diff)
downloadgerbonara-256cd7ec6b1e50e9629b7da3a64248df9124011a.tar.gz
gerbonara-256cd7ec6b1e50e9629b7da3a64248df9124011a.tar.bz2
gerbonara-256cd7ec6b1e50e9629b7da3a64248df9124011a.zip
Merge pull request #94 from jaseg/master
Make primitives with unset level polarity inherit from region
Diffstat (limited to 'gerber/primitives.py')
-rw-r--r--gerber/primitives.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/gerber/primitives.py b/gerber/primitives.py
index b24b6c3..757f117 100644
--- a/gerber/primitives.py
+++ b/gerber/primitives.py
@@ -206,8 +206,9 @@ class Line(Primitive):
"""
"""
- def __init__(self, start, end, aperture, **kwargs):
+ def __init__(self, start, end, aperture, level_polarity=None, **kwargs):
super(Line, self).__init__(**kwargs)
+ self.level_polarity = level_polarity
self._start = start
self._end = end
self.aperture = aperture
@@ -324,8 +325,9 @@ class Arc(Primitive):
"""
def __init__(self, start, end, center, direction, aperture, quadrant_mode,
- **kwargs):
+ level_polarity=None, **kwargs):
super(Arc, self).__init__(**kwargs)
+ self.level_polarity = level_polarity
self._start = start
self._end = end
self._center = center