update pool ordering strategy. change expand() to use offset()
This commit is contained in:
parent
3b07a089dd
commit
fd4270d29f
2 changed files with 21 additions and 9 deletions
|
|
@ -441,9 +441,9 @@
|
|||
* @returns {Polygon[]} last offset
|
||||
*/
|
||||
function expand(polys, distance, z, out, count, distance2, collector, min) {
|
||||
// return offset(polys, [distance, distance2 || distance], {
|
||||
// z, outs: out, call: collector, minArea: min, count, flat: true
|
||||
// });
|
||||
return offset(polys, [distance, distance2 || distance], {
|
||||
z, outs: out, call: collector, minArea: min, count, flat: true
|
||||
});
|
||||
|
||||
// prepare alignments for clipper lib
|
||||
alignWindings(polys);
|
||||
|
|
|
|||
Loading…
Reference in a new issue