improve efficiency of wasm poly diff
This commit is contained in:
parent
e3a22326d4
commit
14ee94311d
5 changed files with 60 additions and 54 deletions
|
|
@ -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)),
|
||||
|
|
|
|||
Loading…
Reference in a new issue