THREE.BufferGeometry.prototype={constructor:THREE.BufferGeometry,addAttribute:function(a,b,c){!1===binstanceofTHREE.BufferAttribute&&!1===binstanceofTHREE.InterleavedBufferAttribute?(console.warn("THREE.BufferGeometry: .addAttribute() now expects ( name, attribute )."),this.attributes[a]={array:b,itemSize:c}):this.attributes[a]=b},getAttribute:function(a){returnthis.attributes[a]},getoffsets(){console.warn("THREE.BufferGeometry: .offsets has been renamed to .drawcalls.");returnthis.drawcalls},
b||0===b.length)this.boundingBox.min.set(0,0,0),this.boundingBox.max.set(0,0,0);(isNaN(this.boundingBox.min.x)||isNaN(this.boundingBox.min.y)||isNaN(this.boundingBox.min.z))&&console.error('THREE.BufferGeometry.computeBoundingBox: Computed min/max have NaN values. The "position" attribute is likely to have NaN values.',this)}}(),computeBoundingSphere:function(){vara=newTHREE.Box3,b=newTHREE.Vector3;returnfunction(){null===this.boundingSphere&&(this.boundingSphere=newTHREE.Sphere);varc=this.attributes.position.array;
if(c){a.makeEmpty();for(vard=this.boundingSphere.center,e=0,g=c.length;e<g;e+=3)b.fromArray(c,e),a.expandByPoint(b);a.center(d);for(varf=0,e=0,g=c.length;e<g;e+=3)b.fromArray(c,e),f=Math.max(f,d.distanceToSquared(b));this.boundingSphere.radius=Math.sqrt(f);isNaN(this.boundingSphere.radius)&&console.error('THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values.',this)}}}(),computeFaceNormals:function(){},computeVertexNormals:function(){vara=
l[b].add(F);l[c].add(F)}functionb(a){qa.fromArray(e,3*a);$.copy(qa);ga=k[a];T.copy(ga);T.sub(qa.multiplyScalar(qa.dot(ga))).normalize();K.crossVectors($,ga);ra=K.dot(l[a]);ja=0>ra?-1:1;h[4*a]=T.x;h[4*a+1]=T.y;h[4*a+2]=T.z;h[4*a+3]=ja}if(void0===this.attributes.index||void0===this.attributes.position||void0===this.attributes.normal||void0===this.attributes.uv)console.warn("THREE.BufferGeometry: Missing required attributes (index, position, normal or uv) in BufferGeometry.computeTangents()");else{varc=
e;d+=3)a.fromArray(b,d),c.expandByPoint(a)}if(void0===b||0===b.length)this.boundingBox.min.set(0,0,0),this.boundingBox.max.set(0,0,0);(isNaN(this.boundingBox.min.x)||isNaN(this.boundingBox.min.y)||isNaN(this.boundingBox.min.z))&&console.error('THREE.BufferGeometry.computeBoundingBox: Computed min/max have NaN values. The "position" attribute is likely to have NaN values.',this)}}(),computeBoundingSphere:function(){vara=newTHREE.Box3,b=newTHREE.Vector3;returnfunction(){null===this.boundingSphere&&
(this.boundingSphere=newTHREE.Sphere);varc=this.attributes.position.array;if(c){a.makeEmpty();for(vard=this.boundingSphere.center,e=0,g=c.length;e<g;e+=3)b.fromArray(c,e),a.expandByPoint(b);a.center(d);for(varf=0,e=0,g=c.length;e<g;e+=3)b.fromArray(c,e),f=Math.max(f,d.distanceToSquared(b));this.boundingSphere.radius=Math.sqrt(f);isNaN(this.boundingSphere.radius)&&console.error('THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN. The "position" attribute is likely to have NaN values.',
v-B*x)*z,(w*y-B*A)*z,(w*H-B*G)*z);k[a].add(Q);k[b].add(Q);k[c].add(Q);l[a].add(F);l[b].add(F);l[c].add(F)}functionb(a){qa.fromArray(e,3*a);$.copy(qa);ga=k[a];T.copy(ga);T.sub(qa.multiplyScalar(qa.dot(ga))).normalize();K.crossVectors($,ga);ra=K.dot(l[a]);ja=0>ra?-1:1;h[4*a]=T.x;h[4*a+1]=T.y;h[4*a+2]=T.z;h[4*a+3]=ja}if(void0===this.attributes.index||void0===this.attributes.position||void0===this.attributes.normal||void0===this.attributes.uv)console.warn("THREE.BufferGeometry: Missing required attributes (index, position, normal or uv) in BufferGeometry.computeTangents()");
l++):(p[2*s]=t,p[2*s+1]=n[t]);if(f+m>k.index+a)for(k={start:g,count:0,index:f},h.push(k),m=0;6>m;m+=2)s=p[m+1],-1<s&&s<k.index&&(p[m+1]=-1);for(m=0;6>m;m+=2)t=p[m],s=p[m+1],-1===s&&(s=f++),n[t]=s,q[s]=t,e[g++]=s-k.index,k.count++}this.reorderBuffers(e,q,f);this.clearDrawCalls();for(a=0;a<h.length;a++)b=h[a],this.addDrawCall(b.start,b.count,b.index)},merge:function(a,b){if(!1===ainstanceofTHREE.BufferGeometry)console.error("THREE.BufferGeometry.merge(): geometry not an instance of THREE.BufferGeometry.",