remove unworkable indexed mesh code

This commit is contained in:
Stewart Allen 2022-05-15 15:20:39 -04:00
commit 1ac95d785b
2 changed files with 9 additions and 32 deletions

View file

@ -164,7 +164,6 @@ class Stack {
} else {
geo.setAttribute('position', new THREE.BufferAttribute(faces, 3));
}
// geo.computeFaceNormals();
geo.computeVertexNormals();
if (cface) {
cface.forEach((c, i) => geo.addGroup(c.start, c.count, i));
@ -192,7 +191,6 @@ class Stack {
const geo = new THREE.BufferGeometry();
geo.setAttribute('position', new THREE.BufferAttribute(faces, 3));
geo.setIndex(index);
// geo.computeFaceNormals();
geo.computeVertexNormals();
if (cpath) {
cpath.forEach((c, i) => geo.addGroup(c.start, c.count, i));