add raw vertex input in devel mode. stub in slice connect shadow test for performance over plain face union

This commit is contained in:
Stewart Allen 2022-05-03 09:02:09 -04:00
commit 9454eeb287
7 changed files with 55 additions and 10 deletions

View file

@ -129,7 +129,7 @@ CAM.slice = function(settings, widget, onupdate, ondone) {
// const merge = shadow.length;
// const plus = shadows[minZabove].length;
// const mark = Date.now();
shadow = POLY.union([...shadow, ...shadows[minZabove]], 0.0011, true);
shadow = POLY.union([...shadow, ...shadows[minZabove]], 0.001, true);
// console.log({merge, plus, equals: shadow.length, time: Date.now() - mark});
}
return shadows[z] = POLY.setZ(shadow, z);