From cf4957aee491d225b78993edacb0c4e21fcc20eb Mon Sep 17 00:00:00 2001 From: jaseg Date: Thu, 30 Dec 2021 00:24:05 +0100 Subject: All round trip tests pass --- gerbonara/gerber/graphic_objects.py | 2 +- gerbonara/gerber/rs274x.py | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/gerbonara/gerber/graphic_objects.py b/gerbonara/gerber/graphic_objects.py index 93f9884..97c664c 100644 --- a/gerbonara/gerber/graphic_objects.py +++ b/gerbonara/gerber/graphic_objects.py @@ -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) diff --git a/gerbonara/gerber/rs274x.py b/gerbonara/gerber/rs274x.py index ad5e494..28949c5 100644 --- a/gerbonara/gerber/rs274x.py +++ b/gerbonara/gerber/rs274x.py @@ -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) -- cgit