|
@@ -433,10 +433,10 @@ function c(a,b){var c=b.geometry,e=a.faces3,f=3*e.length,g=1*e.length,h=3*e.leng
|
|
f));c=null!==tb&&21845<g?Uint32Array:Uint16Array;a.__typeArray=c;a.__faceArray=new c(3*g);a.__lineArray=new c(2*h);var k;if(a.numMorphTargets)for(a.__morphTargetsArrays=[],c=0,k=a.numMorphTargets;c<k;c++)a.__morphTargetsArrays.push(new Float32Array(3*f));if(a.numMorphNormals)for(a.__morphNormalsArrays=[],c=0,k=a.numMorphNormals;c<k;c++)a.__morphNormalsArrays.push(new Float32Array(3*f));a.__webglFaceCount=3*g;a.__webglLineCount=2*h;if(e.attributes){void 0===a.__webglCustomAttributesList&&(a.__webglCustomAttributesList=
|
|
f));c=null!==tb&&21845<g?Uint32Array:Uint16Array;a.__typeArray=c;a.__faceArray=new c(3*g);a.__lineArray=new c(2*h);var k;if(a.numMorphTargets)for(a.__morphTargetsArrays=[],c=0,k=a.numMorphTargets;c<k;c++)a.__morphTargetsArrays.push(new Float32Array(3*f));if(a.numMorphNormals)for(a.__morphNormalsArrays=[],c=0,k=a.numMorphNormals;c<k;c++)a.__morphNormalsArrays.push(new Float32Array(3*f));a.__webglFaceCount=3*g;a.__webglLineCount=2*h;if(e.attributes){void 0===a.__webglCustomAttributesList&&(a.__webglCustomAttributesList=
|
|
[]);for(var m in e.attributes){var g=e.attributes[m],h={},n;for(n in g)h[n]=g[n];if(!h.__webglInitialized||h.createUniqueBuffers)h.__webglInitialized=!0,c=1,"v2"===h.type?c=2:"v3"===h.type?c=3:"v4"===h.type?c=4:"c"===h.type&&(c=3),h.size=c,h.array=new Float32Array(f*c),h.buffer=l.createBuffer(),h.buffer.belongsToAttribute=m,g.needsUpdate=!0,h.__original=g;a.__webglCustomAttributesList.push(h)}}a.__inittedArrays=!0}function d(a,b){return a.material instanceof THREE.MeshFaceMaterial?a.material.materials[b.materialIndex]:
|
|
[]);for(var m in e.attributes){var g=e.attributes[m],h={},n;for(n in g)h[n]=g[n];if(!h.__webglInitialized||h.createUniqueBuffers)h.__webglInitialized=!0,c=1,"v2"===h.type?c=2:"v3"===h.type?c=3:"v4"===h.type?c=4:"c"===h.type&&(c=3),h.size=c,h.array=new Float32Array(f*c),h.buffer=l.createBuffer(),h.buffer.belongsToAttribute=m,g.needsUpdate=!0,h.__original=g;a.__webglCustomAttributesList.push(h)}}a.__inittedArrays=!0}function d(a,b){return a.material instanceof THREE.MeshFaceMaterial?a.material.materials[b.materialIndex]:
|
|
a.material}function e(a,b,c,d){c=c.attributes;var e=b.attributes;b=b.attributesKeys;for(var g=0,k=b.length;g<k;g++){var m=b[g],n=e[m];if(0<=n){var r=c[m];void 0!==r?(m=r.itemSize,l.bindBuffer(l.ARRAY_BUFFER,r.buffer),f(n),l.vertexAttribPointer(n,m,l.FLOAT,!1,0,d*m*4)):void 0!==a.defaultAttributeValues&&(2===a.defaultAttributeValues[m].length?l.vertexAttrib2fv(n,a.defaultAttributeValues[m]):3===a.defaultAttributeValues[m].length&&l.vertexAttrib3fv(n,a.defaultAttributeValues[m]))}}h()}function g(){for(var a=
|
|
a.material}function e(a,b,c,d){c=c.attributes;var e=b.attributes;b=b.attributesKeys;for(var g=0,k=b.length;g<k;g++){var m=b[g],n=e[m];if(0<=n){var r=c[m];void 0!==r?(m=r.itemSize,l.bindBuffer(l.ARRAY_BUFFER,r.buffer),f(n),l.vertexAttribPointer(n,m,l.FLOAT,!1,0,d*m*4)):void 0!==a.defaultAttributeValues&&(2===a.defaultAttributeValues[m].length?l.vertexAttrib2fv(n,a.defaultAttributeValues[m]):3===a.defaultAttributeValues[m].length&&l.vertexAttrib3fv(n,a.defaultAttributeValues[m]))}}h()}function g(){for(var a=
|
|
-0,b=Nb.length;a<b;a++)Nb[a]=0}function f(a){Nb[a]=1;0===xb[a]&&(l.enableVertexAttribArray(a),xb[a]=1)}function h(){for(var a=0,b=xb.length;a<b;a++)xb[a]!==Nb[a]&&(l.disableVertexAttribArray(a),xb[a]=0)}function k(a,b){return a.material.id!==b.material.id?b.material.id-a.material.id:a.z!==b.z?b.z-a.z:a.id-b.id}function m(a,b){return a.z!==b.z?a.z-b.z:a.id-b.id}function n(a,b){return b[0]-a[0]}function q(a,e){if(!1!==e.visible){e instanceof THREE.Light&&Fa.push(e);if(!(e instanceof THREE.Scene)){void 0===
|
|
|
|
-e.__webglInit&&(e.__webglInit=!0,e._modelViewMatrix=new THREE.Matrix4,e._normalMatrix=new THREE.Matrix3,e.addEventListener("removed",Dc));var f=e.geometry;if(void 0!==f&&void 0===f.__webglInit&&(f.__webglInit=!0,f.addEventListener("dispose",Ec),!(f instanceof THREE.BufferGeometry)))if(e instanceof THREE.Mesh)v(a,e,f);else if(e instanceof THREE.Line){if(!f.__webglVertexBuffer){f.__webglVertexBuffer=l.createBuffer();f.__webglColorBuffer=l.createBuffer();f.__webglLineDistanceBuffer=l.createBuffer();
|
|
|
|
-H.info.memory.geometries++;var g=f.vertices.length;f.__vertexArray=new Float32Array(3*g);f.__colorArray=new Float32Array(3*g);f.__lineDistanceArray=new Float32Array(1*g);f.__webglLineCount=g;b(f,e);f.verticesNeedUpdate=!0;f.colorsNeedUpdate=!0;f.lineDistancesNeedUpdate=!0}}else if(e instanceof THREE.PointCloud&&!f.__webglVertexBuffer){f.__webglVertexBuffer=l.createBuffer();f.__webglColorBuffer=l.createBuffer();H.info.memory.geometries++;var h=f.vertices.length;f.__vertexArray=new Float32Array(3*h);
|
|
|
|
-f.__colorArray=new Float32Array(3*h);f.__sortArray=[];f.__webglParticleCount=h;b(f,e);f.verticesNeedUpdate=!0;f.colorsNeedUpdate=!0}if(void 0===e.__webglActive){if(e instanceof THREE.Mesh)if(f instanceof THREE.BufferGeometry)w(Ga,f,e);else{if(f instanceof THREE.Geometry)for(var k=0,m=f.geometryGroupsList.length;k<m;k++)w(Ga,f.geometryGroupsList[k],e)}else e instanceof THREE.Line||e instanceof THREE.PointCloud?w(Ga,f,e):(e instanceof THREE.ImmediateRenderObject||e.immediateRenderCallback)&&La.push({id:null,
|
|
|
|
|
|
+0,b=Nb.length;a<b;a++)Nb[a]=0}function f(a){Nb[a]=1;0===xb[a]&&(l.enableVertexAttribArray(a),xb[a]=1)}function h(){for(var a=0,b=xb.length;a<b;a++)xb[a]!==Nb[a]&&(l.disableVertexAttribArray(a),xb[a]=0)}function k(a,b){return a.material.id!==b.material.id?b.material.id-a.material.id:a.z!==b.z?b.z-a.z:a.id-b.id}function m(a,b){return a.z!==b.z?a.z-b.z:a.id-b.id}function n(a,b){return b[0]-a[0]}function q(a,e){if(!1!==e.visible){e instanceof THREE.Light&&Fa.push(e);if(!(e instanceof THREE.Scene||e instanceof
|
|
|
|
+THREE.Group)){void 0===e.__webglInit&&(e.__webglInit=!0,e._modelViewMatrix=new THREE.Matrix4,e._normalMatrix=new THREE.Matrix3,e.addEventListener("removed",Dc));var f=e.geometry;if(void 0!==f&&void 0===f.__webglInit&&(f.__webglInit=!0,f.addEventListener("dispose",Ec),!(f instanceof THREE.BufferGeometry)))if(e instanceof THREE.Mesh)v(a,e,f);else if(e instanceof THREE.Line){if(!f.__webglVertexBuffer){f.__webglVertexBuffer=l.createBuffer();f.__webglColorBuffer=l.createBuffer();f.__webglLineDistanceBuffer=
|
|
|
|
+l.createBuffer();H.info.memory.geometries++;var g=f.vertices.length;f.__vertexArray=new Float32Array(3*g);f.__colorArray=new Float32Array(3*g);f.__lineDistanceArray=new Float32Array(1*g);f.__webglLineCount=g;b(f,e);f.verticesNeedUpdate=!0;f.colorsNeedUpdate=!0;f.lineDistancesNeedUpdate=!0}}else if(e instanceof THREE.PointCloud&&!f.__webglVertexBuffer){f.__webglVertexBuffer=l.createBuffer();f.__webglColorBuffer=l.createBuffer();H.info.memory.geometries++;var h=f.vertices.length;f.__vertexArray=new Float32Array(3*
|
|
|
|
+h);f.__colorArray=new Float32Array(3*h);f.__sortArray=[];f.__webglParticleCount=h;b(f,e);f.verticesNeedUpdate=!0;f.colorsNeedUpdate=!0}if(void 0===e.__webglActive){if(e instanceof THREE.Mesh)if(f instanceof THREE.BufferGeometry)w(Ga,f,e);else{if(f instanceof THREE.Geometry)for(var k=0,m=f.geometryGroupsList.length;k<m;k++)w(Ga,f.geometryGroupsList[k],e)}else e instanceof THREE.Line||e instanceof THREE.PointCloud?w(Ga,f,e):(e instanceof THREE.ImmediateRenderObject||e.immediateRenderCallback)&&La.push({id:null,
|
|
object:e,opaque:null,transparent:null,z:0});e.__webglActive=!0}var r=Ga[e.id];if(r&&(!1===e.frustumCulled||!0===Ac.intersectsObject(e))){var p=e.geometry,s,t,x;if(p instanceof THREE.BufferGeometry)for(var y=p.attributes,B=p.attributesKeys,C=0,F=B.length;C<F;C++){var D=B[C],J=y[D];void 0===J.buffer&&(J.buffer=l.createBuffer(),J.needsUpdate=!0);if(!0===J.needsUpdate){var N="index"===D?l.ELEMENT_ARRAY_BUFFER:l.ARRAY_BUFFER;l.bindBuffer(N,J.buffer);l.bufferData(N,J.array,l.STATIC_DRAW);J.needsUpdate=
|
|
object:e,opaque:null,transparent:null,z:0});e.__webglActive=!0}var r=Ga[e.id];if(r&&(!1===e.frustumCulled||!0===Ac.intersectsObject(e))){var p=e.geometry,s,t,x;if(p instanceof THREE.BufferGeometry)for(var y=p.attributes,B=p.attributesKeys,C=0,F=B.length;C<F;C++){var D=B[C],J=y[D];void 0===J.buffer&&(J.buffer=l.createBuffer(),J.needsUpdate=!0);if(!0===J.needsUpdate){var N="index"===D?l.ELEMENT_ARRAY_BUFFER:l.ARRAY_BUFFER;l.bindBuffer(N,J.buffer);l.bufferData(N,J.array,l.STATIC_DRAW);J.needsUpdate=
|
|
!1}}else if(e instanceof THREE.Mesh){(p.buffersNeedUpdate||p.groupsNeedUpdate)&&v(a,e,p);for(var I=0,R=p.geometryGroupsList.length;I<R;I++)if(s=p.geometryGroupsList[I],x=d(e,s),(p.buffersNeedUpdate||p.groupsNeedUpdate)&&c(s,e),t=x.attributes&&u(x),p.verticesNeedUpdate||p.morphTargetsNeedUpdate||p.elementsNeedUpdate||p.uvsNeedUpdate||p.normalsNeedUpdate||p.colorsNeedUpdate||p.tangentsNeedUpdate||t){var G=s,K=l.DYNAMIC_DRAW,M=!p.dynamic,la=x;if(G.__inittedArrays){var S=la&&void 0!==la.shading&&la.shading===
|
|
!1}}else if(e instanceof THREE.Mesh){(p.buffersNeedUpdate||p.groupsNeedUpdate)&&v(a,e,p);for(var I=0,R=p.geometryGroupsList.length;I<R;I++)if(s=p.geometryGroupsList[I],x=d(e,s),(p.buffersNeedUpdate||p.groupsNeedUpdate)&&c(s,e),t=x.attributes&&u(x),p.verticesNeedUpdate||p.morphTargetsNeedUpdate||p.elementsNeedUpdate||p.uvsNeedUpdate||p.normalsNeedUpdate||p.colorsNeedUpdate||p.tangentsNeedUpdate||t){var G=s,K=l.DYNAMIC_DRAW,M=!p.dynamic,la=x;if(G.__inittedArrays){var S=la&&void 0!==la.shading&&la.shading===
|
|
THREE.SmoothShading,P=void 0,L=void 0,W=void 0,da=void 0,Ha=void 0,ba=void 0,xa=void 0,Za=void 0,ha=void 0,ya=void 0,ta=void 0,V=void 0,X=void 0,Y=void 0,sa=void 0,ra=void 0,za=void 0,Ma=void 0,pa=void 0,O=void 0,wb=void 0,ma=void 0,Qa=void 0,ka=void 0,qc=void 0,rc=void 0,sc=void 0,Ba=void 0,Ea=void 0,Aa=void 0,Ua=void 0,Ka=void 0,Wa=void 0,va=void 0,Na=void 0,Fb=void 0,$a=void 0,db=void 0,Bb=void 0,Gb=void 0,ab=0,jb=0,Hb=0,tc=0,uc=0,bb=0,Oa=0,ob=0,Ra=0,ga=0,na=0,E=0,Pa=void 0,eb=G.__vertexArray,
|
|
THREE.SmoothShading,P=void 0,L=void 0,W=void 0,da=void 0,Ha=void 0,ba=void 0,xa=void 0,Za=void 0,ha=void 0,ya=void 0,ta=void 0,V=void 0,X=void 0,Y=void 0,sa=void 0,ra=void 0,za=void 0,Ma=void 0,pa=void 0,O=void 0,wb=void 0,ma=void 0,Qa=void 0,ka=void 0,qc=void 0,rc=void 0,sc=void 0,Ba=void 0,Ea=void 0,Aa=void 0,Ua=void 0,Ka=void 0,Wa=void 0,va=void 0,Na=void 0,Fb=void 0,$a=void 0,db=void 0,Bb=void 0,Gb=void 0,ab=0,jb=0,Hb=0,tc=0,uc=0,bb=0,Oa=0,ob=0,Ra=0,ga=0,na=0,E=0,Pa=void 0,eb=G.__vertexArray,
|