remove svg from cli. notes
This commit is contained in:
parent
e970d377b2
commit
01beba9eb5
3 changed files with 2 additions and 4 deletions
|
|
@ -5,7 +5,6 @@
|
|||
"add/class",
|
||||
"ext/three",
|
||||
"ext/three-bgu",
|
||||
"ext/three-svg",
|
||||
"add/three",
|
||||
"ext/clip2",
|
||||
"ext/earcut",
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue