improve efficiency of wasm poly diff

This commit is contained in:
Stewart Allen 2021-06-23 11:13:45 -04:00
commit 14ee94311d
5 changed files with 60 additions and 54 deletions

View file

@ -1171,7 +1171,7 @@
// create inner clip offset from tops (unless pre-computed)
if (!slice.offsets) {
// POLY.expand(tops, offset, slice.z, slice.offsets = []);
slice.offsets = geo.poly.offset(tops, offset, slice.z);
slice.offsets = geo.wasm.js.offset(tops, offset, slice.z);
}
let traces = POLY.flatten(slice.topShells().clone(true)),