aboutsummaryrefslogtreecommitdiff
path: root/gerbolyze/gerbolyze.py
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2021-02-01 09:26:55 +0100
committerjaseg <git@jaseg.de>2021-02-01 12:46:50 +0100
commitfc495607dccbbf9820b67079508a6786010475b7 (patch)
treed53551c20f664582ddfec83d7b3248233f665131 /gerbolyze/gerbolyze.py
parent5f4f667e17823471f8bf81e5b6ef680ae0576378 (diff)
downloadgerbolyze-fc495607dccbbf9820b67079508a6786010475b7.tar.gz
gerbolyze-fc495607dccbbf9820b67079508a6786010475b7.tar.bz2
gerbolyze-fc495607dccbbf9820b67079508a6786010475b7.zip
Update README
Diffstat (limited to 'gerbolyze/gerbolyze.py')
-rwxr-xr-xgerbolyze/gerbolyze.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gerbolyze/gerbolyze.py b/gerbolyze/gerbolyze.py
index 423adc6..c3107eb 100755
--- a/gerbolyze/gerbolyze.py
+++ b/gerbolyze/gerbolyze.py
@@ -96,6 +96,7 @@ def paste(input_gerbers, output_gerbers, top, bottom,
outfile = tmpdir / 'dilated-{layer}-{amount}.gbr'
dilate_gerber(layers, layer, amount, bbox, tmpdir, outfile, units)
gbr = gerberex.read(str(outfile))
+ gbr.offset(bounds[0][0], bounds[1][0])
return gbr
for layer, input_files in layers.items():
@@ -121,8 +122,8 @@ def paste(input_gerbers, output_gerbers, top, bottom,
print('compositing')
comp = gerberex.GerberComposition()
foo = gerberex.rs274x.GerberFile.from_gerber_file(in_grb.cam_source)
- foo.offset(-bounds[0][0], -bounds[1][0])
comp.merge(foo)
+ overlay_grb.offset(bounds[0][0], bounds[1][0])
comp.merge(overlay_grb)
dilations = subtract_map.get(layer, [])
for d_layer, amount in dilations: