diff --git a/build/three.js b/build/three.js index aeadb1be6671b1733bc012afd7b4b9f012e18df2..863df0f5c659e1af375ae24ab4daea02cc70dfee 100644 --- a/build/three.js +++ b/build/three.js @@ -8930,12 +8930,13 @@ THREE.Geometry.prototype = { } for ( i = faceIndicesToRemove.length - 1; i >= 0; i -- ) { - - this.faces.splice( i, 1 ); + var idx = faceIndicesToRemove[ i ]; + + this.faces.splice( idx, 1 ); for ( j = 0, jl = this.faceVertexUvs.length; j < jl; j ++ ) { - this.faceVertexUvs[ j ].splice( i, 1 ); + this.faceVertexUvs[ j ].splice( idx, 1 ); } diff --git a/build/three.min.js b/build/three.min.js index b7169d1f068fc031c1bb1ad3f149f15b6d45ef7d..5962386b4839a7ca2ccb96e80aeaac3ee6016010 100644 --- a/build/three.min.js +++ b/build/three.min.js @@ -182,8 +182,8 @@ c=0;for(d=this.faces.length;cd?-1:1,e.vertexTangents[c]=new THREE.Vector4(E.x,E.y,E.z,d)}this.hasTangents=!0},computeLineDistances:function(){for(var a=0,b=this.vertices,c=0,d=b.length;cd;d++)if(e[d]==e[(d+1)%3]){a.push(f);break}}for(f=a.length-1;0<=f;f--){this.faces.splice(f,1);c=0;for(h=this.faceVertexUvs.length;cd;d++)if(e[d]==e[(d+1)%3]){a.push(f);break}}for(f=a.length-1;0<=f;f--){e=a[f];this.faces.splice(e,1);c=0;for(h=this.faceVertexUvs.length;cb.max.x&&(b.max.x=c),db.max.y&&(b.max.y=d),eb.max.z&&(b.max.z=e)}if(void 0===a||0===a.length)this.boundingBox.min.set(0,0,0),this.boundingBox.max.set(0,0,0)},computeBoundingSphere:function(){var a=new THREE.Box3,b=new THREE.Vector3;return function(){null=== this.boundingSphere&&(this.boundingSphere=new THREE.Sphere);var c=this.attributes.position.array;if(c){for(var d=this.boundingSphere.center,e=0,f=c.length;e