summaryrefslogtreecommitdiff
path: root/gerber/rs274x.py
diff options
context:
space:
mode:
authorGarret Fick <garret@ficksworkshop.com>2016-01-31 15:24:57 +0800
committerGarret Fick <garret@ficksworkshop.com>2016-01-31 15:24:57 +0800
commit96bdd0f59dbda9b755b0eb28eb44cb9a6eae1410 (patch)
treeacf632e4dc51c3a5a545defd87f433e0bf8354c3 /gerber/rs274x.py
parente84f131720e5952ba0dc20de8729bfd1d7aa0fe7 (diff)
downloadgerbonara-96bdd0f59dbda9b755b0eb28eb44cb9a6eae1410.tar.gz
gerbonara-96bdd0f59dbda9b755b0eb28eb44cb9a6eae1410.tar.bz2
gerbonara-96bdd0f59dbda9b755b0eb28eb44cb9a6eae1410.zip
Keep track of quadrant mode so we can draw full circles
Diffstat (limited to 'gerber/rs274x.py')
-rw-r--r--gerber/rs274x.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/gerber/rs274x.py b/gerber/rs274x.py
index 12400a1..bac5114 100644
--- a/gerber/rs274x.py
+++ b/gerber/rs274x.py
@@ -496,12 +496,12 @@ class GerberParser(object):
j = 0 if stmt.j is None else stmt.j
center = (start[0] + i, start[1] + j)
if self.region_mode == 'off':
- self.primitives.append(Arc(start, end, center, self.direction, self.apertures[self.aperture], level_polarity=self.level_polarity, units=self.settings.units))
+ self.primitives.append(Arc(start, end, center, self.direction, self.apertures[self.aperture], quadrant_mode=self.quadrant_mode, level_polarity=self.level_polarity, units=self.settings.units))
else:
if self.current_region is None:
- self.current_region = [Arc(start, end, center, self.direction, self.apertures.get(self.aperture, Circle((0,0), 0)), level_polarity=self.level_polarity, units=self.settings.units),]
+ self.current_region = [Arc(start, end, center, self.direction, self.apertures.get(self.aperture, Circle((0,0), 0)), quadrant_mode=self.quadrant_mode, level_polarity=self.level_polarity, units=self.settings.units),]
else:
- self.current_region.append(Arc(start, end, center, self.direction, self.apertures.get(self.aperture, Circle((0,0), 0)), level_polarity=self.level_polarity, units=self.settings.units))
+ self.current_region.append(Arc(start, end, center, self.direction, self.apertures.get(self.aperture, Circle((0,0), 0)), quadrant_mode=self.quadrant_mode, level_polarity=self.level_polarity, units=self.settings.units))
elif self.op == "D02" or self.op == "D2":
pass