start adding threading to SLA

This commit is contained in:
Stewart Allen 2021-06-24 18:15:51 -04:00
commit 11225739e5
4 changed files with 36 additions and 18 deletions

View file

@ -29,6 +29,7 @@
trimTo,
expand,
expand_lines,
points,
route,
union,
inset,
@ -145,6 +146,10 @@
return output;
}
function points(polys) {
return polys.length ? polys.map(p => p.deepLength).reduce((a,v) => a+v) : 0;
}
/**
* todo use clipper polytree?
*