aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjaseg <git@jaseg.net>2019-02-03 14:44:03 +0900
committerjaseg <git@jaseg.net>2019-02-03 14:44:03 +0900
commit661f36dd0f27d9df8e4bfa817a1b43da0401b625 (patch)
tree68bdf44adc909cf0e34692cf32d295d5aa9ef8dc
parentaf267f30b8479fe8ec4e8858013f43ca18a2b86d (diff)
downloadgerbolyze-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--]gerbolyze0
-rwxr-xr-xgerbolyze.py4
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 = []