fix gerber open poly offsetting
This commit is contained in:
parent
f8cce06183
commit
508507e684
2 changed files with 2 additions and 2 deletions
|
|
@ -87,7 +87,7 @@ function toMesh(text, opt = {}) {
|
|||
// copper traces (expand first since open)
|
||||
const open_exp = open.map(poly => {
|
||||
const diam = poly.tool?.shape?.diameter;
|
||||
return diam ? poly.offset_open(diam, 'round') : null;
|
||||
return diam ? poly.offset_open(diam / 2, 'round') : null;
|
||||
}).filter(p => p).flat();
|
||||
|
||||
// union open trace expansions
|
||||
|
|
|
|||
|
|
@ -483,7 +483,7 @@ function load_files(files) {
|
|||
let { circs, closed, open, rects } = layer;
|
||||
open = open.map(poly => {
|
||||
const diam = poly.tool?.shape?.diameter;
|
||||
return diam ? poly.offset_open(diam, 'round') : null;
|
||||
return diam ? poly.offset_open(diam / 2, 'round') : null;
|
||||
}).filter(p => p).flat();
|
||||
for (let set of [ closed, open, circs, rects ]) {
|
||||
let group = Date.now().toString(36);
|
||||
|
|
|
|||
Loading…
Reference in a new issue