Update to latest pcb-tools, fix level polarity issue
This commit is contained in:
parent
af267f30b8
commit
661f36dd0f
2 changed files with 2 additions and 2 deletions
0
gerbolyze
Normal file → Executable file
0
gerbolyze
Normal file → Executable file
|
|
@ -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 = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue