From 661f36dd0f27d9df8e4bfa817a1b43da0401b625 Mon Sep 17 00:00:00 2001 From: jaseg Date: Sun, 3 Feb 2019 14:44:03 +0900 Subject: Update to latest pcb-tools, fix level polarity issue --- gerbolyze | 0 gerbolyze.py | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 gerbolyze diff --git a/gerbolyze b/gerbolyze old mode 100644 new mode 100755 diff --git a/gerbolyze.py b/gerbolyze.py index 6ad81aa..9ed30d4 100755 --- a/gerbolyze.py +++ b/gerbolyze.py @@ -9,7 +9,7 @@ import shutil import math import gerber -from gerber.render import GerberCairoContext +from gerber.render.cairo_backend import GerberCairoContext import numpy as np import cv2 import enum @@ -240,7 +240,7 @@ def plot_contours( x, y = coord return (x/scale + xbias, y/scale + ybias) def contour_lines(c): - return [ Line(map(start), map(end), aperture, level_polarity='dark', units=layer.settings.units) + return [ Line(map(start), map(end), aperture, units=layer.settings.units) for start, end in zip(c, np.vstack((c[1:], c[:1]))) ] done = [] -- cgit