remove svg from cli. notes

This commit is contained in:
Stewart Allen 2022-10-16 10:23:33 -04:00
commit 01beba9eb5
3 changed files with 2 additions and 4 deletions

View file

@ -5,7 +5,6 @@
"add/class",
"ext/three",
"ext/three-bgu",
"ext/three-svg",
"add/three",
"ext/clip2",
"ext/earcut",

View file

@ -222,8 +222,7 @@ class Layers {
continue;
}
if (one) {
// merge all contour geometry for massive speed gain
// todo: recode to concat all geometries at once, and not incrementally
// for some reason, incremental merge is faster than all at the end
const add = one.faces.length / 3;
const feces = new Float32Array(one.faces.length + faces.length);
const indln = one.faces.length / 3;

View file

@ -192,7 +192,7 @@ class Stack {
}
mat.forEach(m => m.visible = defstate);
// const mat = newMat(data);
const { index, faces, norms, z, colors } = paths;
const { index, faces, norms, z } = paths;
const geo = new THREE.BufferGeometry();
geo.setAttribute('position', new THREE.BufferAttribute(faces, 3));
if (index && index.length) {