diff --git a/build/three.js b/build/three.js index 5a328610dbc6234ad83066e523a08fd5814de942..150fb458c6197f3b5eeba5834b46331bc28a20f1 100644 --- a/build/three.js +++ b/build/three.js @@ -9179,6 +9179,8 @@ THREE.BufferGeometry = function () { this.id = THREE.GeometryIdCount ++; this.uuid = THREE.Math.generateUUID(); + this.name = ''; + // attributes this.attributes = {}; diff --git a/build/three.min.js b/build/three.min.js index edc046f3524198648b4278d61d17f820d8e560fa..fc346a743bf5ad96e9eb1df3a2d786c53abee628 100644 --- a/build/three.min.js +++ b/build/three.min.js @@ -188,7 +188,7 @@ c;b++){f=this.faces[b];for(d=0;di;i++)if(g[i]==g[(i+1)%3]){e.push(f);break}}else if(a instanceof THREE.Face4){a.a=c[a.a];a.b=c[a.b];a.c=c[a.c];a.d=c[a.d];g=[a.a,a.b,a.c,a.d];d=-1;for(i=0;4>i;i++)g[i]==g[(i+1)%4]&&(0<=d&&e.push(f),d=i);if(0<=d){g.splice(d,1);var l=new THREE.Face3(g[0],g[1],g[2],a.normal,a.color,a.materialIndex);g=0;for(i=this.faceVertexUvs.length;gb.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(){null===this.boundingSphere&&(this.boundingSphere= new THREE.Sphere);var a=this.attributes.position.array;if(a){for(var b,c=0,d,e,f=0,h=a.length;fc&&(c=b);this.boundingSphere.radius=Math.sqrt(c)}},computeVertexNormals:function(){if(this.attributes.position){var a,b,c,d;a=this.attributes.position.array.length;if(void 0===this.attributes.normal)this.attributes.normal={itemSize:3,array:new Float32Array(a)};else{a=0;for(b=this.attributes.normal.array.length;a