summaryrefslogtreecommitdiff
path: root/gerber/rs274x.py
diff options
context:
space:
mode:
authorHamilton Kibbe <hamilton.kibbe@gmail.com>2014-12-05 23:59:28 -0500
committerHamilton Kibbe <hamilton.kibbe@gmail.com>2014-12-05 23:59:28 -0500
commit29deffcf77e963ae81aec9f8cbc61b029f3052d5 (patch)
tree83bf38945af619b9ca060f1dbd518c6c2517bd9c /gerber/rs274x.py
parentab69ee0172353e64fbe5099a974341e88feaf24b (diff)
downloadgerbonara-29deffcf77e963ae81aec9f8cbc61b029f3052d5.tar.gz
gerbonara-29deffcf77e963ae81aec9f8cbc61b029f3052d5.tar.bz2
gerbonara-29deffcf77e963ae81aec9f8cbc61b029f3052d5.zip
add ipc2581 primitives
Diffstat (limited to 'gerber/rs274x.py')
-rw-r--r--gerber/rs274x.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gerber/rs274x.py b/gerber/rs274x.py
index a41760e..6dbcc63 100644
--- a/gerber/rs274x.py
+++ b/gerber/rs274x.py
@@ -403,10 +403,10 @@ class GerberParser(object):
end = (x, y)
width = self.apertures[self.aperture].stroke_width
if self.interpolation == 'linear':
- self.primitives.append(Line(start, end, width, self.level_polarity))
+ self.primitives.append(Line(start, end, width, level_polarity=self.level_polarity))
else:
center = (start[0] + stmt.i, start[1] + stmt.j)
- self.primitives.append(Arc(start, end, center, self.direction, width, self.level_polarity))
+ self.primitives.append(Arc(start, end, center, self.direction, width, level_polarity=self.level_polarity))
elif stmt.op == "D02":
pass