remove unworkable indexed mesh code
This commit is contained in:
parent
38f5399573
commit
1ac95d785b
2 changed files with 9 additions and 32 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Reference in a new issue