From 965481e839b55ee7812224a72b10a48c59dd8fa5 Mon Sep 17 00:00:00 2001 From: "Mr.doob" Date: Tue, 23 Jul 2013 00:54:38 +0200 Subject: [PATCH] Updated builds. --- build/three.js | 2 ++ build/three.min.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/build/three.js b/build/three.js index 5a328610db..150fb458c6 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 edc046f352..fc346a743b 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