diff options
author | jaseg <git@jaseg.net> | 2019-02-03 14:44:03 +0900 |
---|---|---|
committer | jaseg <git@jaseg.net> | 2019-02-03 14:44:03 +0900 |
commit | 661f36dd0f27d9df8e4bfa817a1b43da0401b625 (patch) | |
tree | 68bdf44adc909cf0e34692cf32d295d5aa9ef8dc | |
parent | af267f30b8479fe8ec4e8858013f43ca18a2b86d (diff) | |
download | gerbolyze-661f36dd0f27d9df8e4bfa817a1b43da0401b625.tar.gz gerbolyze-661f36dd0f27d9df8e4bfa817a1b43da0401b625.tar.bz2 gerbolyze-661f36dd0f27d9df8e4bfa817a1b43da0401b625.zip |
Update to latest pcb-tools, fix level polarity issue
-rwxr-xr-x[-rw-r--r--] | gerbolyze | 0 | ||||
-rwxr-xr-x | gerbolyze.py | 4 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gerbolyze b/gerbolyze index e6c6d67..e6c6d67 100644..100755 --- a/gerbolyze +++ b/gerbolyze 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 = [] |