All round trip tests pass

This commit is contained in:
jaseg 2021-12-30 00:24:05 +01:00
parent 5359e9cb37
commit cf4957aee4
2 changed files with 1 additions and 3 deletions

View file

@ -32,6 +32,7 @@ class Flash(GerberObject):
yield from gs.set_polarity(self.polarity_dark)
yield from gs.set_aperture(self.aperture)
yield FlashStmt(self.x, self.y)
gs.update_point(self.x, self.y)
class Region(GerberObject):
def __init__(self, outline=None, arc_centers=None, *, polarity_dark):
@ -120,7 +121,6 @@ class Line(GerberObject):
yield from gs.set_aperture(self.aperture)
yield from gs.set_interpolation_mode(LinearModeStmt)
yield from gs.set_current_point(self.p1)
print('interpolate', self.p2)
yield InterpolateStmt(*self.p2)
gs.update_point(*self.p2)

View file

@ -366,9 +366,7 @@ class GraphicsState:
yield ApertureStmt(self.aperture_map[id(aperture)])
def set_current_point(self, point):
print(f'current point {self.point}')
if self.point != point:
print(f'current point update {point}')
self.point = point
yield MoveStmt(*point)