diff --git a/build/Three.js b/build/Three.js index 03d4cef6..e21700b2 100755 --- a/build/Three.js +++ b/build/Three.js @@ -12,7 +12,7 @@ this.length();b>0?this.multiplyScalar(1/b):this.set(0,0,0);return this},setPosit 1.0E-4&&Math.abs(this.z)<1.0E-4},clone:function(){return new THREE.Vector3(this.x,this.y,this.z)}};THREE.Vector4=function(b,c,d,f){this.set(b||0,c||0,d||0,f||1)}; THREE.Vector4.prototype={set:function(b,c,d,f){this.x=b;this.y=c;this.z=d;this.w=f;return this},copy:function(b){this.set(b.x,b.y,b.z,b.w||1);return this},add:function(b,c){this.set(b.x+c.x,b.y+c.y,b.z+c.z,b.w+c.w);return this},addSelf:function(b){this.set(this.x+b.x,this.y+b.y,this.z+b.z,this.w+b.w);return this},sub:function(b,c){this.set(b.x-c.x,b.y-c.y,b.z-c.z,b.w-c.w);return this},subSelf:function(b){this.set(this.x-b.x,this.y-b.y,this.z-b.z,this.w-b.w);return this},multiplyScalar:function(b){this.set(this.x* b,this.y*b,this.z*b,this.w*b);return this},divideScalar:function(b){this.set(this.x/b,this.y/b,this.z/b,this.w/b);return this},lerpSelf:function(b,c){this.set(this.x+(b.x-this.x)*c,this.y+(b.y-this.y)*c,this.z+(b.z-this.z)*c,this.w+(b.w-this.w)*c)},clone:function(){return new THREE.Vector4(this.x,this.y,this.z,this.w)}};THREE.Ray=function(b,c){this.origin=b||new THREE.Vector3;this.direction=c||new THREE.Vector3}; -THREE.Ray.prototype={intersectScene:function(b){var c,d,f=b.objects,g=[];b=0;for(c=f.length;b0&&G>0&&P+G<1}var d,f,g,h,j,k,n,p,o,w, +THREE.Ray.prototype={intersectScene:function(b){var c,d,f=b.objects,g=[];b=0;for(c=f.length;b0&&G>0&&P+G<1}var d,f,g,h,j,k,n,p,o,w, y,v=b.geometry,A=v.vertices,F=[];d=0;for(f=v.faces.length;d0:o<0)){p=p.dot((new THREE.Vector3).sub(h,w))/ o;w=w.addSelf(y.multiplyScalar(p));if(g instanceof THREE.Face3){if(c(w,h,j,k)){g={distance:this.origin.distanceTo(w),point:w,face:g,object:b};F.push(g)}}else if(g instanceof THREE.Face4&&(c(w,h,j,n)||c(w,j,k,n))){g={distance:this.origin.distanceTo(w),point:w,face:g,object:b};F.push(g)}}}return F}}; THREE.Rectangle=function(){function b(){h=f-c;j=g-d}var c,d,f,g,h,j,k=!0;this.getX=function(){return c};this.getY=function(){return d};this.getWidth=function(){return h};this.getHeight=function(){return j};this.getLeft=function(){return c};this.getTop=function(){return d};this.getRight=function(){return f};this.getBottom=function(){return g};this.set=function(n,p,o,w){k=!1;c=n;d=p;f=o;g=w;b()};this.addPoint=function(n,p){if(k){k=!1;c=n;d=p;f=n;g=p}else{c=cn?f:n;g=g>p?g:p}b()}; @@ -23,8 +23,8 @@ THREE.Matrix4=function(b,c,d,f,g,h,j,k,n,p,o,w,y,v,A,F){this.set(b||1,c||0,d||0, THREE.Matrix4.prototype={set:function(b,c,d,f,g,h,j,k,n,p,o,w,y,v,A,F){this.n11=b;this.n12=c;this.n13=d;this.n14=f;this.n21=g;this.n22=h;this.n23=j;this.n24=k;this.n31=n;this.n32=p;this.n33=o;this.n34=w;this.n41=y;this.n42=v;this.n43=A;this.n44=F;return this},identity:function(){this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1);return this},copy:function(b){this.set(b.n11,b.n12,b.n13,b.n14,b.n21,b.n22,b.n23,b.n24,b.n31,b.n32,b.n33,b.n34,b.n41,b.n42,b.n43,b.n44);return this},lookAt:function(b,c,d){var f=THREE.Matrix4.__v1, g=THREE.Matrix4.__v2,h=THREE.Matrix4.__v3;h.sub(b,c).normalize();if(h.length()===0)h.z=1;f.cross(d,h).normalize();if(f.length()===0){h.x+=1.0E-4;f.cross(d,h).normalize()}g.cross(h,f).normalize();this.n11=f.x;this.n12=g.x;this.n13=h.x;this.n21=f.y;this.n22=g.y;this.n23=h.y;this.n31=f.z;this.n32=g.z;this.n33=h.z;return this},multiplyVector3:function(b){var c=b.x,d=b.y,f=b.z,g=1/(this.n41*c+this.n42*d+this.n43*f+this.n44);b.x=(this.n11*c+this.n12*d+this.n13*f+this.n14)*g;b.y=(this.n21*c+this.n22*d+this.n23* f+this.n24)*g;b.z=(this.n31*c+this.n32*d+this.n33*f+this.n34)*g;return b},multiplyVector4:function(b){var c=b.x,d=b.y,f=b.z,g=b.w;b.x=this.n11*c+this.n12*d+this.n13*f+this.n14*g;b.y=this.n21*c+this.n22*d+this.n23*f+this.n24*g;b.z=this.n31*c+this.n32*d+this.n33*f+this.n34*g;b.w=this.n41*c+this.n42*d+this.n43*f+this.n44*g;return b},rotateAxis:function(b){var c=b.x,d=b.y,f=b.z;b.x=c*this.n11+d*this.n12+f*this.n13;b.y=c*this.n21+d*this.n22+f*this.n23;b.z=c*this.n31+d*this.n32+f*this.n33;b.normalize(); -return b},crossVector:function(b){var c=new THREE.Vector4;c.x=this.n11*b.x+this.n12*b.y+this.n13*b.z+this.n14*b.w;c.y=this.n21*b.x+this.n22*b.y+this.n23*b.z+this.n24*b.w;c.z=this.n31*b.x+this.n32*b.y+this.n33*b.z+this.n34*b.w;c.w=b.w?this.n41*b.x+this.n42*b.y+this.n43*b.z+this.n44*b.w:1;return c},multiply:function(b,c){var d=b.n11,f=b.n12,g=b.n13,h=b.n14,j=b.n21,k=b.n22,n=b.n23,p=b.n24,o=b.n31,w=b.n32,y=b.n33,v=b.n34,A=b.n41,F=b.n42,G=b.n43,K=b.n44,V=c.n11,z=c.n12,O=c.n13,P=c.n14,S=c.n21,wa=c.n22, -sa=c.n23,qa=c.n24,e=c.n31,ga=c.n32,ea=c.n33,xa=c.n34;this.n11=d*V+f*S+g*e;this.n12=d*z+f*wa+g*ga;this.n13=d*O+f*sa+g*ea;this.n14=d*P+f*qa+g*xa+h;this.n21=j*V+k*S+n*e;this.n22=j*z+k*wa+n*ga;this.n23=j*O+k*sa+n*ea;this.n24=j*P+k*qa+n*xa+p;this.n31=o*V+w*S+y*e;this.n32=o*z+w*wa+y*ga;this.n33=o*O+w*sa+y*ea;this.n34=o*P+w*qa+y*xa+v;this.n41=A*V+F*S+G*e;this.n42=A*z+F*wa+G*ga;this.n43=A*O+F*sa+G*ea;this.n44=A*P+F*qa+G*xa+K;return this},multiplyToArray:function(b,c,d){this.multiply(b,c);d[0]=this.n11;d[1]= +return b},crossVector:function(b){var c=new THREE.Vector4;c.x=this.n11*b.x+this.n12*b.y+this.n13*b.z+this.n14*b.w;c.y=this.n21*b.x+this.n22*b.y+this.n23*b.z+this.n24*b.w;c.z=this.n31*b.x+this.n32*b.y+this.n33*b.z+this.n34*b.w;c.w=b.w?this.n41*b.x+this.n42*b.y+this.n43*b.z+this.n44*b.w:1;return c},multiply:function(b,c){var d=b.n11,f=b.n12,g=b.n13,h=b.n14,j=b.n21,k=b.n22,n=b.n23,p=b.n24,o=b.n31,w=b.n32,y=b.n33,v=b.n34,A=b.n41,F=b.n42,G=b.n43,L=b.n44,V=c.n11,z=c.n12,K=c.n13,P=c.n14,S=c.n21,xa=c.n22, +ra=c.n23,pa=c.n24,e=c.n31,fa=c.n32,ca=c.n33,ya=c.n34;this.n11=d*V+f*S+g*e;this.n12=d*z+f*xa+g*fa;this.n13=d*K+f*ra+g*ca;this.n14=d*P+f*pa+g*ya+h;this.n21=j*V+k*S+n*e;this.n22=j*z+k*xa+n*fa;this.n23=j*K+k*ra+n*ca;this.n24=j*P+k*pa+n*ya+p;this.n31=o*V+w*S+y*e;this.n32=o*z+w*xa+y*fa;this.n33=o*K+w*ra+y*ca;this.n34=o*P+w*pa+y*ya+v;this.n41=A*V+F*S+G*e;this.n42=A*z+F*xa+G*fa;this.n43=A*K+F*ra+G*ca;this.n44=A*P+F*pa+G*ya+L;return this},multiplyToArray:function(b,c,d){this.multiply(b,c);d[0]=this.n11;d[1]= this.n21;d[2]=this.n31;d[3]=this.n41;d[4]=this.n12;d[5]=this.n22;d[6]=this.n32;d[7]=this.n42;d[8]=this.n13;d[9]=this.n23;d[10]=this.n33;d[11]=this.n43;d[12]=this.n14;d[13]=this.n24;d[14]=this.n34;d[15]=this.n44;return this},multiplySelf:function(b){this.multiply(this,b);return this},multiplyScalar:function(b){this.n11*=b;this.n12*=b;this.n13*=b;this.n14*=b;this.n21*=b;this.n22*=b;this.n23*=b;this.n24*=b;this.n31*=b;this.n32*=b;this.n33*=b;this.n34*=b;this.n41*=b;this.n42*=b;this.n43*=b;this.n44*= b;return this},determinant:function(){var b=this.n11,c=this.n12,d=this.n13,f=this.n14,g=this.n21,h=this.n22,j=this.n23,k=this.n24,n=this.n31,p=this.n32,o=this.n33,w=this.n34,y=this.n41,v=this.n42,A=this.n43,F=this.n44;return f*j*p*y-d*k*p*y-f*h*o*y+c*k*o*y+d*h*w*y-c*j*w*y-f*j*n*v+d*k*n*v+f*g*o*v-b*k*o*v-d*g*w*v+b*j*w*v+f*h*n*A-c*k*n*A-f*g*p*A+b*k*p*A+c*g*w*A-b*h*w*A-d*h*n*F+c*j*n*F+d*g*p*F-b*j*p*F-c*g*o*F+b*h*o*F},transpose:function(){var b;b=this.n21;this.n21=this.n12;this.n12=b;b=this.n31;this.n31= this.n13;this.n13=b;b=this.n32;this.n32=this.n23;this.n23=b;b=this.n41;this.n41=this.n14;this.n14=b;b=this.n42;this.n42=this.n24;this.n24=b;b=this.n43;this.n43=this.n34;this.n43=b;return this},clone:function(){var b=new THREE.Matrix4;b.n11=this.n11;b.n12=this.n12;b.n13=this.n13;b.n14=this.n14;b.n21=this.n21;b.n22=this.n22;b.n23=this.n23;b.n24=this.n24;b.n31=this.n31;b.n32=this.n32;b.n33=this.n33;b.n34=this.n34;b.n41=this.n41;b.n42=this.n42;b.n43=this.n43;b.n44=this.n44;return b},flatten:function(){this.flat[0]= @@ -34,8 +34,8 @@ b[8]=this.n13;b[9]=this.n23;b[10]=this.n33;b[11]=this.n43;b[12]=this.n14;b[13]=t 1-d,h=b.x,j=b.y,k=b.z,n=g*h,p=g*j;this.set(n*h+d,n*j-f*k,n*k+f*j,0,n*j+f*k,p*j+d,p*k-f*h,0,n*k-f*j,p*k+f*h,g*k*k+d,0,0,0,0,1);return this},setPosition:function(b){this.n14=b.x;this.n24=b.y;this.n34=b.z;return this},setRotationFromEuler:function(b){var c=b.x,d=b.y,f=b.z;b=Math.cos(c);c=Math.sin(c);var g=Math.cos(d);d=Math.sin(d);var h=Math.cos(f);f=Math.sin(f);var j=b*d,k=c*d;this.n11=g*h;this.n12=-g*f;this.n13=d;this.n21=k*h+b*f;this.n22=-k*f+b*h;this.n23=-c*g;this.n31=-j*h+c*f;this.n32=j*f+c*h;this.n33= b*g;return this},setRotationFromQuaternion:function(b){var c=b.x,d=b.y,f=b.z,g=b.w,h=c+c,j=d+d,k=f+f;b=c*h;var n=c*j;c*=k;var p=d*j;d*=k;f*=k;h*=g;j*=g;g*=k;this.n11=1-(p+f);this.n12=n-g;this.n13=c+j;this.n21=n+g;this.n22=1-(b+f);this.n23=d-h;this.n31=c-j;this.n32=d+h;this.n33=1-(b+p);return this},scale:function(b){var c=b.x,d=b.y;b=b.z;this.n11*=c;this.n12*=d;this.n13*=b;this.n21*=c;this.n22*=d;this.n23*=b;this.n31*=c;this.n32*=d;this.n33*=b;this.n41*=c;this.n42*=d;this.n43*=b;return this},extractPosition:function(b){this.n14= b.n14;this.n24=b.n24;this.n34=b.n34},extractRotation:function(b,c){var d=1/c.x,f=1/c.y,g=1/c.z;this.n11=b.n11*d;this.n21=b.n21*d;this.n31=b.n31*d;this.n12=b.n12*f;this.n22=b.n22*f;this.n32=b.n32*f;this.n13=b.n13*g;this.n23=b.n23*g;this.n33=b.n33*g}}; -THREE.Matrix4.makeInvert=function(b,c){var d=b.n11,f=b.n12,g=b.n13,h=b.n14,j=b.n21,k=b.n22,n=b.n23,p=b.n24,o=b.n31,w=b.n32,y=b.n33,v=b.n34,A=b.n41,F=b.n42,G=b.n43,K=b.n44;c===undefined&&(c=new THREE.Matrix4);c.n11=n*v*F-p*y*F+p*w*G-k*v*G-n*w*K+k*y*K;c.n12=h*y*F-g*v*F-h*w*G+f*v*G+g*w*K-f*y*K;c.n13=g*p*F-h*n*F+h*k*G-f*p*G-g*k*K+f*n*K;c.n14=h*n*w-g*p*w-h*k*y+f*p*y+g*k*v-f*n*v;c.n21=p*y*A-n*v*A-p*o*G+j*v*G+n*o*K-j*y*K;c.n22=g*v*A-h*y*A+h*o*G-d*v*G-g*o*K+d*y*K;c.n23=h*n*A-g*p*A-h*j*G+d*p*G+g*j*K-d*n*K; -c.n24=g*p*o-h*n*o+h*j*y-d*p*y-g*j*v+d*n*v;c.n31=k*v*A-p*w*A+p*o*F-j*v*F-k*o*K+j*w*K;c.n32=h*w*A-f*v*A-h*o*F+d*v*F+f*o*K-d*w*K;c.n33=g*p*A-h*k*A+h*j*F-d*p*F-f*j*K+d*k*K;c.n34=h*k*o-f*p*o-h*j*w+d*p*w+f*j*v-d*k*v;c.n41=n*w*A-k*y*A-n*o*F+j*y*F+k*o*G-j*w*G;c.n42=f*y*A-g*w*A+g*o*F-d*y*F-f*o*G+d*w*G;c.n43=g*k*A-f*n*A-g*j*F+d*n*F+f*j*G-d*k*G;c.n44=f*n*o-g*k*o+g*j*w-d*n*w-f*j*y+d*k*y;c.multiplyScalar(1/b.determinant());return c}; +THREE.Matrix4.makeInvert=function(b,c){var d=b.n11,f=b.n12,g=b.n13,h=b.n14,j=b.n21,k=b.n22,n=b.n23,p=b.n24,o=b.n31,w=b.n32,y=b.n33,v=b.n34,A=b.n41,F=b.n42,G=b.n43,L=b.n44;c===undefined&&(c=new THREE.Matrix4);c.n11=n*v*F-p*y*F+p*w*G-k*v*G-n*w*L+k*y*L;c.n12=h*y*F-g*v*F-h*w*G+f*v*G+g*w*L-f*y*L;c.n13=g*p*F-h*n*F+h*k*G-f*p*G-g*k*L+f*n*L;c.n14=h*n*w-g*p*w-h*k*y+f*p*y+g*k*v-f*n*v;c.n21=p*y*A-n*v*A-p*o*G+j*v*G+n*o*L-j*y*L;c.n22=g*v*A-h*y*A+h*o*G-d*v*G-g*o*L+d*y*L;c.n23=h*n*A-g*p*A-h*j*G+d*p*G+g*j*L-d*n*L; +c.n24=g*p*o-h*n*o+h*j*y-d*p*y-g*j*v+d*n*v;c.n31=k*v*A-p*w*A+p*o*F-j*v*F-k*o*L+j*w*L;c.n32=h*w*A-f*v*A-h*o*F+d*v*F+f*o*L-d*w*L;c.n33=g*p*A-h*k*A+h*j*F-d*p*F-f*j*L+d*k*L;c.n34=h*k*o-f*p*o-h*j*w+d*p*w+f*j*v-d*k*v;c.n41=n*w*A-k*y*A-n*o*F+j*y*F+k*o*G-j*w*G;c.n42=f*y*A-g*w*A+g*o*F-d*y*F-f*o*G+d*w*G;c.n43=g*k*A-f*n*A-g*j*F+d*n*F+f*j*G-d*k*G;c.n44=f*n*o-g*k*o+g*j*w-d*n*w-f*j*y+d*k*y;c.multiplyScalar(1/b.determinant());return c}; THREE.Matrix4.makeInvert3x3=function(b){var c=b.m33,d=c.m,f=b.n33*b.n22-b.n32*b.n23,g=-b.n33*b.n21+b.n31*b.n23,h=b.n32*b.n21-b.n31*b.n22,j=-b.n33*b.n12+b.n32*b.n13,k=b.n33*b.n11-b.n31*b.n13,n=-b.n32*b.n11+b.n31*b.n12,p=b.n23*b.n12-b.n22*b.n13,o=-b.n23*b.n11+b.n21*b.n13,w=b.n22*b.n11-b.n21*b.n12;b=b.n11*f+b.n21*j+b.n31*p;if(b==0)throw"matrix not invertible";b=1/b;d[0]=b*f;d[1]=b*g;d[2]=b*h;d[3]=b*j;d[4]=b*k;d[5]=b*n;d[6]=b*p;d[7]=b*o;d[8]=b*w;return c}; THREE.Matrix4.makeFrustum=function(b,c,d,f,g,h){var j;j=new THREE.Matrix4;j.n11=2*g/(c-b);j.n12=0;j.n13=(c+b)/(c-b);j.n14=0;j.n21=0;j.n22=2*g/(f-d);j.n23=(f+d)/(f-d);j.n24=0;j.n31=0;j.n32=0;j.n33=-(h+g)/(h-g);j.n34=-2*h*g/(h-g);j.n41=0;j.n42=0;j.n43=-1;j.n44=0;return j};THREE.Matrix4.makePerspective=function(b,c,d,f){var g;b=d*Math.tan(b*Math.PI/360);g=-b;return THREE.Matrix4.makeFrustum(g*c,b*c,g,b,d,f)}; THREE.Matrix4.makeOrtho=function(b,c,d,f,g,h){var j,k,n,p;j=new THREE.Matrix4;k=c-b;n=d-f;p=h-g;j.n11=2/k;j.n12=0;j.n13=0;j.n14=-((c+b)/k);j.n21=0;j.n22=2/n;j.n23=0;j.n24=-((d+f)/n);j.n31=0;j.n32=0;j.n33=-2/p;j.n34=-((h+g)/p);j.n41=0;j.n42=0;j.n43=0;j.n44=1;return j};THREE.Matrix4.__v1=new THREE.Vector3;THREE.Matrix4.__v2=new THREE.Vector3;THREE.Matrix4.__v3=new THREE.Vector3; @@ -56,17 +56,17 @@ THREE.Geometry.prototype={computeCentroids:function(){var b,c,d;b=0;for(c=this.f d.centroid.addSelf(this.vertices[d.d].position);d.centroid.divideScalar(4)}}},computeFaceNormals:function(b){var c,d,f,g,h,j,k=new THREE.Vector3,n=new THREE.Vector3;f=0;for(g=this.faces.length;f0){this.boundingBox={x:[this.vertices[0].position.x,this.vertices[0].position.x],y:[this.vertices[0].position.y,this.vertices[0].position.y],z:[this.vertices[0].position.z,this.vertices[0].position.z]};for(var c=1,d=this.vertices.length;cthis.boundingBox.x[1])this.boundingBox.x[1]=b.position.x; +d.vertexNormals[1].copy(f[d.b]);d.vertexNormals[2].copy(f[d.c])}else if(d instanceof THREE.Face4){d.vertexNormals[0].copy(f[d.a]);d.vertexNormals[1].copy(f[d.b]);d.vertexNormals[2].copy(f[d.c]);d.vertexNormals[3].copy(f[d.d])}}},computeTangents:function(){function b(qa,ta,va,ia,Z,na,Ba){k=qa.vertices[ta].position;n=qa.vertices[va].position;p=qa.vertices[ia].position;o=j[Z];w=j[na];y=j[Ba];v=n.x-k.x;A=p.x-k.x;F=n.y-k.y;G=p.y-k.y;L=n.z-k.z;V=p.z-k.z;z=w.u-o.u;K=y.u-o.u;P=w.v-o.v;S=y.v-o.v;xa=1/(z*S- +K*P);fa.set((S*v-P*A)*xa,(S*F-P*G)*xa,(S*L-P*V)*xa);ca.set((z*A-K*v)*xa,(z*G-K*F)*xa,(z*V-K*L)*xa);pa[ta].addSelf(fa);pa[va].addSelf(fa);pa[ia].addSelf(fa);e[ta].addSelf(ca);e[va].addSelf(ca);e[ia].addSelf(ca)}var c,d,f,g,h,j,k,n,p,o,w,y,v,A,F,G,L,V,z,K,P,S,xa,ra,pa=[],e=[],fa=new THREE.Vector3,ca=new THREE.Vector3,ya=new THREE.Vector3,Fa=new THREE.Vector3,Ea=new THREE.Vector3;c=0;for(d=this.vertices.length;c0){this.boundingBox={x:[this.vertices[0].position.x,this.vertices[0].position.x],y:[this.vertices[0].position.y,this.vertices[0].position.y],z:[this.vertices[0].position.z,this.vertices[0].position.z]};for(var c=1,d=this.vertices.length;cthis.boundingBox.x[1])this.boundingBox.x[1]=b.position.x; if(b.position.ythis.boundingBox.y[1])this.boundingBox.y[1]=b.position.y;if(b.position.zthis.boundingBox.z[1])this.boundingBox.z[1]=b.position.z}}},computeBoundingSphere:function(){for(var b=this.boundingSphere===null?0:this.boundingSphere.radius,c=0,d=this.vertices.length;cthis.points.length-2?h:h+1;d[3]=h>this.points.length-3?h:h+2;p=this.points[d[0]];o=this.points[d[1]]; -w=this.points[d[2]];y=this.points[d[3]];k=j*j;n=j*k;f.x=c(p.x,o.x,w.x,y.x,j,k,n);f.y=c(p.y,o.y,w.y,y.y,j,k,n);f.z=c(p.z,o.z,w.z,y.z,j,k,n);return f};this.getControlPointsArray=function(){var v,A,F=this.points.length,G=[];for(v=0;vthis.points.length-2?h:h+1;d[3]=h>this.points.length-3?h:h+2;p=this.points[d[0]];o=this.points[d[1]]; +w=this.points[d[2]];y=this.points[d[3]];k=j*j;n=j*k;f.x=c(p.x,o.x,w.x,y.x,j,k,n);f.y=c(p.y,o.y,w.y,y.y,j,k,n);f.z=c(p.z,o.z,w.z,y.z,j,k,n);return f};this.getControlPointsArray=function(){var v,A,F=this.points.length,G=[];for(v=0;v=0&&ra>=0&&aa>=0&&pa>=0)return!0;else if(Fa<0&&ra<0||aa<0&&pa<0)return!1;else{if(Fa<0)xa=Math.max(xa,Fa/(Fa-ra));else ra<0&&(Ea=Math.min(Ea,Fa/(Fa-ra)));if(aa<0)xa=Math.max(xa,aa/(aa-pa));else pa<0&&(Ea=Math.min(Ea,aa/(aa-pa)));if(EaFa&&j.positionScreen.z0&&P.z<1){Sa=z[V]=z[V]||new THREE.RenderableParticle;V++;K=Sa;K.x=P.x/P.w;K.y=P.y/P.w;K.z=P.z;K.rotation=Da.rotation.z;K.scale.x=Da.scale.x*Math.abs(K.x-(P.x+ea.projectionMatrix.n11)/(P.w+ea.projectionMatrix.n14));K.scale.y=Da.scale.y*Math.abs(K.y-(P.y+ea.projectionMatrix.n22)/(P.w+ea.projectionMatrix.n24));K.materials=Da.materials;Ea.push(K)}}}}xa&&Ea.sort(c);return Ea}}; +THREE.Projector=function(){function b(){var fa=n[k]=n[k]||new THREE.RenderableVertex;k++;return fa}function c(fa,ca){return ca.z-fa.z}function d(fa,ca){var ya=0,Fa=1,Ea=fa.z+fa.w,Y=ca.z+ca.w,qa=-fa.z+fa.w,ta=-ca.z+ca.w;if(Ea>=0&&Y>=0&&qa>=0&&ta>=0)return!0;else if(Ea<0&&Y<0||qa<0&&ta<0)return!1;else{if(Ea<0)ya=Math.max(ya,Ea/(Ea-Y));else Y<0&&(Fa=Math.min(Fa,Ea/(Ea-Y)));if(qa<0)ya=Math.max(ya,qa/(qa-ta));else ta<0&&(Fa=Math.min(Fa,qa/(qa-ta)));if(FaEa&&j.positionScreen.z0&&P.z<1){Sa=z[V]=z[V]||new THREE.RenderableParticle;V++;L=Sa;L.x=P.x/P.w;L.y=P.y/P.w;L.z=P.z;L.rotation=Da.rotation.z;L.scale.x=Da.scale.x*Math.abs(L.x-(P.x+ca.projectionMatrix.n11)/(P.w+ca.projectionMatrix.n14));L.scale.y=Da.scale.y*Math.abs(L.y-(P.y+ca.projectionMatrix.n22)/(P.w+ca.projectionMatrix.n24));L.materials=Da.materials;Fa.push(L)}}}}ya&&Fa.sort(c);return Fa}}; THREE.DOMRenderer=function(){THREE.Renderer.call(this);var b=null,c=new THREE.Projector,d,f,g,h;this.domElement=document.createElement("div");this.setSize=function(j,k){d=j;f=k;g=d/2;h=f/2};this.render=function(j,k){var n,p,o,w,y,v,A,F;b=c.projectScene(j,k);n=0;for(p=b.length;n>1;Na=ha.height>>1;fa=ta.scale.x*n;ua=ta.scale.y*p;ca=fa*Q;va=ua*Na;u.set(X.x-ca,X.y-va,X.x+ca,X.y+va);if(m.instersects(u)){o.save();o.translate(X.x,X.y); -o.rotate(-ta.rotation);o.scale(fa,-ua);o.translate(-Q,-Na);o.drawImage(ha,0,0);o.restore()}}}else if(fa instanceof THREE.ParticleCanvasMaterial){ca=ta.scale.x*n;va=ta.scale.y*p;u.set(X.x-ca,X.y-va,X.x+ca,X.y+va);if(m.instersects(u)){d(fa.color.__styleString);ua=fa.color.__styleString;if(G!=ua)o.fillStyle=G=ua;o.save();o.translate(X.x,X.y);o.rotate(-ta.rotation);o.scale(ca,va);fa.program(o);o.restore()}}}function Ia(X,ta,fa,ca){b(ca.opacity);c(ca.blending);o.beginPath();o.moveTo(X.positionScreen.x, -X.positionScreen.y);o.lineTo(ta.positionScreen.x,ta.positionScreen.y);o.closePath();if(ca instanceof THREE.LineBasicMaterial){na.__styleString=ca.color.__styleString;X=ca.linewidth;if(K!=X)o.lineWidth=K=X;X=ca.linecap;if(V!=X)o.lineCap=V=X;X=ca.linejoin;if(z!=X)o.lineJoin=z=X;d(na.__styleString);o.stroke();u.inflate(ca.linewidth*2)}}function Qa(X,ta,fa,ca,va,ua,ha,Q,Na){b(Q.opacity);c(Q.blending);e=X.positionScreen.x;ga=X.positionScreen.y;ea=ta.positionScreen.x;xa=ta.positionScreen.y;Ea=fa.positionScreen.x; -Fa=fa.positionScreen.y;Z(e,ga,ea,xa,Ea,Fa);if(Q instanceof THREE.MeshBasicMaterial)if(Q.map){if(Q.map.mapping instanceof THREE.UVMapping){Ta=ha.uvs[0];Ma(e,ga,ea,xa,Ea,Fa,Q.map.image,Ta[ca].u,Ta[ca].v,Ta[va].u,Ta[va].v,Ta[ua].u,Ta[ua].v)}}else if(Q.envMap){if(Q.envMap.mapping instanceof THREE.SphericalReflectionMapping){X=Ha.matrixWorldInverse;I.copy(ha.vertexNormalsWorld[0]);R=(I.x*X.n11+I.y*X.n12+I.z*X.n13)*0.5+0.5;$=-(I.x*X.n21+I.y*X.n22+I.z*X.n23)*0.5+0.5;I.copy(ha.vertexNormalsWorld[1]);oa=(I.x* -X.n11+I.y*X.n12+I.z*X.n13)*0.5+0.5;Ca=-(I.x*X.n21+I.y*X.n22+I.z*X.n23)*0.5+0.5;I.copy(ha.vertexNormalsWorld[2]);ia=(I.x*X.n11+I.y*X.n12+I.z*X.n13)*0.5+0.5;da=-(I.x*X.n21+I.y*X.n22+I.z*X.n23)*0.5+0.5;Ma(e,ga,ea,xa,Ea,Fa,Q.envMap.image,R,$,oa,Ca,ia,da)}}else Q.wireframe?ab(Q.color.__styleString,Q.wireframeLinewidth,Q.wireframeLinecap,Q.wireframeLinejoin):fb(Q.color.__styleString);else if(Q instanceof THREE.MeshLambertMaterial){if(Q.map&&!Q.wireframe){if(Q.map.mapping instanceof THREE.UVMapping){Ta= -ha.uvs[0];Ma(e,ga,ea,xa,Ea,Fa,Q.map.image,Ta[ca].u,Ta[ca].v,Ta[va].u,Ta[va].v,Ta[ua].u,Ta[ua].v)}c(THREE.SubtractiveBlending)}if(x)if(!Q.wireframe&&Q.shading==THREE.SmoothShading&&ha.vertexNormalsWorld.length==3){Ba.r=ka.r=la.r=J.r;Ba.g=ka.g=la.g=J.g;Ba.b=ka.b=la.b=J.b;Aa(Na,ha.v1.positionWorld,ha.vertexNormalsWorld[0],Ba);Aa(Na,ha.v2.positionWorld,ha.vertexNormalsWorld[1],ka);Aa(Na,ha.v3.positionWorld,ha.vertexNormalsWorld[2],la);Da.r=(ka.r+la.r)*0.5;Da.g=(ka.g+la.g)*0.5;Da.b=(ka.b+la.b)*0.5;Ya= -Va(Ba,ka,la,Da);Ma(e,ga,ea,xa,Ea,Fa,Ya,0,0,1,0,0,1)}else{B.r=J.r;B.g=J.g;B.b=J.b;Aa(Na,ha.centroidWorld,ha.normalWorld,B);na.r=Q.color.r*B.r;na.g=Q.color.g*B.g;na.b=Q.color.b*B.b;na.updateStyleString();Q.wireframe?ab(na.__styleString,Q.wireframeLinewidth,Q.wireframeLinecap,Q.wireframeLinejoin):fb(na.__styleString)}else Q.wireframe?ab(Q.color.__styleString,Q.wireframeLinewidth,Q.wireframeLinecap,Q.wireframeLinejoin):fb(Q.color.__styleString)}else if(Q instanceof THREE.MeshDepthMaterial){Sa=Ha.near; -$a=Ha.far;Ba.r=Ba.g=Ba.b=1-gb(X.positionScreen.z,Sa,$a);ka.r=ka.g=ka.b=1-gb(ta.positionScreen.z,Sa,$a);la.r=la.g=la.b=1-gb(fa.positionScreen.z,Sa,$a);Da.r=(ka.r+la.r)*0.5;Da.g=(ka.g+la.g)*0.5;Da.b=(ka.b+la.b)*0.5;Ya=Va(Ba,ka,la,Da);Ma(e,ga,ea,xa,Ea,Fa,Ya,0,0,1,0,0,1)}else if(Q instanceof THREE.MeshNormalMaterial){na.r=hb(ha.normalWorld.x);na.g=hb(ha.normalWorld.y);na.b=hb(ha.normalWorld.z);na.updateStyleString();Q.wireframe?ab(na.__styleString,Q.wireframeLinewidth,Q.wireframeLinecap,Q.wireframeLinejoin): -fb(na.__styleString)}}function D(X,ta,fa,ca,va,ua,ha,Q,Na){b(Q.opacity);c(Q.blending);if(Q.map||Q.envMap){Qa(X,ta,ca,0,1,3,ha,Q,Na);Qa(va,fa,ua,1,2,3,ha,Q,Na)}else{e=X.positionScreen.x;ga=X.positionScreen.y;ea=ta.positionScreen.x;xa=ta.positionScreen.y;Ea=fa.positionScreen.x;Fa=fa.positionScreen.y;ra=ca.positionScreen.x;aa=ca.positionScreen.y;pa=va.positionScreen.x;ya=va.positionScreen.y;ja=ua.positionScreen.x;Y=ua.positionScreen.y;if(Q instanceof THREE.MeshBasicMaterial){t(e,ga,ea,xa,Ea,Fa,ra,aa); +F=null,G=null,L=null,V=null,z=null,K,P,S,xa,ra=new THREE.RenderableVertex,pa=new THREE.RenderableVertex,e,fa,ca,ya,Fa,Ea,Y,qa,ta,va,ia,Z,na=new THREE.Color,Ba=new THREE.Color,ka=new THREE.Color,la=new THREE.Color,Da=new THREE.Color,Sa,$a,Ya,Ta,R,aa,oa,Ca,ja,ga,m=new THREE.Rectangle,C=new THREE.Rectangle,u=new THREE.Rectangle,x=!1,B=new THREE.Color,J=new THREE.Color,M=new THREE.Color,H=new THREE.Color,I=new THREE.Vector3,E,N,O,W,U,za,Ka=16;E=document.createElement("canvas");E.width=E.height=2;N=E.getContext("2d"); +N.fillStyle="rgba(0,0,0,1)";N.fillRect(0,0,2,2);O=N.getImageData(0,0,2,2);W=O.data;U=document.createElement("canvas");U.width=U.height=Ka;za=U.getContext("2d");za.translate(-Ka/2,-Ka/2);za.scale(Ka,Ka);Ka--;this.domElement=h;this.autoClear=!0;this.sortObjects=!0;this.sortElements=!0;this.setSize=function(ma,Ha){j=ma;k=Ha;n=j/2;p=k/2;h.width=j;h.height=k;m.set(-n,-p,n,p);v=1;A=0;z=V=L=G=F=null};this.setClearColor=function(ma,Ha){w=ma;y=Ha};this.setClearColorHex=function(ma,Ha){w.setHex(ma);y=Ha};this.clear= +function(){o.setTransform(1,0,0,-1,n,p);if(!C.isEmpty()){C.inflate(1);C.minSelf(m);if(w.hex==0&&y==0)o.clearRect(C.getX(),C.getY(),C.getWidth(),C.getHeight());else{c(THREE.NormalBlending);b(1);o.fillStyle="rgba("+Math.floor(w.r*255)+","+Math.floor(w.g*255)+","+Math.floor(w.b*255)+","+y+")";o.fillRect(C.getX(),C.getY(),C.getWidth(),C.getHeight())}C.empty()}};this.render=function(ma,Ha){function db(X){var sa,ea,da,wa=X.lights;J.setRGB(0,0,0);M.setRGB(0,0,0);H.setRGB(0,0,0);X=0;for(sa=wa.length;X>1;Na=ha.height>>1;ea=sa.scale.x*n;ua=sa.scale.y*p;da=ea*Q;wa=ua*Na;u.set(X.x-da,X.y-wa,X.x+da,X.y+wa);if(m.instersects(u)){o.save();o.translate(X.x,X.y); +o.rotate(-sa.rotation);o.scale(ea,-ua);o.translate(-Q,-Na);o.drawImage(ha,0,0);o.restore()}}}else if(ea instanceof THREE.ParticleCanvasMaterial){da=sa.scale.x*n;wa=sa.scale.y*p;u.set(X.x-da,X.y-wa,X.x+da,X.y+wa);if(m.instersects(u)){d(ea.color.__styleString);ua=ea.color.__styleString;if(G!=ua)o.fillStyle=G=ua;o.save();o.translate(X.x,X.y);o.rotate(-sa.rotation);o.scale(da,wa);ea.program(o);o.restore()}}}function Ia(X,sa,ea,da){b(da.opacity);c(da.blending);o.beginPath();o.moveTo(X.positionScreen.x, +X.positionScreen.y);o.lineTo(sa.positionScreen.x,sa.positionScreen.y);o.closePath();if(da instanceof THREE.LineBasicMaterial){na.__styleString=da.color.__styleString;X=da.linewidth;if(L!=X)o.lineWidth=L=X;X=da.linecap;if(V!=X)o.lineCap=V=X;X=da.linejoin;if(z!=X)o.lineJoin=z=X;d(na.__styleString);o.stroke();u.inflate(da.linewidth*2)}}function Qa(X,sa,ea,da,wa,ua,ha,Q,Na){b(Q.opacity);c(Q.blending);e=X.positionScreen.x;fa=X.positionScreen.y;ca=sa.positionScreen.x;ya=sa.positionScreen.y;Fa=ea.positionScreen.x; +Ea=ea.positionScreen.y;$(e,fa,ca,ya,Fa,Ea);if(Q instanceof THREE.MeshBasicMaterial)if(Q.map){if(Q.map.mapping instanceof THREE.UVMapping){Ta=ha.uvs[0];Ma(e,fa,ca,ya,Fa,Ea,Q.map.image,Ta[da].u,Ta[da].v,Ta[wa].u,Ta[wa].v,Ta[ua].u,Ta[ua].v)}}else if(Q.envMap){if(Q.envMap.mapping instanceof THREE.SphericalReflectionMapping){X=Ha.matrixWorldInverse;I.copy(ha.vertexNormalsWorld[0]);R=(I.x*X.n11+I.y*X.n12+I.z*X.n13)*0.5+0.5;aa=-(I.x*X.n21+I.y*X.n22+I.z*X.n23)*0.5+0.5;I.copy(ha.vertexNormalsWorld[1]);oa= +(I.x*X.n11+I.y*X.n12+I.z*X.n13)*0.5+0.5;Ca=-(I.x*X.n21+I.y*X.n22+I.z*X.n23)*0.5+0.5;I.copy(ha.vertexNormalsWorld[2]);ja=(I.x*X.n11+I.y*X.n12+I.z*X.n13)*0.5+0.5;ga=-(I.x*X.n21+I.y*X.n22+I.z*X.n23)*0.5+0.5;Ma(e,fa,ca,ya,Fa,Ea,Q.envMap.image,R,aa,oa,Ca,ja,ga)}}else Q.wireframe?ab(Q.color.__styleString,Q.wireframeLinewidth,Q.wireframeLinecap,Q.wireframeLinejoin):fb(Q.color.__styleString);else if(Q instanceof THREE.MeshLambertMaterial){if(Q.map&&!Q.wireframe){if(Q.map.mapping instanceof THREE.UVMapping){Ta= +ha.uvs[0];Ma(e,fa,ca,ya,Fa,Ea,Q.map.image,Ta[da].u,Ta[da].v,Ta[wa].u,Ta[wa].v,Ta[ua].u,Ta[ua].v)}c(THREE.SubtractiveBlending)}if(x)if(!Q.wireframe&&Q.shading==THREE.SmoothShading&&ha.vertexNormalsWorld.length==3){Ba.r=ka.r=la.r=J.r;Ba.g=ka.g=la.g=J.g;Ba.b=ka.b=la.b=J.b;Aa(Na,ha.v1.positionWorld,ha.vertexNormalsWorld[0],Ba);Aa(Na,ha.v2.positionWorld,ha.vertexNormalsWorld[1],ka);Aa(Na,ha.v3.positionWorld,ha.vertexNormalsWorld[2],la);Da.r=(ka.r+la.r)*0.5;Da.g=(ka.g+la.g)*0.5;Da.b=(ka.b+la.b)*0.5;Ya= +Va(Ba,ka,la,Da);Ma(e,fa,ca,ya,Fa,Ea,Ya,0,0,1,0,0,1)}else{B.r=J.r;B.g=J.g;B.b=J.b;Aa(Na,ha.centroidWorld,ha.normalWorld,B);na.r=Q.color.r*B.r;na.g=Q.color.g*B.g;na.b=Q.color.b*B.b;na.updateStyleString();Q.wireframe?ab(na.__styleString,Q.wireframeLinewidth,Q.wireframeLinecap,Q.wireframeLinejoin):fb(na.__styleString)}else Q.wireframe?ab(Q.color.__styleString,Q.wireframeLinewidth,Q.wireframeLinecap,Q.wireframeLinejoin):fb(Q.color.__styleString)}else if(Q instanceof THREE.MeshDepthMaterial){Sa=Ha.near; +$a=Ha.far;Ba.r=Ba.g=Ba.b=1-gb(X.positionScreen.z,Sa,$a);ka.r=ka.g=ka.b=1-gb(sa.positionScreen.z,Sa,$a);la.r=la.g=la.b=1-gb(ea.positionScreen.z,Sa,$a);Da.r=(ka.r+la.r)*0.5;Da.g=(ka.g+la.g)*0.5;Da.b=(ka.b+la.b)*0.5;Ya=Va(Ba,ka,la,Da);Ma(e,fa,ca,ya,Fa,Ea,Ya,0,0,1,0,0,1)}else if(Q instanceof THREE.MeshNormalMaterial){na.r=hb(ha.normalWorld.x);na.g=hb(ha.normalWorld.y);na.b=hb(ha.normalWorld.z);na.updateStyleString();Q.wireframe?ab(na.__styleString,Q.wireframeLinewidth,Q.wireframeLinecap,Q.wireframeLinejoin): +fb(na.__styleString)}}function D(X,sa,ea,da,wa,ua,ha,Q,Na){b(Q.opacity);c(Q.blending);if(Q.map||Q.envMap){Qa(X,sa,da,0,1,3,ha,Q,Na);Qa(wa,ea,ua,1,2,3,ha,Q,Na)}else{e=X.positionScreen.x;fa=X.positionScreen.y;ca=sa.positionScreen.x;ya=sa.positionScreen.y;Fa=ea.positionScreen.x;Ea=ea.positionScreen.y;Y=da.positionScreen.x;qa=da.positionScreen.y;ta=wa.positionScreen.x;va=wa.positionScreen.y;ia=ua.positionScreen.x;Z=ua.positionScreen.y;if(Q instanceof THREE.MeshBasicMaterial){t(e,fa,ca,ya,Fa,Ea,Y,qa); Q.wireframe?ab(Q.color.__styleString,Q.wireframeLinewidth,Q.wireframeLinecap,Q.wireframeLinejoin):fb(Q.color.__styleString)}else if(Q instanceof THREE.MeshLambertMaterial)if(x)if(!Q.wireframe&&Q.shading==THREE.SmoothShading&&ha.vertexNormalsWorld.length==4){Ba.r=ka.r=la.r=Da.r=J.r;Ba.g=ka.g=la.g=Da.g=J.g;Ba.b=ka.b=la.b=Da.b=J.b;Aa(Na,ha.v1.positionWorld,ha.vertexNormalsWorld[0],Ba);Aa(Na,ha.v2.positionWorld,ha.vertexNormalsWorld[1],ka);Aa(Na,ha.v4.positionWorld,ha.vertexNormalsWorld[3],la);Aa(Na, -ha.v3.positionWorld,ha.vertexNormalsWorld[2],Da);Ya=Va(Ba,ka,la,Da);Z(e,ga,ea,xa,ra,aa);Ma(e,ga,ea,xa,ra,aa,Ya,0,0,1,0,0,1);Z(pa,ya,Ea,Fa,ja,Y);Ma(pa,ya,Ea,Fa,ja,Y,Ya,1,0,1,1,0,1)}else{B.r=J.r;B.g=J.g;B.b=J.b;Aa(Na,ha.centroidWorld,ha.normalWorld,B);na.r=Q.color.r*B.r;na.g=Q.color.g*B.g;na.b=Q.color.b*B.b;na.updateStyleString();t(e,ga,ea,xa,Ea,Fa,ra,aa);Q.wireframe?ab(na.__styleString,Q.wireframeLinewidth,Q.wireframeLinecap,Q.wireframeLinejoin):fb(na.__styleString)}else{t(e,ga,ea,xa,Ea,Fa,ra,aa); -Q.wireframe?ab(Q.color.__styleString,Q.wireframeLinewidth,Q.wireframeLinecap,Q.wireframeLinejoin):fb(Q.color.__styleString)}else if(Q instanceof THREE.MeshNormalMaterial){na.r=hb(ha.normalWorld.x);na.g=hb(ha.normalWorld.y);na.b=hb(ha.normalWorld.z);na.updateStyleString();t(e,ga,ea,xa,Ea,Fa,ra,aa);Q.wireframe?ab(na.__styleString,Q.wireframeLinewidth,Q.wireframeLinecap,Q.wireframeLinejoin):fb(na.__styleString)}else if(Q instanceof THREE.MeshDepthMaterial){Sa=Ha.near;$a=Ha.far;Ba.r=Ba.g=Ba.b=1-gb(X.positionScreen.z, -Sa,$a);ka.r=ka.g=ka.b=1-gb(ta.positionScreen.z,Sa,$a);la.r=la.g=la.b=1-gb(ca.positionScreen.z,Sa,$a);Da.r=Da.g=Da.b=1-gb(fa.positionScreen.z,Sa,$a);Ya=Va(Ba,ka,la,Da);Z(e,ga,ea,xa,ra,aa);Ma(e,ga,ea,xa,ra,aa,Ya,0,0,1,0,0,1);Z(pa,ya,Ea,Fa,ja,Y);Ma(pa,ya,Ea,Fa,ja,Y,Ya,1,0,1,1,0,1)}}}function Z(X,ta,fa,ca,va,ua){o.beginPath();o.moveTo(X,ta);o.lineTo(fa,ca);o.lineTo(va,ua);o.lineTo(X,ta);o.closePath()}function t(X,ta,fa,ca,va,ua,ha,Q){o.beginPath();o.moveTo(X,ta);o.lineTo(fa,ca);o.lineTo(va,ua);o.lineTo(ha, -Q);o.lineTo(X,ta);o.closePath()}function ab(X,ta,fa,ca){if(K!=ta)o.lineWidth=K=ta;if(V!=fa)o.lineCap=V=fa;if(z!=ca)o.lineJoin=z=ca;d(X);o.stroke();u.inflate(ta*2)}function fb(X){if(G!=X)o.fillStyle=G=X;o.fill()}function Ma(X,ta,fa,ca,va,ua,ha,Q,Na,cb,Ua,bb,lb){var Pa,ib;Pa=ha.width-1;ib=ha.height-1;Q*=Pa;Na*=ib;cb*=Pa;Ua*=ib;bb*=Pa;lb*=ib;fa-=X;ca-=ta;va-=X;ua-=ta;cb-=Q;Ua-=Na;bb-=Q;lb-=Na;Pa=cb*lb-bb*Ua;if(Pa!=0){ib=1/Pa;Pa=(lb*fa-Ua*va)*ib;Ua=(lb*ca-Ua*ua)*ib;fa=(cb*va-bb*fa)*ib;ca=(cb*ua-bb*ca)* -ib;X=X-Pa*Q-fa*Na;ta=ta-Ua*Q-ca*Na;o.save();o.transform(Pa,Ua,fa,ca,X,ta);o.clip();o.drawImage(ha,0,0);o.restore()}}function Va(X,ta,fa,ca){var va=~~(X.r*255),ua=~~(X.g*255);X=~~(X.b*255);var ha=~~(ta.r*255),Q=~~(ta.g*255);ta=~~(ta.b*255);var Na=~~(fa.r*255),cb=~~(fa.g*255);fa=~~(fa.b*255);var Ua=~~(ca.r*255),bb=~~(ca.g*255);ca=~~(ca.b*255);W[0]=va<0?0:va>255?255:va;W[1]=ua<0?0:ua>255?255:ua;W[2]=X<0?0:X>255?255:X;W[4]=ha<0?0:ha>255?255:ha;W[5]=Q<0?0:Q>255?255:Q;W[6]=ta<0?0:ta>255?255:ta;W[8]=Na< -0?0:Na>255?255:Na;W[9]=cb<0?0:cb>255?255:cb;W[10]=fa<0?0:fa>255?255:fa;W[12]=Ua<0?0:Ua>255?255:Ua;W[13]=bb<0?0:bb>255?255:bb;W[14]=ca<0?0:ca>255?255:ca;M.putImageData(N,0,0);za.drawImage(E,0,0);return U}function gb(X,ta,fa){X=(X-ta)/(fa-ta);return X*X*(3-2*X)}function hb(X){X=(X+1)*0.5;return X<0?0:X>1?1:X}function Wa(X,ta){var fa=ta.x-X.x,ca=ta.y-X.y,va=1/Math.sqrt(fa*fa+ca*ca);fa*=va;ca*=va;ta.x+=fa;ta.y+=ca;X.x-=fa;X.y-=ca}var eb,Oa,Ja,La,T,Ra,Xa,Za;this.autoClear?this.clear():o.setTransform(1, -0,0,-1,n,p);f=g.projectScene(ma,Ha,this.sortElements);(x=ma.lights.length>0)&&db(ma);eb=0;for(Oa=f.length;eb0){pa.r+=Y.color.r*na;pa.g+=Y.color.g*na;pa.b+=Y.color.b*na}}else if(Y instanceof THREE.PointLight){qa.sub(Y.position,aa.centroidWorld);qa.normalize();na=aa.normalWorld.dot(qa)*Y.intensity;if(na>0){pa.r+=Y.color.r*na;pa.g+=Y.color.g*na;pa.b+=Y.color.b*na}}}}function c(ra,aa,pa,ya,ja,Y){ea= -f(xa++);ea.setAttribute("d","M "+ra.positionScreen.x+" "+ra.positionScreen.y+" L "+aa.positionScreen.x+" "+aa.positionScreen.y+" L "+pa.positionScreen.x+","+pa.positionScreen.y+"z");if(ja instanceof THREE.MeshBasicMaterial)z.__styleString=ja.color.__styleString;else if(ja instanceof THREE.MeshLambertMaterial)if(V){O.r=P.r;O.g=P.g;O.b=P.b;b(Y,ya,O);z.r=ja.color.r*O.r;z.g=ja.color.g*O.g;z.b=ja.color.b*O.b;z.updateStyleString()}else z.__styleString=ja.color.__styleString;else if(ja instanceof THREE.MeshDepthMaterial){sa= -1-ja.__2near/(ja.__farPlusNear-ya.z*ja.__farMinusNear);z.setRGB(sa,sa,sa)}else ja instanceof THREE.MeshNormalMaterial&&z.setRGB(g(ya.normalWorld.x),g(ya.normalWorld.y),g(ya.normalWorld.z));ja.wireframe?ea.setAttribute("style","fill: none; stroke: "+z.__styleString+"; stroke-width: "+ja.wireframeLinewidth+"; stroke-opacity: "+ja.opacity+"; stroke-linecap: "+ja.wireframeLinecap+"; stroke-linejoin: "+ja.wireframeLinejoin):ea.setAttribute("style","fill: "+z.__styleString+"; fill-opacity: "+ja.opacity); -k.appendChild(ea)}function d(ra,aa,pa,ya,ja,Y,na){ea=f(xa++);ea.setAttribute("d","M "+ra.positionScreen.x+" "+ra.positionScreen.y+" L "+aa.positionScreen.x+" "+aa.positionScreen.y+" L "+pa.positionScreen.x+","+pa.positionScreen.y+" L "+ya.positionScreen.x+","+ya.positionScreen.y+"z");if(Y instanceof THREE.MeshBasicMaterial)z.__styleString=Y.color.__styleString;else if(Y instanceof THREE.MeshLambertMaterial)if(V){O.r=P.r;O.g=P.g;O.b=P.b;b(na,ja,O);z.r=Y.color.r*O.r;z.g=Y.color.g*O.g;z.b=Y.color.b* -O.b;z.updateStyleString()}else z.__styleString=Y.color.__styleString;else if(Y instanceof THREE.MeshDepthMaterial){sa=1-Y.__2near/(Y.__farPlusNear-ja.z*Y.__farMinusNear);z.setRGB(sa,sa,sa)}else Y instanceof THREE.MeshNormalMaterial&&z.setRGB(g(ja.normalWorld.x),g(ja.normalWorld.y),g(ja.normalWorld.z));Y.wireframe?ea.setAttribute("style","fill: none; stroke: "+z.__styleString+"; stroke-width: "+Y.wireframeLinewidth+"; stroke-opacity: "+Y.opacity+"; stroke-linecap: "+Y.wireframeLinecap+"; stroke-linejoin: "+ -Y.wireframeLinejoin):ea.setAttribute("style","fill: "+z.__styleString+"; fill-opacity: "+Y.opacity);k.appendChild(ea)}function f(ra){if(e[ra]==null){e[ra]=document.createElementNS("http://www.w3.org/2000/svg","path");Fa==0&&e[ra].setAttribute("shape-rendering","crispEdges")}return e[ra]}function g(ra){return ra<0?Math.min((1+ra)*0.5,0.5):0.5+Math.min(ra*0.5,0.5)}var h=null,j=new THREE.Projector,k=document.createElementNS("http://www.w3.org/2000/svg","svg"),n,p,o,w,y,v,A,F,G=new THREE.Rectangle,K= -new THREE.Rectangle,V=!1,z=new THREE.Color(16777215),O=new THREE.Color(16777215),P=new THREE.Color(0),S=new THREE.Color(0),wa=new THREE.Color(0),sa,qa=new THREE.Vector3,e=[],ga=[],ea,xa,Ea,Fa=1;this.domElement=k;this.autoClear=!0;this.sortObjects=!0;this.sortElements=!0;this.setQuality=function(ra){switch(ra){case "high":Fa=1;break;case "low":Fa=0}};this.setSize=function(ra,aa){n=ra;p=aa;o=n/2;w=p/2;k.setAttribute("viewBox",-o+" "+-w+" "+n+" "+p);k.setAttribute("width",n);k.setAttribute("height", -p);G.set(-o,-w,o,w)};this.clear=function(){for(;k.childNodes.length>0;)k.removeChild(k.childNodes[0])};this.render=function(ra,aa){var pa,ya,ja,Y,na,Ba,ka,la;this.autoClear&&this.clear();h=j.projectScene(ra,aa,this.sortElements);Ea=xa=0;if(V=ra.lights.length>0){ka=ra.lights;P.setRGB(0,0,0);S.setRGB(0,0,0);wa.setRGB(0,0,0);pa=0;for(ya=ka.length;pa255?255:wa;W[1]=ua<0?0:ua>255?255:ua;W[2]=X<0?0:X>255?255:X;W[4]=ha<0?0:ha>255?255:ha;W[5]=Q<0?0:Q>255?255:Q;W[6]=sa<0?0:sa>255?255:sa;W[8]=Na< +0?0:Na>255?255:Na;W[9]=cb<0?0:cb>255?255:cb;W[10]=ea<0?0:ea>255?255:ea;W[12]=Ua<0?0:Ua>255?255:Ua;W[13]=bb<0?0:bb>255?255:bb;W[14]=da<0?0:da>255?255:da;N.putImageData(O,0,0);za.drawImage(E,0,0);return U}function gb(X,sa,ea){X=(X-sa)/(ea-sa);return X*X*(3-2*X)}function hb(X){X=(X+1)*0.5;return X<0?0:X>1?1:X}function Wa(X,sa){var ea=sa.x-X.x,da=sa.y-X.y,wa=1/Math.sqrt(ea*ea+da*da);ea*=wa;da*=wa;sa.x+=ea;sa.y+=da;X.x-=ea;X.y-=da}var eb,Oa,Ja,La,T,Ra,Xa,Za;this.autoClear?this.clear():o.setTransform(1, +0,0,-1,n,p);f=g.projectScene(ma,Ha,this.sortElements);(x=ma.lights.length>0)&&db(ma);eb=0;for(Oa=f.length;eb0){ta.r+=Z.color.r*na;ta.g+=Z.color.g*na;ta.b+=Z.color.b*na}}else if(Z instanceof THREE.PointLight){pa.sub(Z.position,qa.centroidWorld);pa.normalize();na=qa.normalWorld.dot(pa)*Z.intensity;if(na>0){ta.r+=Z.color.r*na;ta.g+=Z.color.g*na;ta.b+=Z.color.b*na}}}}function c(Y,qa,ta,va,ia,Z){ca=f(ya++); +ca.setAttribute("d","M "+Y.positionScreen.x+" "+Y.positionScreen.y+" L "+qa.positionScreen.x+" "+qa.positionScreen.y+" L "+ta.positionScreen.x+","+ta.positionScreen.y+"z");if(ia instanceof THREE.MeshBasicMaterial)z.__styleString=ia.color.__styleString;else if(ia instanceof THREE.MeshLambertMaterial)if(V){K.r=P.r;K.g=P.g;K.b=P.b;b(Z,va,K);z.r=ia.color.r*K.r;z.g=ia.color.g*K.g;z.b=ia.color.b*K.b;z.updateStyleString()}else z.__styleString=ia.color.__styleString;else if(ia instanceof THREE.MeshDepthMaterial){ra= +1-ia.__2near/(ia.__farPlusNear-va.z*ia.__farMinusNear);z.setRGB(ra,ra,ra)}else ia instanceof THREE.MeshNormalMaterial&&z.setRGB(g(va.normalWorld.x),g(va.normalWorld.y),g(va.normalWorld.z));ia.wireframe?ca.setAttribute("style","fill: none; stroke: "+z.__styleString+"; stroke-width: "+ia.wireframeLinewidth+"; stroke-opacity: "+ia.opacity+"; stroke-linecap: "+ia.wireframeLinecap+"; stroke-linejoin: "+ia.wireframeLinejoin):ca.setAttribute("style","fill: "+z.__styleString+"; fill-opacity: "+ia.opacity); +k.appendChild(ca)}function d(Y,qa,ta,va,ia,Z,na){ca=f(ya++);ca.setAttribute("d","M "+Y.positionScreen.x+" "+Y.positionScreen.y+" L "+qa.positionScreen.x+" "+qa.positionScreen.y+" L "+ta.positionScreen.x+","+ta.positionScreen.y+" L "+va.positionScreen.x+","+va.positionScreen.y+"z");if(Z instanceof THREE.MeshBasicMaterial)z.__styleString=Z.color.__styleString;else if(Z instanceof THREE.MeshLambertMaterial)if(V){K.r=P.r;K.g=P.g;K.b=P.b;b(na,ia,K);z.r=Z.color.r*K.r;z.g=Z.color.g*K.g;z.b=Z.color.b*K.b; +z.updateStyleString()}else z.__styleString=Z.color.__styleString;else if(Z instanceof THREE.MeshDepthMaterial){ra=1-Z.__2near/(Z.__farPlusNear-ia.z*Z.__farMinusNear);z.setRGB(ra,ra,ra)}else Z instanceof THREE.MeshNormalMaterial&&z.setRGB(g(ia.normalWorld.x),g(ia.normalWorld.y),g(ia.normalWorld.z));Z.wireframe?ca.setAttribute("style","fill: none; stroke: "+z.__styleString+"; stroke-width: "+Z.wireframeLinewidth+"; stroke-opacity: "+Z.opacity+"; stroke-linecap: "+Z.wireframeLinecap+"; stroke-linejoin: "+ +Z.wireframeLinejoin):ca.setAttribute("style","fill: "+z.__styleString+"; fill-opacity: "+Z.opacity);k.appendChild(ca)}function f(Y){if(e[Y]==null){e[Y]=document.createElementNS("http://www.w3.org/2000/svg","path");Ea==0&&e[Y].setAttribute("shape-rendering","crispEdges")}return e[Y]}function g(Y){return Y<0?Math.min((1+Y)*0.5,0.5):0.5+Math.min(Y*0.5,0.5)}var h=null,j=new THREE.Projector,k=document.createElementNS("http://www.w3.org/2000/svg","svg"),n,p,o,w,y,v,A,F,G=new THREE.Rectangle,L=new THREE.Rectangle, +V=!1,z=new THREE.Color(16777215),K=new THREE.Color(16777215),P=new THREE.Color(0),S=new THREE.Color(0),xa=new THREE.Color(0),ra,pa=new THREE.Vector3,e=[],fa=[],ca,ya,Fa,Ea=1;this.domElement=k;this.autoClear=!0;this.sortObjects=!0;this.sortElements=!0;this.setQuality=function(Y){switch(Y){case "high":Ea=1;break;case "low":Ea=0}};this.setSize=function(Y,qa){n=Y;p=qa;o=n/2;w=p/2;k.setAttribute("viewBox",-o+" "+-w+" "+n+" "+p);k.setAttribute("width",n);k.setAttribute("height",p);G.set(-o,-w,o,w)};this.clear= +function(){for(;k.childNodes.length>0;)k.removeChild(k.childNodes[0])};this.render=function(Y,qa){var ta,va,ia,Z,na,Ba,ka,la;this.autoClear&&this.clear();h=j.projectScene(Y,qa,this.sortElements);Fa=ya=0;if(V=Y.lights.length>0){ka=Y.lights;P.setRGB(0,0,0);S.setRGB(0,0,0);xa.setRGB(0,0,0);ta=0;for(va=ka.length;taE){M=N;E=I[M]}e.bindBuffer(e.ARRAY_BUFFER,B.__webglMorphTargetsBuffers[M]);e.vertexAttribPointer(C["morphTarget"+u],3,e.FLOAT,!1,0,0);J.__webglMorphTargetInfluences[u]=E;H[M]=1;E=-1;u++}}e.uniform1fv(x.program.uniforms.morphTargetInfluences,J.__webglMorphTargetInfluences)}else{e.bindBuffer(e.ARRAY_BUFFER,B.__webglVertexBuffer);e.vertexAttribPointer(m.position,3,e.FLOAT,!1,0,0)}if(B.__webglCustomAttributes)for(L in B.__webglCustomAttributes)if(m[L]>= -0){C=B.__webglCustomAttributes[L];e.bindBuffer(e.ARRAY_BUFFER,C.buffer);e.vertexAttribPointer(m[L],C.size,e.FLOAT,!1,0,0)}if(m.color>=0){e.bindBuffer(e.ARRAY_BUFFER,B.__webglColorBuffer);e.vertexAttribPointer(m.color,3,e.FLOAT,!1,0,0)}if(m.normal>=0){e.bindBuffer(e.ARRAY_BUFFER,B.__webglNormalBuffer);e.vertexAttribPointer(m.normal,3,e.FLOAT,!1,0,0)}if(m.tangent>=0){e.bindBuffer(e.ARRAY_BUFFER,B.__webglTangentBuffer);e.vertexAttribPointer(m.tangent,4,e.FLOAT,!1,0,0)}if(m.uv>=0)if(B.__webglUVBuffer){e.bindBuffer(e.ARRAY_BUFFER, +x.envMap&&x.envMap.mapping instanceof THREE.CubeRefractionMapping}if(x instanceof THREE.LineBasicMaterial){H.diffuse.value.setRGB(x.color.r,x.color.g,x.color.b);H.opacity.value=x.opacity}else if(x instanceof THREE.ParticleBasicMaterial){H.psColor.value.setRGB(x.color.r,x.color.g,x.color.b);H.opacity.value=x.opacity;H.size.value=x.size;H.scale.value=fa.height/2;H.map.texture=x.map}else if(x instanceof THREE.MeshPhongMaterial){H.ambient.value.setRGB(x.ambient.r,x.ambient.g,x.ambient.b);H.specular.value.setRGB(x.specular.r, +x.specular.g,x.specular.b);H.shininess.value=x.shininess}else if(x instanceof THREE.MeshDepthMaterial){H.mNear.value=m.near;H.mFar.value=m.far;H.opacity.value=x.opacity}else if(x instanceof THREE.MeshNormalMaterial)H.opacity.value=x.opacity;for(var t in H)if(O=J.uniforms[t]){I=H[t];N=I.type;u=I.value;if(N=="i")e.uniform1i(O,u);else if(N=="f")e.uniform1f(O,u);else if(N=="fv1")e.uniform1fv(O,u);else if(N=="fv")e.uniform3fv(O,u);else if(N=="v2")e.uniform2f(O,u.x,u.y);else if(N=="v3")e.uniform3f(O,u.x, +u.y,u.z);else if(N=="v4")e.uniform4f(O,u.x,u.y,u.z,u.w);else if(N=="c")e.uniform3f(O,u.r,u.g,u.b);else if(N=="t"){e.uniform1i(O,u);if(I=I.texture)if(I.image instanceof Array&&I.image.length==6){if(I.image.length==6){if(I.needsUpdate){if(I.__webglInit){e.bindTexture(e.TEXTURE_CUBE_MAP,I.image.__webglTextureCube);for(N=0;N<6;++N)e.texSubImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+N,0,0,0,e.RGBA,e.UNSIGNED_BYTE,I.image[N])}else{I.image.__webglTextureCube=e.createTexture();e.bindTexture(e.TEXTURE_CUBE_MAP, +I.image.__webglTextureCube);for(N=0;N<6;++N)e.texImage2D(e.TEXTURE_CUBE_MAP_POSITIVE_X+N,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,I.image[N]);I.__webglInit=!0}K(e.TEXTURE_CUBE_MAP,I,I.image[0]);e.bindTexture(e.TEXTURE_CUBE_MAP,null);I.needsUpdate=!1}e.activeTexture(e.TEXTURE0+u);e.bindTexture(e.TEXTURE_CUBE_MAP,I.image.__webglTextureCube)}}else P(I,u)}}e.uniformMatrix4fv(M.modelViewMatrix,!1,B._modelViewMatrixArray);e.uniformMatrix3fv(M.normalMatrix,!1,B._normalMatrixArray);(x instanceof THREE.MeshShaderMaterial|| +x instanceof THREE.MeshPhongMaterial||x.envMap)&&e.uniform3f(M.cameraPosition,m.position.x,m.position.y,m.position.z);(x instanceof THREE.MeshShaderMaterial||x.envMap||x.skinning)&&e.uniformMatrix4fv(M.objectMatrix,!1,B._objectMatrixArray);(x instanceof THREE.MeshPhongMaterial||x instanceof THREE.MeshLambertMaterial||x instanceof THREE.MeshShaderMaterial||x.skinning)&&e.uniformMatrix4fv(M.viewMatrix,!1,$a);if(x instanceof THREE.ShadowVolumeDynamicMaterial){m=H.directionalLightDirection.value;m[0]= +-C.position.x;m[1]=-C.position.y;m[2]=-C.position.z;e.uniform3fv(M.directionalLightDirection,m);e.uniformMatrix4fv(M.objectMatrix,!1,B._objectMatrixArray);e.uniformMatrix4fv(M.viewMatrix,!1,$a)}if(x.skinning){e.uniformMatrix4fv(M.cameraInverseMatrix,!1,$a);e.uniformMatrix4fv(M.boneGlobalMatrices,!1,B.boneMatrices)}return J}function f(m,C,u,x,B,J){if(x.opacity!=0){var M;m=d(m,C,u,x,J).attributes;if(x.morphTargets){C=x.program.attributes;J.morphTargetBase!==-1?e.bindBuffer(e.ARRAY_BUFFER,B.__webglMorphTargetsBuffers[J.morphTargetBase]): +e.bindBuffer(e.ARRAY_BUFFER,B.__webglVertexBuffer);e.vertexAttribPointer(C.position,3,e.FLOAT,!1,0,0);if(J.morphTargetForcedOrder.length){u=0;for(var H=J.morphTargetForcedOrder,I=J.morphTargetInfluences;uE){N=O;E=I[N]}e.bindBuffer(e.ARRAY_BUFFER,B.__webglMorphTargetsBuffers[N]);e.vertexAttribPointer(C["morphTarget"+u],3,e.FLOAT,!1,0,0);J.__webglMorphTargetInfluences[u]=E;H[N]=1;E=-1;u++}}e.uniform1fv(x.program.uniforms.morphTargetInfluences,J.__webglMorphTargetInfluences)}else{e.bindBuffer(e.ARRAY_BUFFER,B.__webglVertexBuffer);e.vertexAttribPointer(m.position,3,e.FLOAT,!1,0,0)}if(B.__webglCustomAttributes)for(M in B.__webglCustomAttributes)if(m[M]>= +0){C=B.__webglCustomAttributes[M];e.bindBuffer(e.ARRAY_BUFFER,C.buffer);e.vertexAttribPointer(m[M],C.size,e.FLOAT,!1,0,0)}if(m.color>=0){e.bindBuffer(e.ARRAY_BUFFER,B.__webglColorBuffer);e.vertexAttribPointer(m.color,3,e.FLOAT,!1,0,0)}if(m.normal>=0){e.bindBuffer(e.ARRAY_BUFFER,B.__webglNormalBuffer);e.vertexAttribPointer(m.normal,3,e.FLOAT,!1,0,0)}if(m.tangent>=0){e.bindBuffer(e.ARRAY_BUFFER,B.__webglTangentBuffer);e.vertexAttribPointer(m.tangent,4,e.FLOAT,!1,0,0)}if(m.uv>=0)if(B.__webglUVBuffer){e.bindBuffer(e.ARRAY_BUFFER, B.__webglUVBuffer);e.vertexAttribPointer(m.uv,2,e.FLOAT,!1,0,0);e.enableVertexAttribArray(m.uv)}else e.disableVertexAttribArray(m.uv);if(m.uv2>=0)if(B.__webglUV2Buffer){e.bindBuffer(e.ARRAY_BUFFER,B.__webglUV2Buffer);e.vertexAttribPointer(m.uv2,2,e.FLOAT,!1,0,0);e.enableVertexAttribArray(m.uv2)}else e.disableVertexAttribArray(m.uv2);if(x.skinning&&m.skinVertexA>=0&&m.skinVertexB>=0&&m.skinIndex>=0&&m.skinWeight>=0){e.bindBuffer(e.ARRAY_BUFFER,B.__webglSkinVertexABuffer);e.vertexAttribPointer(m.skinVertexA, 4,e.FLOAT,!1,0,0);e.bindBuffer(e.ARRAY_BUFFER,B.__webglSkinVertexBBuffer);e.vertexAttribPointer(m.skinVertexB,4,e.FLOAT,!1,0,0);e.bindBuffer(e.ARRAY_BUFFER,B.__webglSkinIndicesBuffer);e.vertexAttribPointer(m.skinIndex,4,e.FLOAT,!1,0,0);e.bindBuffer(e.ARRAY_BUFFER,B.__webglSkinWeightsBuffer);e.vertexAttribPointer(m.skinWeight,4,e.FLOAT,!1,0,0)}if(J instanceof THREE.Mesh)if(x.wireframe){e.lineWidth(x.wireframeLinewidth);e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,B.__webglLineBuffer);e.drawElements(e.LINES, B.__webglLineCount,e.UNSIGNED_SHORT,0)}else{e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,B.__webglFaceBuffer);e.drawElements(e.TRIANGLES,B.__webglFaceCount,e.UNSIGNED_SHORT,0)}else if(J instanceof THREE.Line){J=J.type==THREE.LineStrip?e.LINE_STRIP:e.LINES;e.lineWidth(x.linewidth);e.drawArrays(J,0,B.__webglLineCount)}else if(J instanceof THREE.ParticleSystem)e.drawArrays(e.POINTS,0,B.__webglParticleCount);else J instanceof THREE.Ribbon&&e.drawArrays(e.TRIANGLE_STRIP,0,B.__webglVertexCount)}}function g(m,C, -u){if(!m.__webglVertexBuffer)m.__webglVertexBuffer=e.createBuffer();if(!m.__webglNormalBuffer)m.__webglNormalBuffer=e.createBuffer();if(m.hasPos){e.bindBuffer(e.ARRAY_BUFFER,m.__webglVertexBuffer);e.bufferData(e.ARRAY_BUFFER,m.positionArray,e.DYNAMIC_DRAW);e.enableVertexAttribArray(C.attributes.position);e.vertexAttribPointer(C.attributes.position,3,e.FLOAT,!1,0,0)}if(m.hasNormal){e.bindBuffer(e.ARRAY_BUFFER,m.__webglNormalBuffer);if(u==THREE.FlatShading){var x,B,J,L,H,I,E,M,N,W,U=m.count*3;for(W= -0;W0&&Ka[0]0&&Ka[1]0.0010&&H.scale>0.0010){za[0]=H.x;za[1]=H.y;za[2]=H.z;W=H.size*H.scale/ka;U[0]=W*E;U[1]=W;e.uniform3fv(ma.screenPosition,za);e.uniform2fv(ma.scale,U);e.uniform1f(ma.rotation,H.rotation);e.uniform1f(ma.opacity,H.opacity);z(H.blending);P(H.texture,1);e.drawElements(e.TRIANGLES,6,e.UNSIGNED_SHORT,0)}}}}e.enable(e.CULL_FACE);e.enable(e.DEPTH_TEST);e.depthMask(Fa)}function F(m, -C){m._modelViewMatrix.multiplyToArray(C.matrixWorldInverse,m.matrixWorld,m._modelViewMatrixArray);THREE.Matrix4.makeInvert3x3(m._modelViewMatrix).transposeIntoArray(m._normalMatrixArray)}function G(m){var C,u,x,B,J;if(m instanceof THREE.Mesh){u=m.geometry;for(C in u.geometryGroups){x=u.geometryGroups[C];J=!1;for(B in x.__webglCustomAttributes)if(x.__webglCustomAttributes[B].needsUpdate){J=!0;break}if(u.__dirtyVertices||u.__dirtyMorphTargets||u.__dirtyElements||u.__dirtyUvs||u.__dirtyNormals||u.__dirtyColors|| -u.__dirtyTangents||J){J=e.DYNAMIC_DRAW;var L=void 0,H=void 0,I=void 0,E=void 0;I=void 0;var M=void 0,N=void 0,W=void 0,U=void 0,za=void 0,Ka=void 0,ma=void 0,Ha=void 0,db=void 0,Aa=void 0,Ga=void 0,Ia=void 0,Qa=void 0;N=void 0;W=void 0;E=void 0;U=void 0;E=void 0;var D=void 0,Z=void 0;N=void 0;D=void 0;Z=void 0;var t=void 0,ab=void 0;D=void 0;Z=void 0;t=void 0;ab=void 0;D=void 0;Z=void 0;t=void 0;ab=void 0;D=void 0;Z=void 0;t=void 0;E=void 0;U=void 0;M=void 0;I=void 0;I=void 0;D=void 0;Z=void 0;t= -void 0;var fb=void 0,Ma=0,Va=0,gb=0,hb=0,Wa=0,eb=0,Oa=0,Ja=0,La=0,T=0,Ra=0;Z=D=0;var Xa=x.__vertexArray,Za=x.__uvArray,X=x.__uv2Array,ta=x.__normalArray,fa=x.__tangentArray,ca=x.__colorArray,va=x.__skinVertexAArray,ua=x.__skinVertexBArray,ha=x.__skinIndexArray,Q=x.__skinWeightArray,Na=x.__morphTargetsArrays,cb=x.__webglCustomAttributes;t=void 0;var Ua=x.__faceArray,bb=x.__lineArray,lb=x.__needsSmoothNormals;Ka=x.__vertexColorType;za=x.__uvType;ma=x.__normalType;var Pa=m.geometry,ib=Pa.__dirtyVertices, -sb=Pa.__dirtyElements,rb=Pa.__dirtyUvs,tb=Pa.__dirtyNormals,ub=Pa.__dirtyTangents,vb=Pa.__dirtyColors,wb=Pa.__dirtyMorphTargets,nb=Pa.vertices,xb=x.faces,Ab=Pa.faces,yb=Pa.faceVertexUvs[0],zb=Pa.faceVertexUvs[1],ob=Pa.skinVerticesA,pb=Pa.skinVerticesB,qb=Pa.skinIndices,kb=Pa.skinWeights,mb=Pa.edgeFaces,jb=Pa.morphTargets;if(cb)for(fb in cb){cb[fb].offset=0;cb[fb].offsetSrc=0}L=0;for(H=xb.length;L0){e.bindBuffer(e.ARRAY_BUFFER,x.__webglColorBuffer);e.bufferData(e.ARRAY_BUFFER,ca,J)}if(tb){e.bindBuffer(e.ARRAY_BUFFER,x.__webglNormalBuffer);e.bufferData(e.ARRAY_BUFFER,ta,J)}if(ub&&Pa.hasTangents){e.bindBuffer(e.ARRAY_BUFFER,x.__webglTangentBuffer);e.bufferData(e.ARRAY_BUFFER,fa,J)}if(rb&&gb>0){e.bindBuffer(e.ARRAY_BUFFER,x.__webglUVBuffer);e.bufferData(e.ARRAY_BUFFER,Za,J)}if(rb&&hb>0){e.bindBuffer(e.ARRAY_BUFFER,x.__webglUV2Buffer);e.bufferData(e.ARRAY_BUFFER,X,J)}if(sb){e.bindBuffer(e.ELEMENT_ARRAY_BUFFER, -x.__webglFaceBuffer);e.bufferData(e.ELEMENT_ARRAY_BUFFER,Ua,J);e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,x.__webglLineBuffer);e.bufferData(e.ELEMENT_ARRAY_BUFFER,bb,J)}if(T>0){e.bindBuffer(e.ARRAY_BUFFER,x.__webglSkinVertexABuffer);e.bufferData(e.ARRAY_BUFFER,va,J);e.bindBuffer(e.ARRAY_BUFFER,x.__webglSkinVertexBBuffer);e.bufferData(e.ARRAY_BUFFER,ua,J);e.bindBuffer(e.ARRAY_BUFFER,x.__webglSkinIndicesBuffer);e.bufferData(e.ARRAY_BUFFER,ha,J);e.bindBuffer(e.ARRAY_BUFFER,x.__webglSkinWeightsBuffer);e.bufferData(e.ARRAY_BUFFER, -Q,J)}}}u.__dirtyVertices=!1;u.__dirtyMorphTargets=!1;u.__dirtyElements=!1;u.__dirtyUvs=!1;u.__dirtyNormals=!1;u.__dirtyTangents=!1;u.__dirtyColors=!1}else if(m instanceof THREE.Ribbon){u=m.geometry;if(u.__dirtyVertices||u.__dirtyColors){m=u;C=e.DYNAMIC_DRAW;Ka=m.vertices;x=m.colors;ma=Ka.length;J=x.length;Ha=m.__vertexArray;L=m.__colorArray;db=m.__dirtyColors;if(m.__dirtyVertices){for(H=0;H65535){M[I].counter+=1;E=M[I].hash+"_"+M[I].counter;m.geometryGroups[E]==undefined&&(m.geometryGroups[E]={faces:[],materials:H,vertices:0,numMorphTargets:N})}m.geometryGroups[E].faces.push(B);m.geometryGroups[E].vertices+=L}}function V(m,C,u){m.push({buffer:C,object:u,opaque:{list:[],count:0},transparent:{list:[],count:0}})}function z(m){if(m!=ya){switch(m){case THREE.AdditiveBlending:e.blendEquation(e.FUNC_ADD);e.blendFunc(e.SRC_ALPHA,e.ONE);break;case THREE.SubtractiveBlending:e.blendEquation(e.FUNC_ADD); -e.blendFunc(e.ZERO,e.ONE_MINUS_SRC_COLOR);break;case THREE.MultiplyBlending:e.blendEquation(e.FUNC_ADD);e.blendFunc(e.ZERO,e.SRC_COLOR);break;default:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD);e.blendFuncSeparate(e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA,e.ONE,e.ONE_MINUS_SRC_ALPHA)}ya=m}}function O(m,C,u){if((u.width&u.width-1)==0&&(u.height&u.height-1)==0){e.texParameteri(m,e.TEXTURE_WRAP_S,qa(C.wrapS));e.texParameteri(m,e.TEXTURE_WRAP_T,qa(C.wrapT));e.texParameteri(m,e.TEXTURE_MAG_FILTER,qa(C.magFilter)); -e.texParameteri(m,e.TEXTURE_MIN_FILTER,qa(C.minFilter));e.generateMipmap(m)}else{e.texParameteri(m,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE);e.texParameteri(m,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE);e.texParameteri(m,e.TEXTURE_MAG_FILTER,sa(C.magFilter));e.texParameteri(m,e.TEXTURE_MIN_FILTER,sa(C.minFilter))}}function P(m,C){if(m.needsUpdate){if(m.__webglInit){e.bindTexture(e.TEXTURE_2D,m.__webglTexture);e.texSubImage2D(e.TEXTURE_2D,0,0,0,e.RGBA,e.UNSIGNED_BYTE,m.image)}else{m.__webglTexture=e.createTexture(); -e.bindTexture(e.TEXTURE_2D,m.__webglTexture);e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,m.image);m.__webglInit=!0}O(e.TEXTURE_2D,m,m.image);e.bindTexture(e.TEXTURE_2D,null);m.needsUpdate=!1}e.activeTexture(e.TEXTURE0+C);e.bindTexture(e.TEXTURE_2D,m.__webglTexture)}function S(m){if(m&&!m.__webglFramebuffer){if(m.depthBuffer===undefined)m.depthBuffer=!0;if(m.stencilBuffer===undefined)m.stencilBuffer=!0;m.__webglFramebuffer=e.createFramebuffer();m.__webglRenderbuffer=e.createRenderbuffer(); -m.__webglTexture=e.createTexture();e.bindTexture(e.TEXTURE_2D,m.__webglTexture);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,qa(m.wrapS));e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,qa(m.wrapT));e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,qa(m.magFilter));e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,qa(m.minFilter));e.texImage2D(e.TEXTURE_2D,0,qa(m.format),m.width,m.height,0,qa(m.format),qa(m.type),null);e.bindRenderbuffer(e.RENDERBUFFER,m.__webglRenderbuffer);e.bindFramebuffer(e.FRAMEBUFFER, +C;m++){u=x.materials[m];u.transparent?p(J,u):p(B,u)}}function w(m){var C,u,x,B,J=m.object,M=m.buffer,H=m.opaque,I=m.transparent;I.count=0;m=H.count=0;for(x=J.materials.length;m0&&Ka[0]0&&Ka[1]0.0010&&H.scale>0.0010){za[0]=H.x;za[1]=H.y;za[2]=H.z;W=H.size*H.scale/ka;U[0]=W*E;U[1]=W;e.uniform3fv(ma.screenPosition,za);e.uniform2fv(ma.scale,U);e.uniform1f(ma.rotation,H.rotation);e.uniform1f(ma.opacity,H.opacity);z(H.blending);P(H.texture,1);e.drawElements(e.TRIANGLES,6,e.UNSIGNED_SHORT,0)}}}}e.enable(e.CULL_FACE);e.enable(e.DEPTH_TEST);e.depthMask(Ea)}function F(m,C){m._modelViewMatrix.multiplyToArray(C.matrixWorldInverse, +m.matrixWorld,m._modelViewMatrixArray);THREE.Matrix4.makeInvert3x3(m._modelViewMatrix).transposeIntoArray(m._normalMatrixArray)}function G(m){var C,u,x,B,J;if(m instanceof THREE.Mesh){u=m.geometry;for(C in u.geometryGroups){x=u.geometryGroups[C];J=!1;for(B in x.__webglCustomAttributes)if(x.__webglCustomAttributes[B].needsUpdate){J=!0;break}if(u.__dirtyVertices||u.__dirtyMorphTargets||u.__dirtyElements||u.__dirtyUvs||u.__dirtyNormals||u.__dirtyColors||u.__dirtyTangents||J){J=e.DYNAMIC_DRAW;var M=void 0, +H=void 0,I=void 0,E=void 0;I=void 0;var N=void 0,O=void 0,W=void 0,U=void 0,za=void 0,Ka=void 0,ma=void 0,Ha=void 0,db=void 0,Aa=void 0,Ga=void 0,Ia=void 0,Qa=void 0;O=void 0;W=void 0;E=void 0;U=void 0;E=void 0;var D=void 0,$=void 0;O=void 0;D=void 0;$=void 0;var t=void 0,ab=void 0;D=void 0;$=void 0;t=void 0;ab=void 0;D=void 0;$=void 0;t=void 0;ab=void 0;D=void 0;$=void 0;t=void 0;E=void 0;U=void 0;N=void 0;I=void 0;I=void 0;D=void 0;$=void 0;t=void 0;var fb=void 0,Ma=0,Va=0,gb=0,hb=0,Wa=0,eb=0,Oa= +0,Ja=0,La=0,T=0,Ra=0;$=D=0;var Xa=x.__vertexArray,Za=x.__uvArray,X=x.__uv2Array,sa=x.__normalArray,ea=x.__tangentArray,da=x.__colorArray,wa=x.__skinVertexAArray,ua=x.__skinVertexBArray,ha=x.__skinIndexArray,Q=x.__skinWeightArray,Na=x.__morphTargetsArrays,cb=x.__webglCustomAttributes;t=void 0;var Ua=x.__faceArray,bb=x.__lineArray,lb=x.__needsSmoothNormals;Ka=x.__vertexColorType;za=x.__uvType;ma=x.__normalType;var Pa=m.geometry,ib=Pa.__dirtyVertices,sb=Pa.__dirtyElements,rb=Pa.__dirtyUvs,tb=Pa.__dirtyNormals, +ub=Pa.__dirtyTangents,vb=Pa.__dirtyColors,wb=Pa.__dirtyMorphTargets,nb=Pa.vertices,xb=x.faces,Ab=Pa.faces,yb=Pa.faceVertexUvs[0],zb=Pa.faceVertexUvs[1],ob=Pa.skinVerticesA,pb=Pa.skinVerticesB,qb=Pa.skinIndices,kb=Pa.skinWeights,mb=Pa.edgeFaces,jb=Pa.morphTargets;if(cb)for(fb in cb){cb[fb].offset=0;cb[fb].offsetSrc=0}M=0;for(H=xb.length;M0){e.bindBuffer(e.ARRAY_BUFFER, +x.__webglColorBuffer);e.bufferData(e.ARRAY_BUFFER,da,J)}if(tb){e.bindBuffer(e.ARRAY_BUFFER,x.__webglNormalBuffer);e.bufferData(e.ARRAY_BUFFER,sa,J)}if(ub&&Pa.hasTangents){e.bindBuffer(e.ARRAY_BUFFER,x.__webglTangentBuffer);e.bufferData(e.ARRAY_BUFFER,ea,J)}if(rb&&gb>0){e.bindBuffer(e.ARRAY_BUFFER,x.__webglUVBuffer);e.bufferData(e.ARRAY_BUFFER,Za,J)}if(rb&&hb>0){e.bindBuffer(e.ARRAY_BUFFER,x.__webglUV2Buffer);e.bufferData(e.ARRAY_BUFFER,X,J)}if(sb){e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,x.__webglFaceBuffer); +e.bufferData(e.ELEMENT_ARRAY_BUFFER,Ua,J);e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,x.__webglLineBuffer);e.bufferData(e.ELEMENT_ARRAY_BUFFER,bb,J)}if(T>0){e.bindBuffer(e.ARRAY_BUFFER,x.__webglSkinVertexABuffer);e.bufferData(e.ARRAY_BUFFER,wa,J);e.bindBuffer(e.ARRAY_BUFFER,x.__webglSkinVertexBBuffer);e.bufferData(e.ARRAY_BUFFER,ua,J);e.bindBuffer(e.ARRAY_BUFFER,x.__webglSkinIndicesBuffer);e.bufferData(e.ARRAY_BUFFER,ha,J);e.bindBuffer(e.ARRAY_BUFFER,x.__webglSkinWeightsBuffer);e.bufferData(e.ARRAY_BUFFER, +Q,J)}}}u.__dirtyVertices=!1;u.__dirtyMorphTargets=!1;u.__dirtyElements=!1;u.__dirtyUvs=!1;u.__dirtyNormals=!1;u.__dirtyTangents=!1;u.__dirtyColors=!1}else if(m instanceof THREE.Ribbon){u=m.geometry;if(u.__dirtyVertices||u.__dirtyColors){m=u;C=e.DYNAMIC_DRAW;Ka=m.vertices;x=m.colors;ma=Ka.length;J=x.length;Ha=m.__vertexArray;M=m.__colorArray;db=m.__dirtyColors;if(m.__dirtyVertices){for(H=0;H65535){N[I].counter+=1;E=N[I].hash+"_"+N[I].counter;m.geometryGroups[E]==undefined&&(m.geometryGroups[E]={faces:[],materials:H,vertices:0,numMorphTargets:O})}m.geometryGroups[E].faces.push(B);m.geometryGroups[E].vertices+=M}}function V(m,C,u){m.push({buffer:C,object:u,opaque:{list:[],count:0},transparent:{list:[],count:0}})}function z(m){if(m!=va){switch(m){case THREE.AdditiveBlending:e.blendEquation(e.FUNC_ADD);e.blendFunc(e.SRC_ALPHA,e.ONE);break;case THREE.SubtractiveBlending:e.blendEquation(e.FUNC_ADD); +e.blendFunc(e.ZERO,e.ONE_MINUS_SRC_COLOR);break;case THREE.MultiplyBlending:e.blendEquation(e.FUNC_ADD);e.blendFunc(e.ZERO,e.SRC_COLOR);break;default:e.blendEquationSeparate(e.FUNC_ADD,e.FUNC_ADD);e.blendFuncSeparate(e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA,e.ONE,e.ONE_MINUS_SRC_ALPHA)}va=m}}function K(m,C,u){if((u.width&u.width-1)==0&&(u.height&u.height-1)==0){e.texParameteri(m,e.TEXTURE_WRAP_S,pa(C.wrapS));e.texParameteri(m,e.TEXTURE_WRAP_T,pa(C.wrapT));e.texParameteri(m,e.TEXTURE_MAG_FILTER,pa(C.magFilter)); +e.texParameteri(m,e.TEXTURE_MIN_FILTER,pa(C.minFilter));e.generateMipmap(m)}else{e.texParameteri(m,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE);e.texParameteri(m,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE);e.texParameteri(m,e.TEXTURE_MAG_FILTER,ra(C.magFilter));e.texParameteri(m,e.TEXTURE_MIN_FILTER,ra(C.minFilter))}}function P(m,C){if(m.needsUpdate){if(m.__webglInit){e.bindTexture(e.TEXTURE_2D,m.__webglTexture);e.texSubImage2D(e.TEXTURE_2D,0,0,0,e.RGBA,e.UNSIGNED_BYTE,m.image)}else{m.__webglTexture=e.createTexture(); +e.bindTexture(e.TEXTURE_2D,m.__webglTexture);e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,m.image);m.__webglInit=!0}K(e.TEXTURE_2D,m,m.image);e.bindTexture(e.TEXTURE_2D,null);m.needsUpdate=!1}e.activeTexture(e.TEXTURE0+C);e.bindTexture(e.TEXTURE_2D,m.__webglTexture)}function S(m){if(m&&!m.__webglFramebuffer){if(m.depthBuffer===undefined)m.depthBuffer=!0;if(m.stencilBuffer===undefined)m.stencilBuffer=!0;m.__webglFramebuffer=e.createFramebuffer();m.__webglRenderbuffer=e.createRenderbuffer(); +m.__webglTexture=e.createTexture();e.bindTexture(e.TEXTURE_2D,m.__webglTexture);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,pa(m.wrapS));e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,pa(m.wrapT));e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,pa(m.magFilter));e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,pa(m.minFilter));e.texImage2D(e.TEXTURE_2D,0,pa(m.format),m.width,m.height,0,pa(m.format),pa(m.type),null);e.bindRenderbuffer(e.RENDERBUFFER,m.__webglRenderbuffer);e.bindFramebuffer(e.FRAMEBUFFER, m.__webglFramebuffer);e.framebufferTexture2D(e.FRAMEBUFFER,e.COLOR_ATTACHMENT0,e.TEXTURE_2D,m.__webglTexture,0);if(m.depthBuffer&&!m.stencilBuffer){e.renderbufferStorage(e.RENDERBUFFER,e.DEPTH_COMPONENT16,m.width,m.height);e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.RENDERBUFFER,m.__webglRenderbuffer)}else if(m.depthBuffer&&m.stencilBuffer){e.renderbufferStorage(e.RENDERBUFFER,e.DEPTH_STENCIL,m.width,m.height);e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_STENCIL_ATTACHMENT,e.RENDERBUFFER, -m.__webglRenderbuffer)}else e.renderbufferStorage(e.RENDERBUFFER,e.RGBA4,m.width,m.height);e.bindTexture(e.TEXTURE_2D,null);e.bindRenderbuffer(e.RENDERBUFFER,null);e.bindFramebuffer(e.FRAMEBUFFER,null)}var C,u;if(m){C=m.__webglFramebuffer;u=m.width;m=m.height}else{C=null;u=Ba;m=ka}if(C!=Ea){e.bindFramebuffer(e.FRAMEBUFFER,C);e.viewport(Y,na,u,m);Ea=C}}function wa(m,C){var u;if(m=="fragment")u=e.createShader(e.FRAGMENT_SHADER);else m=="vertex"&&(u=e.createShader(e.VERTEX_SHADER));e.shaderSource(u, -C);e.compileShader(u);if(!e.getShaderParameter(u,e.COMPILE_STATUS)){console.error(e.getShaderInfoLog(u));console.error(C);return null}return u}function sa(m){switch(m){case THREE.NearestFilter:case THREE.NearestMipMapNearestFilter:case THREE.NearestMipMapLinearFilter:return e.NEAREST;default:return e.LINEAR}}function qa(m){switch(m){case THREE.RepeatWrapping:return e.REPEAT;case THREE.ClampToEdgeWrapping:return e.CLAMP_TO_EDGE;case THREE.MirroredRepeatWrapping:return e.MIRRORED_REPEAT;case THREE.NearestFilter:return e.NEAREST; +m.__webglRenderbuffer)}else e.renderbufferStorage(e.RENDERBUFFER,e.RGBA4,m.width,m.height);e.bindTexture(e.TEXTURE_2D,null);e.bindRenderbuffer(e.RENDERBUFFER,null);e.bindFramebuffer(e.FRAMEBUFFER,null)}var C,u;if(m){C=m.__webglFramebuffer;u=m.width;m=m.height}else{C=null;u=Ba;m=ka}if(C!=Fa){e.bindFramebuffer(e.FRAMEBUFFER,C);e.viewport(Z,na,u,m);Fa=C}}function xa(m,C){var u;if(m=="fragment")u=e.createShader(e.FRAGMENT_SHADER);else m=="vertex"&&(u=e.createShader(e.VERTEX_SHADER));e.shaderSource(u, +C);e.compileShader(u);if(!e.getShaderParameter(u,e.COMPILE_STATUS)){console.error(e.getShaderInfoLog(u));console.error(C);return null}return u}function ra(m){switch(m){case THREE.NearestFilter:case THREE.NearestMipMapNearestFilter:case THREE.NearestMipMapLinearFilter:return e.NEAREST;default:return e.LINEAR}}function pa(m){switch(m){case THREE.RepeatWrapping:return e.REPEAT;case THREE.ClampToEdgeWrapping:return e.CLAMP_TO_EDGE;case THREE.MirroredRepeatWrapping:return e.MIRRORED_REPEAT;case THREE.NearestFilter:return e.NEAREST; case THREE.NearestMipMapNearestFilter:return e.NEAREST_MIPMAP_NEAREST;case THREE.NearestMipMapLinearFilter:return e.NEAREST_MIPMAP_LINEAR;case THREE.LinearFilter:return e.LINEAR;case THREE.LinearMipMapNearestFilter:return e.LINEAR_MIPMAP_NEAREST;case THREE.LinearMipMapLinearFilter:return e.LINEAR_MIPMAP_LINEAR;case THREE.ByteType:return e.BYTE;case THREE.UnsignedByteType:return e.UNSIGNED_BYTE;case THREE.ShortType:return e.SHORT;case THREE.UnsignedShortType:return e.UNSIGNED_SHORT;case THREE.IntType:return e.INT; -case THREE.UnsignedShortType:return e.UNSIGNED_INT;case THREE.FloatType:return e.FLOAT;case THREE.AlphaFormat:return e.ALPHA;case THREE.RGBFormat:return e.RGB;case THREE.RGBAFormat:return e.RGBA;case THREE.LuminanceFormat:return e.LUMINANCE;case THREE.LuminanceAlphaFormat:return e.LUMINANCE_ALPHA}return 0}var e,ga=document.createElement("canvas"),ea=[],xa=null,Ea=null,Fa=!0,ra=this,aa=null,pa=null,ya=null,ja=null,Y=0,na=0,Ba=0,ka=0,la=[new THREE.Vector4,new THREE.Vector4,new THREE.Vector4,new THREE.Vector4, -new THREE.Vector4,new THREE.Vector4],Da=new THREE.Matrix4,Sa=new Float32Array(16),$a=new Float32Array(16),Ya=new THREE.Vector4,Ta={ambient:[0,0,0],directional:{length:0,colors:[],positions:[]},point:{length:0,colors:[],positions:[],distances:[]}},R=!0,$=!0,oa=new THREE.Color(0),Ca=0;if(b){if(b.stencil!=undefined)R=b.stencil;if(b.antialias!==undefined)$=b.antialias;b.clearColor!==undefined&&oa.setHex(b.clearColor);if(b.clearAlpha!==undefined)Ca=b.clearAlpha}this.maxMorphTargets=8;this.domElement=ga; -this.autoClear=!0;this.sortObjects=!0;(function(m,C,u,x){try{if(!(e=ga.getContext("experimental-webgl",{antialias:m,stencil:x})))throw"Error creating WebGL context.";}catch(B){console.error(B)}e.clearColor(0,0,0,1);e.clearDepth(1);e.enable(e.DEPTH_TEST);e.depthFunc(e.LEQUAL);e.frontFace(e.CCW);e.cullFace(e.BACK);e.enable(e.CULL_FACE);e.enable(e.BLEND);e.blendEquation(e.FUNC_ADD);e.blendFunc(e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA);e.clearColor(C.r,C.g,C.b,u)})($,oa,Ca,R);this.context=e;if(R){var ia={}; -ia.vertices=new Float32Array(12);ia.faces=new Uint16Array(6);ia.darkness=0.5;ia.vertices[0]=-20;ia.vertices[1]=-20;ia.vertices[2]=-1;ia.vertices[3]=20;ia.vertices[4]=-20;ia.vertices[5]=-1;ia.vertices[6]=20;ia.vertices[7]=20;ia.vertices[8]=-1;ia.vertices[9]=-20;ia.vertices[10]=20;ia.vertices[11]=-1;ia.faces[0]=0;ia.faces[1]=1;ia.faces[2]=2;ia.faces[3]=0;ia.faces[4]=2;ia.faces[5]=3;ia.vertexBuffer=e.createBuffer();ia.elementBuffer=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,ia.vertexBuffer);e.bufferData(e.ARRAY_BUFFER, -ia.vertices,e.STATIC_DRAW);e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,ia.elementBuffer);e.bufferData(e.ELEMENT_ARRAY_BUFFER,ia.faces,e.STATIC_DRAW);ia.program=e.createProgram();e.attachShader(ia.program,wa("fragment",THREE.ShaderLib.shadowPost.fragmentShader));e.attachShader(ia.program,wa("vertex",THREE.ShaderLib.shadowPost.vertexShader));e.linkProgram(ia.program);ia.vertexLocation=e.getAttribLocation(ia.program,"position");ia.projectionLocation=e.getUniformLocation(ia.program,"projectionMatrix");ia.darknessLocation= -e.getUniformLocation(ia.program,"darkness")}var da={};da.vertices=new Float32Array(16);da.faces=new Uint16Array(6);da.transparency=0.5;b=0;da.vertices[b++]=-1;da.vertices[b++]=-1;da.vertices[b++]=0;da.vertices[b++]=0;da.vertices[b++]=1;da.vertices[b++]=-1;da.vertices[b++]=1;da.vertices[b++]=0;da.vertices[b++]=1;da.vertices[b++]=1;da.vertices[b++]=1;da.vertices[b++]=1;da.vertices[b++]=-1;da.vertices[b++]=1;da.vertices[b++]=0;da.vertices[b++]=1;b=0;da.faces[b++]=0;da.faces[b++]=1;da.faces[b++]=2;da.faces[b++]= -0;da.faces[b++]=2;da.faces[b++]=3;da.vertexBuffer=e.createBuffer();da.elementBuffer=e.createBuffer();da.tempTexture=e.createTexture();da.occlusionTexture=e.createTexture();e.bindBuffer(e.ARRAY_BUFFER,da.vertexBuffer);e.bufferData(e.ARRAY_BUFFER,da.vertices,e.STATIC_DRAW);e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,da.elementBuffer);e.bufferData(e.ELEMENT_ARRAY_BUFFER,da.faces,e.STATIC_DRAW);e.bindTexture(e.TEXTURE_2D,da.tempTexture);e.texImage2D(e.TEXTURE_2D,0,e.RGB,16,16,0,e.RGB,e.UNSIGNED_BYTE,null);e.texParameteri(e.TEXTURE_2D, -e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.NEAREST);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.NEAREST);e.bindTexture(e.TEXTURE_2D,da.occlusionTexture);e.texImage2D(e.TEXTURE_2D,0,e.RGBA,16,16,0,e.RGBA,e.UNSIGNED_BYTE,null);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER, -e.NEAREST);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.NEAREST);if(e.getParameter(e.MAX_VERTEX_TEXTURE_IMAGE_UNITS)<=0){da.hasVertexTexture=!1;da.program=e.createProgram();e.attachShader(da.program,wa("fragment",THREE.ShaderLib.lensFlare.fragmentShader));e.attachShader(da.program,wa("vertex",THREE.ShaderLib.lensFlare.vertexShader))}else{da.hasVertexTexture=!0;da.program=e.createProgram();e.attachShader(da.program,wa("fragment",THREE.ShaderLib.lensFlareVertexTexture.fragmentShader));e.attachShader(da.program, -wa("vertex",THREE.ShaderLib.lensFlareVertexTexture.vertexShader))}e.linkProgram(da.program);da.attributes={};da.uniforms={};da.attributes.vertex=e.getAttribLocation(da.program,"position");da.attributes.uv=e.getAttribLocation(da.program,"UV");da.uniforms.renderType=e.getUniformLocation(da.program,"renderType");da.uniforms.map=e.getUniformLocation(da.program,"map");da.uniforms.occlusionMap=e.getUniformLocation(da.program,"occlusionMap");da.uniforms.opacity=e.getUniformLocation(da.program,"opacity"); -da.uniforms.scale=e.getUniformLocation(da.program,"scale");da.uniforms.rotation=e.getUniformLocation(da.program,"rotation");da.uniforms.screenPosition=e.getUniformLocation(da.program,"screenPosition");this.setSize=function(m,C){ga.width=m;ga.height=C;this.setViewport(0,0,ga.width,ga.height)};this.setViewport=function(m,C,u,x){Y=m;na=C;Ba=u;ka=x;e.viewport(Y,na,Ba,ka)};this.setScissor=function(m,C,u,x){e.scissor(m,C,u,x)};this.enableScissorTest=function(m){m?e.enable(e.SCISSOR_TEST):e.disable(e.SCISSOR_TEST)}; -this.enableDepthBufferWrite=function(m){Fa=m;e.depthMask(m)};this.setClearColorHex=function(m,C){var u=new THREE.Color(m);e.clearColor(u.r,u.g,u.b,C)};this.setClearColor=function(m,C){e.clearColor(m.r,m.g,m.b,C)};this.clear=function(){e.clear(e.COLOR_BUFFER_BIT|e.DEPTH_BUFFER_BIT|e.STENCIL_BUFFER_BIT)};this.setStencilShadowDarkness=function(m){ia.darkness=m};this.initMaterial=function(m,C,u,x){var B,J,L;if(m instanceof THREE.MeshDepthMaterial)L="depth";else if(m instanceof THREE.ShadowVolumeDynamicMaterial)L= -"shadowVolumeDynamic";else if(m instanceof THREE.MeshNormalMaterial)L="normal";else if(m instanceof THREE.MeshBasicMaterial)L="basic";else if(m instanceof THREE.MeshLambertMaterial)L="lambert";else if(m instanceof THREE.MeshPhongMaterial)L="phong";else if(m instanceof THREE.LineBasicMaterial)L="basic";else m instanceof THREE.ParticleBasicMaterial&&(L="particle_basic");if(L){var H=THREE.ShaderLib[L];m.uniforms=Uniforms.clone(H.uniforms);m.vertexShader=H.vertexShader;m.fragmentShader=H.fragmentShader}var I, -E,M;I=M=H=0;for(E=C.length;I0?"#define VERTEX_TEXTURES":"","#define MAX_DIR_LIGHTS "+u.maxDirLights,"#define MAX_POINT_LIGHTS "+u.maxPointLights,"#define MAX_BONES "+u.maxBones,u.map?"#define USE_MAP":"",u.envMap?"#define USE_ENVMAP":"",u.lightMap?"#define USE_LIGHTMAP": -"",u.vertexColors?"#define USE_COLOR":"",u.skinning?"#define USE_SKINNING":"",u.morphTargets?"#define USE_MORPHTARGETS":"",u.sizeAttenuation?"#define USE_SIZEATTENUATION":"","uniform mat4 objectMatrix;\nuniform mat4 modelViewMatrix;\nuniform mat4 projectionMatrix;\nuniform mat4 viewMatrix;\nuniform mat3 normalMatrix;\nuniform vec3 cameraPosition;\nuniform mat4 cameraInverseMatrix;\nattribute vec3 position;\nattribute vec3 normal;\nattribute vec2 uv;\nattribute vec2 uv2;\n#ifdef USE_COLOR\nattribute vec3 color;\n#endif\n#ifdef USE_MORPHTARGETS\nattribute vec3 morphTarget0;\nattribute vec3 morphTarget1;\nattribute vec3 morphTarget2;\nattribute vec3 morphTarget3;\nattribute vec3 morphTarget4;\nattribute vec3 morphTarget5;\nattribute vec3 morphTarget6;\nattribute vec3 morphTarget7;\n#endif\n#ifdef USE_SKINNING\nattribute vec4 skinVertexA;\nattribute vec4 skinVertexB;\nattribute vec4 skinIndex;\nattribute vec4 skinWeight;\n#endif\n"].join("\n"); -e.attachShader(W,wa("fragment",prefix_fragment+I));e.attachShader(W,wa("vertex",prefix_vertex+E));e.linkProgram(W);e.getProgramParameter(W,e.LINK_STATUS)||console.error("Could not initialise shader\nVALIDATE_STATUS: "+e.getProgramParameter(W,e.VALIDATE_STATUS)+", gl error ["+e.getError()+"]");W.uniforms={};W.attributes={};var U;I=["viewMatrix","modelViewMatrix","projectionMatrix","normalMatrix","objectMatrix","cameraPosition","cameraInverseMatrix","boneGlobalMatrices","morphTargetInfluences"];for(U in H)I.push(U); -U=I;H=0;for(I=U.length;H=0&&e.enableVertexAttribArray(N.color);N.normal>= -0&&e.enableVertexAttribArray(N.normal);N.tangent>=0&&e.enableVertexAttribArray(N.tangent);if(m.skinning&&N.skinVertexA>=0&&N.skinVertexB>=0&&N.skinIndex>=0&&N.skinWeight>=0){e.enableVertexAttribArray(N.skinVertexA);e.enableVertexAttribArray(N.skinVertexB);e.enableVertexAttribArray(N.skinIndex);e.enableVertexAttribArray(N.skinWeight)}for(B in m.attributes)N[B]>=0&&e.enableVertexAttribArray(N[B]);if(m.morphTargets){m.numSupportedMorphTargets=0;if(N.morphTarget0>=0){e.enableVertexAttribArray(N.morphTarget0); -m.numSupportedMorphTargets++}if(N.morphTarget1>=0){e.enableVertexAttribArray(N.morphTarget1);m.numSupportedMorphTargets++}if(N.morphTarget2>=0){e.enableVertexAttribArray(N.morphTarget2);m.numSupportedMorphTargets++}if(N.morphTarget3>=0){e.enableVertexAttribArray(N.morphTarget3);m.numSupportedMorphTargets++}if(N.morphTarget4>=0){e.enableVertexAttribArray(N.morphTarget4);m.numSupportedMorphTargets++}if(N.morphTarget5>=0){e.enableVertexAttribArray(N.morphTarget5);m.numSupportedMorphTargets++}if(N.morphTarget6>= -0){e.enableVertexAttribArray(N.morphTarget6);m.numSupportedMorphTargets++}if(N.morphTarget7>=0){e.enableVertexAttribArray(N.morphTarget7);m.numSupportedMorphTargets++}x.__webglMorphTargetInfluences=new Float32Array(this.maxMorphTargets);m=0;for(B=this.maxMorphTargets;m0||W.faceVertexUvs.length>0)L.__uvArray=new Float32Array(I*2);if(W.faceUvs.length>1||W.faceVertexUvs.length>1)L.__uv2Array=new Float32Array(I*2)}if(H.geometry.skinWeights.length&&H.geometry.skinIndices.length){L.__skinVertexAArray=new Float32Array(I*4);L.__skinVertexBArray= -new Float32Array(I*4);L.__skinIndexArray=new Float32Array(I*4);L.__skinWeightArray=new Float32Array(I*4)}L.__faceArray=new Uint16Array(za*3+(H.geometry.edgeFaces?H.geometry.edgeFaces.length*6:0));L.__lineArray=new Uint16Array(Ka*2);if(L.numMorphTargets){L.__morphTargetsArrays=[];W=0;for(U=L.numMorphTargets;W=0;B--){x=u.__webglObjects[B].object;C==x&&u.__webglObjects.splice(B,1)}m.__objectsRemoved.splice(0,1)}C=0;for(u=m.__webglObjects.length;C0}}; +case THREE.UnsignedShortType:return e.UNSIGNED_INT;case THREE.FloatType:return e.FLOAT;case THREE.AlphaFormat:return e.ALPHA;case THREE.RGBFormat:return e.RGB;case THREE.RGBAFormat:return e.RGBA;case THREE.LuminanceFormat:return e.LUMINANCE;case THREE.LuminanceAlphaFormat:return e.LUMINANCE_ALPHA}return 0}var e,fa=document.createElement("canvas"),ca=[],ya=null,Fa=null,Ea=!0,Y=this,qa=null,ta=null,va=null,ia=null,Z=0,na=0,Ba=0,ka=0,la=[new THREE.Vector4,new THREE.Vector4,new THREE.Vector4,new THREE.Vector4, +new THREE.Vector4,new THREE.Vector4],Da=new THREE.Matrix4,Sa=new Float32Array(16),$a=new Float32Array(16),Ya=new THREE.Vector4,Ta={ambient:[0,0,0],directional:{length:0,colors:[],positions:[]},point:{length:0,colors:[],positions:[],distances:[]}},R=!0,aa=!0,oa=new THREE.Color(0),Ca=0;if(b){if(b.stencil!=undefined)R=b.stencil;if(b.antialias!==undefined)aa=b.antialias;b.clearColor!==undefined&&oa.setHex(b.clearColor);if(b.clearAlpha!==undefined)Ca=b.clearAlpha}this.maxMorphTargets=8;this.domElement= +fa;this.autoClear=!0;this.sortObjects=!0;(function(m,C,u,x){try{if(!(e=fa.getContext("experimental-webgl",{antialias:m,stencil:x})))throw"Error creating WebGL context.";}catch(B){console.error(B)}e.clearColor(0,0,0,1);e.clearDepth(1);e.enable(e.DEPTH_TEST);e.depthFunc(e.LEQUAL);e.frontFace(e.CCW);e.cullFace(e.BACK);e.enable(e.CULL_FACE);e.enable(e.BLEND);e.blendEquation(e.FUNC_ADD);e.blendFunc(e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA);e.clearColor(C.r,C.g,C.b,u)})(aa,oa,Ca,R);this.context=e;if(R){var ja= +{};ja.vertices=new Float32Array(12);ja.faces=new Uint16Array(6);ja.darkness=0.5;ja.vertices[0]=-20;ja.vertices[1]=-20;ja.vertices[2]=-1;ja.vertices[3]=20;ja.vertices[4]=-20;ja.vertices[5]=-1;ja.vertices[6]=20;ja.vertices[7]=20;ja.vertices[8]=-1;ja.vertices[9]=-20;ja.vertices[10]=20;ja.vertices[11]=-1;ja.faces[0]=0;ja.faces[1]=1;ja.faces[2]=2;ja.faces[3]=0;ja.faces[4]=2;ja.faces[5]=3;ja.vertexBuffer=e.createBuffer();ja.elementBuffer=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,ja.vertexBuffer);e.bufferData(e.ARRAY_BUFFER, +ja.vertices,e.STATIC_DRAW);e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,ja.elementBuffer);e.bufferData(e.ELEMENT_ARRAY_BUFFER,ja.faces,e.STATIC_DRAW);ja.program=e.createProgram();e.attachShader(ja.program,xa("fragment",THREE.ShaderLib.shadowPost.fragmentShader));e.attachShader(ja.program,xa("vertex",THREE.ShaderLib.shadowPost.vertexShader));e.linkProgram(ja.program);ja.vertexLocation=e.getAttribLocation(ja.program,"position");ja.projectionLocation=e.getUniformLocation(ja.program,"projectionMatrix");ja.darknessLocation= +e.getUniformLocation(ja.program,"darkness")}var ga={};ga.vertices=new Float32Array(16);ga.faces=new Uint16Array(6);b=0;ga.vertices[b++]=-1;ga.vertices[b++]=-1;ga.vertices[b++]=0;ga.vertices[b++]=0;ga.vertices[b++]=1;ga.vertices[b++]=-1;ga.vertices[b++]=1;ga.vertices[b++]=0;ga.vertices[b++]=1;ga.vertices[b++]=1;ga.vertices[b++]=1;ga.vertices[b++]=1;ga.vertices[b++]=-1;ga.vertices[b++]=1;ga.vertices[b++]=0;ga.vertices[b++]=1;b=0;ga.faces[b++]=0;ga.faces[b++]=1;ga.faces[b++]=2;ga.faces[b++]=0;ga.faces[b++]= +2;ga.faces[b++]=3;ga.vertexBuffer=e.createBuffer();ga.elementBuffer=e.createBuffer();ga.tempTexture=e.createTexture();ga.occlusionTexture=e.createTexture();e.bindBuffer(e.ARRAY_BUFFER,ga.vertexBuffer);e.bufferData(e.ARRAY_BUFFER,ga.vertices,e.STATIC_DRAW);e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,ga.elementBuffer);e.bufferData(e.ELEMENT_ARRAY_BUFFER,ga.faces,e.STATIC_DRAW);e.bindTexture(e.TEXTURE_2D,ga.tempTexture);e.texImage2D(e.TEXTURE_2D,0,e.RGB,16,16,0,e.RGB,e.UNSIGNED_BYTE,null);e.texParameteri(e.TEXTURE_2D, +e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.NEAREST);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.NEAREST);e.bindTexture(e.TEXTURE_2D,ga.occlusionTexture);e.texImage2D(e.TEXTURE_2D,0,e.RGBA,16,16,0,e.RGBA,e.UNSIGNED_BYTE,null);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER, +e.NEAREST);e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.NEAREST);if(e.getParameter(e.MAX_VERTEX_TEXTURE_IMAGE_UNITS)<=0){ga.hasVertexTexture=!1;ga.program=e.createProgram();e.attachShader(ga.program,xa("fragment",THREE.ShaderLib.lensFlare.fragmentShader));e.attachShader(ga.program,xa("vertex",THREE.ShaderLib.lensFlare.vertexShader))}else{ga.hasVertexTexture=!0;ga.program=e.createProgram();e.attachShader(ga.program,xa("fragment",THREE.ShaderLib.lensFlareVertexTexture.fragmentShader));e.attachShader(ga.program, +xa("vertex",THREE.ShaderLib.lensFlareVertexTexture.vertexShader))}e.linkProgram(ga.program);ga.attributes={};ga.uniforms={};ga.attributes.vertex=e.getAttribLocation(ga.program,"position");ga.attributes.uv=e.getAttribLocation(ga.program,"UV");ga.uniforms.renderType=e.getUniformLocation(ga.program,"renderType");ga.uniforms.map=e.getUniformLocation(ga.program,"map");ga.uniforms.occlusionMap=e.getUniformLocation(ga.program,"occlusionMap");ga.uniforms.opacity=e.getUniformLocation(ga.program,"opacity"); +ga.uniforms.scale=e.getUniformLocation(ga.program,"scale");ga.uniforms.rotation=e.getUniformLocation(ga.program,"rotation");ga.uniforms.screenPosition=e.getUniformLocation(ga.program,"screenPosition");_sprite={};_sprite.vertices=new Float32Array(16);_sprite.faces=new Uint16Array(6);b=0;_sprite.vertices[b++]=-1;_sprite.vertices[b++]=-1;_sprite.vertices[b++]=0;_sprite.vertices[b++]=0;_sprite.vertices[b++]=1;_sprite.vertices[b++]=-1;_sprite.vertices[b++]=1;_sprite.vertices[b++]=0;_sprite.vertices[b++]= +1;_sprite.vertices[b++]=1;_sprite.vertices[b++]=1;_sprite.vertices[b++]=1;_sprite.vertices[b++]=-1;_sprite.vertices[b++]=1;_sprite.vertices[b++]=0;_sprite.vertices[b++]=1;b=0;_sprite.faces[b++]=0;_sprite.faces[b++]=1;_sprite.faces[b++]=2;_sprite.faces[b++]=0;_sprite.faces[b++]=2;_sprite.faces[b++]=3;_sprite.vertexBuffer=e.createBuffer();_sprite.elementBuffer=e.createBuffer();e.bindBuffer(e.ARRAY_BUFFER,_sprite.vertexBuffer);e.bufferData(e.ARRAY_BUFFER,_sprite.vertices,e.STATIC_DRAW);e.bindBuffer(e.ELEMENT_ARRAY_BUFFER, +_sprite.elementBuffer);e.bufferData(e.ELEMENT_ARRAY_BUFFER,_sprite.faces,e.STATIC_DRAW);_sprite.program=e.createProgram();e.attachShader(_sprite.program,xa("fragment",THREE.ShaderLib.sprite.fragmentShader));e.attachShader(_sprite.program,xa("vertex",THREE.ShaderLib.sprite.vertexShader));e.linkProgram(_sprite.program);_sprite.attributes={};_sprite.uniforms={};_sprite.attributes.vertex=e.getAttribLocation(_sprite.program,"position");_sprite.attributes.uv=e.getAttribLocation(_sprite.program,"UV");_sprite.uniforms.map= +e.getUniformLocation(_sprite.program,"map");_sprite.uniforms.opacity=e.getUniformLocation(_sprite.program,"opacity");_sprite.uniforms.scale=e.getUniformLocation(_sprite.program,"scale");_sprite.uniforms.rotation=e.getUniformLocation(_sprite.program,"rotation");_sprite.uniforms.screenPosition=e.getUniformLocation(_sprite.program,"screenPosition");this.setSize=function(m,C){fa.width=m;fa.height=C;this.setViewport(0,0,fa.width,fa.height)};this.setViewport=function(m,C,u,x){Z=m;na=C;Ba=u;ka=x;e.viewport(Z, +na,Ba,ka)};this.setScissor=function(m,C,u,x){e.scissor(m,C,u,x)};this.enableScissorTest=function(m){m?e.enable(e.SCISSOR_TEST):e.disable(e.SCISSOR_TEST)};this.enableDepthBufferWrite=function(m){Ea=m;e.depthMask(m)};this.setClearColorHex=function(m,C){var u=new THREE.Color(m);e.clearColor(u.r,u.g,u.b,C)};this.setClearColor=function(m,C){e.clearColor(m.r,m.g,m.b,C)};this.clear=function(){e.clear(e.COLOR_BUFFER_BIT|e.DEPTH_BUFFER_BIT|e.STENCIL_BUFFER_BIT)};this.setStencilShadowDarkness=function(m){ja.darkness= +m};this.initMaterial=function(m,C,u,x){var B,J,M;if(m instanceof THREE.MeshDepthMaterial)M="depth";else if(m instanceof THREE.ShadowVolumeDynamicMaterial)M="shadowVolumeDynamic";else if(m instanceof THREE.MeshNormalMaterial)M="normal";else if(m instanceof THREE.MeshBasicMaterial)M="basic";else if(m instanceof THREE.MeshLambertMaterial)M="lambert";else if(m instanceof THREE.MeshPhongMaterial)M="phong";else if(m instanceof THREE.LineBasicMaterial)M="basic";else m instanceof THREE.ParticleBasicMaterial&& +(M="particle_basic");if(M){var H=THREE.ShaderLib[M];m.uniforms=Uniforms.clone(H.uniforms);m.vertexShader=H.vertexShader;m.fragmentShader=H.fragmentShader}var I,E,N;I=N=H=0;for(E=C.length;I0?"#define VERTEX_TEXTURES":"","#define MAX_DIR_LIGHTS "+u.maxDirLights, +"#define MAX_POINT_LIGHTS "+u.maxPointLights,"#define MAX_BONES "+u.maxBones,u.map?"#define USE_MAP":"",u.envMap?"#define USE_ENVMAP":"",u.lightMap?"#define USE_LIGHTMAP":"",u.vertexColors?"#define USE_COLOR":"",u.skinning?"#define USE_SKINNING":"",u.morphTargets?"#define USE_MORPHTARGETS":"",u.sizeAttenuation?"#define USE_SIZEATTENUATION":"","uniform mat4 objectMatrix;\nuniform mat4 modelViewMatrix;\nuniform mat4 projectionMatrix;\nuniform mat4 viewMatrix;\nuniform mat3 normalMatrix;\nuniform vec3 cameraPosition;\nuniform mat4 cameraInverseMatrix;\nattribute vec3 position;\nattribute vec3 normal;\nattribute vec2 uv;\nattribute vec2 uv2;\n#ifdef USE_COLOR\nattribute vec3 color;\n#endif\n#ifdef USE_MORPHTARGETS\nattribute vec3 morphTarget0;\nattribute vec3 morphTarget1;\nattribute vec3 morphTarget2;\nattribute vec3 morphTarget3;\nattribute vec3 morphTarget4;\nattribute vec3 morphTarget5;\nattribute vec3 morphTarget6;\nattribute vec3 morphTarget7;\n#endif\n#ifdef USE_SKINNING\nattribute vec4 skinVertexA;\nattribute vec4 skinVertexB;\nattribute vec4 skinIndex;\nattribute vec4 skinWeight;\n#endif\n"].join("\n"); +e.attachShader(W,xa("fragment",prefix_fragment+I));e.attachShader(W,xa("vertex",prefix_vertex+E));e.linkProgram(W);e.getProgramParameter(W,e.LINK_STATUS)||console.error("Could not initialise shader\nVALIDATE_STATUS: "+e.getProgramParameter(W,e.VALIDATE_STATUS)+", gl error ["+e.getError()+"]");W.uniforms={};W.attributes={};var U;I=["viewMatrix","modelViewMatrix","projectionMatrix","normalMatrix","objectMatrix","cameraPosition","cameraInverseMatrix","boneGlobalMatrices","morphTargetInfluences"];for(U in H)I.push(U); +U=I;H=0;for(I=U.length;H=0&&e.enableVertexAttribArray(O.color);O.normal>= +0&&e.enableVertexAttribArray(O.normal);O.tangent>=0&&e.enableVertexAttribArray(O.tangent);if(m.skinning&&O.skinVertexA>=0&&O.skinVertexB>=0&&O.skinIndex>=0&&O.skinWeight>=0){e.enableVertexAttribArray(O.skinVertexA);e.enableVertexAttribArray(O.skinVertexB);e.enableVertexAttribArray(O.skinIndex);e.enableVertexAttribArray(O.skinWeight)}for(B in m.attributes)O[B]>=0&&e.enableVertexAttribArray(O[B]);if(m.morphTargets){m.numSupportedMorphTargets=0;if(O.morphTarget0>=0){e.enableVertexAttribArray(O.morphTarget0); +m.numSupportedMorphTargets++}if(O.morphTarget1>=0){e.enableVertexAttribArray(O.morphTarget1);m.numSupportedMorphTargets++}if(O.morphTarget2>=0){e.enableVertexAttribArray(O.morphTarget2);m.numSupportedMorphTargets++}if(O.morphTarget3>=0){e.enableVertexAttribArray(O.morphTarget3);m.numSupportedMorphTargets++}if(O.morphTarget4>=0){e.enableVertexAttribArray(O.morphTarget4);m.numSupportedMorphTargets++}if(O.morphTarget5>=0){e.enableVertexAttribArray(O.morphTarget5);m.numSupportedMorphTargets++}if(O.morphTarget6>= +0){e.enableVertexAttribArray(O.morphTarget6);m.numSupportedMorphTargets++}if(O.morphTarget7>=0){e.enableVertexAttribArray(O.morphTarget7);m.numSupportedMorphTargets++}x.__webglMorphTargetInfluences=new Float32Array(this.maxMorphTargets);m=0;for(B=this.maxMorphTargets;m0||W.faceVertexUvs.length>0)M.__uvArray=new Float32Array(I*2);if(W.faceUvs.length>1||W.faceVertexUvs.length>1)M.__uv2Array=new Float32Array(I*2)}if(H.geometry.skinWeights.length&&H.geometry.skinIndices.length){M.__skinVertexAArray= +new Float32Array(I*4);M.__skinVertexBArray=new Float32Array(I*4);M.__skinIndexArray=new Float32Array(I*4);M.__skinWeightArray=new Float32Array(I*4)}M.__faceArray=new Uint16Array(za*3+(H.geometry.edgeFaces?H.geometry.edgeFaces.length*6:0));M.__lineArray=new Uint16Array(Ka*2);if(M.numMorphTargets){M.__morphTargetsArrays=[];W=0;for(U=M.numMorphTargets;W=0;B--){x=u.__webglObjects[B].object;C==x&&u.__webglObjects.splice(B,1)}m.__objectsRemoved.splice(0,1)}C=0;for(u=m.__webglObjects.length;C0}}; THREE.WebGLRenderTarget=function(b,c,d){this.width=b;this.height=c;d=d||{};this.wrapS=d.wrapS!==undefined?d.wrapS:THREE.ClampToEdgeWrapping;this.wrapT=d.wrapT!==undefined?d.wrapT:THREE.ClampToEdgeWrapping;this.magFilter=d.magFilter!==undefined?d.magFilter:THREE.LinearFilter;this.minFilter=d.minFilter!==undefined?d.minFilter:THREE.LinearMipMapLinearFilter;this.format=d.format!==undefined?d.format:THREE.RGBFormat;this.type=d.type!==undefined?d.type:THREE.UnsignedByteType;this.depthBuffer=d.depthBuffer!== undefined?d.depthBuffer:!0;this.stencilBuffer=d.stencilBuffer!==undefined?d.stencilBuffer:!0}; THREE.SoundRenderer=function(){this.volume=1;this.domElement=document.createElement("div");this.domElement.id="THREESound";this.cameraPosition=new THREE.Vector3;this.soundPosition=new THREE.Vector3;this.render=function(b,c,d){d&&b.update(undefined,!1,c);d=b.sounds;var f,g=d.length;for(f=0;f0){j(0,0,-p-(h||0));for(f=b;f0){j(0,0,p+(g||0)); for(f=b+b/2;f<2*b;f++)k.faces.push(new THREE.Face4(2*b+1,(2*f-2*b+2)%b+b,(2*f-2*b+1)%b+b,(2*f-2*b)%b+b))}this.computeCentroids();this.computeFaceNormals()};Cylinder.prototype=new THREE.Geometry;Cylinder.prototype.constructor=Cylinder; var Icosahedron=function(b){function c(w,y,v){var A=Math.sqrt(w*w+y*y+v*v);return g.vertices.push(new THREE.Vertex(new THREE.Vector3(w/A,y/A,v/A)))-1}function d(w,y,v,A){A.faces.push(new THREE.Face3(w,y,v))}function f(w,y){var v=g.vertices[w].position,A=g.vertices[y].position;return c((v.x+A.x)/2,(v.y+A.y)/2,(v.z+A.z)/2)}var g=this,h=new THREE.Geometry,j;this.subdivisions=b||0;THREE.Geometry.call(this);b=(1+Math.sqrt(5))/2;c(-1,b,0);c(1,b,0);c(-1,-b,0);c(1,-b,0);c(0,-1,b);c(0,1,b);c(0,-1,-b);c(0, @@ -413,48 +417,48 @@ Math.LN2));k.image.width=o;k.image.height=w;k.image.getContext("2d").drawImage(t "Multiply")h.blending=THREE.MultiplyBlending;if(b.transparent!==undefined)h.transparent=b.transparent;if(b.depthTest!==undefined)h.depthTest=b.depthTest;if(b.vertexColors!==undefined)if(b.vertexColors=="face")h.vertexColors=THREE.FaceColors;else if(b.vertexColors)h.vertexColors=THREE.VertexColors;if(b.mapDiffuse&&c){j=document.createElement("canvas");h.map=new THREE.Texture(j);h.map.sourceFile=b.mapDiffuse;f(h.map,c+"/"+b.mapDiffuse)}else if(b.colorDiffuse){j=(b.colorDiffuse[0]*255<<16)+(b.colorDiffuse[1]* 255<<8)+b.colorDiffuse[2]*255;h.color=j;h.opacity=b.transparency}else if(b.DbgColor)h.color=b.DbgColor;if(b.mapLightmap&&c){j=document.createElement("canvas");h.lightMap=new THREE.Texture(j);h.lightMap.sourceFile=b.mapLightmap;f(h.lightMap,c+"/"+b.mapLightmap)}return new THREE[g](h)}};THREE.JSONLoader=function(b){THREE.Loader.call(this,b)};THREE.JSONLoader.prototype=new THREE.Loader;THREE.JSONLoader.prototype.constructor=THREE.JSONLoader;THREE.JSONLoader.prototype.supr=THREE.Loader.prototype; THREE.JSONLoader.prototype.load=function(b){var c=this,d=b.model,f=b.callback,g=b.texture_path?b.texture_path:this.extractUrlbase(d);b=new Worker(d);b.onmessage=function(h){c.createModel(h.data,f,g);c.onLoadComplete()};this.onLoadStart();b.postMessage((new Date).getTime())}; -THREE.JSONLoader.prototype.createModel=function(b,c,d){var f=new THREE.Geometry;this.init_materials(f,b.materials,d);(function(){if(b.version===undefined||b.version!=2)console.error("Deprecated file format.");else{var g,h,j,k,n,p,o,w,y,v,A,F,G,K,V,z=b.faces;v=b.vertices;var O=b.normals,P=b.colors;p=b.scale!==undefined?b.scale:1;var S=0;for(g=0;g>7)-127;oa|=(ia&127)<<16|Ca<<8;if(oa==0&&m==-127)return 0;return(1-2*(da>>7))*(1+oa*Math.pow(2,-23))*Math.pow(2,m)}function k(R,$){var oa=o(R,$),Ca=o(R,$+1),ia=o(R,$+2);return(o(R,$+3)<<24)+(ia<<16)+(Ca<<8)+oa}function n(R,$){var oa=o(R,$);return(o(R,$+1)<<8)+oa}function p(R,$){var oa=o(R,$);return oa>127? -oa-256:oa}function o(R,$){return R.charCodeAt($)&255}function w(R){var $,oa,Ca;$=k(b,R);oa=k(b,R+S);Ca=k(b,R+wa);R=n(b,R+sa);THREE.BinaryLoader.prototype.f3(K,$,oa,Ca,R)}function y(R){var $,oa,Ca,ia,da,m;$=k(b,R);oa=k(b,R+S);Ca=k(b,R+wa);ia=n(b,R+sa);da=k(b,R+qa);m=k(b,R+e);R=k(b,R+ga);THREE.BinaryLoader.prototype.f3n(K,O,$,oa,Ca,ia,da,m,R)}function v(R){var $,oa,Ca,ia;$=k(b,R);oa=k(b,R+ea);Ca=k(b,R+xa);ia=k(b,R+Ea);R=n(b,R+Fa);THREE.BinaryLoader.prototype.f4(K,$,oa,Ca,ia,R)}function A(R){var $,oa, -Ca,ia,da,m,C,u;$=k(b,R);oa=k(b,R+ea);Ca=k(b,R+xa);ia=k(b,R+Ea);da=n(b,R+Fa);m=k(b,R+ra);C=k(b,R+aa);u=k(b,R+pa);R=k(b,R+ya);THREE.BinaryLoader.prototype.f4n(K,O,$,oa,Ca,ia,da,m,C,u,R)}function F(R){var $,oa;$=k(b,R);oa=k(b,R+ja);R=k(b,R+Y);THREE.BinaryLoader.prototype.uv3(K.faceVertexUvs[0],P[$*2],P[$*2+1],P[oa*2],P[oa*2+1],P[R*2],P[R*2+1])}function G(R){var $,oa,Ca;$=k(b,R);oa=k(b,R+na);Ca=k(b,R+Ba);R=k(b,R+ka);THREE.BinaryLoader.prototype.uv4(K.faceVertexUvs[0],P[$*2],P[$*2+1],P[oa*2],P[oa*2+1], -P[Ca*2],P[Ca*2+1],P[R*2],P[R*2+1])}var K=this,V=0,z,O=[],P=[],S,wa,sa,qa,e,ga,ea,xa,Ea,Fa,ra,aa,pa,ya,ja,Y,na,Ba,ka,la,Da,Sa,$a,Ya,Ta;THREE.Geometry.call(this);THREE.Loader.prototype.init_materials(K,f,h);z={signature:b.substr(V,8),header_bytes:o(b,V+8),vertex_coordinate_bytes:o(b,V+9),normal_coordinate_bytes:o(b,V+10),uv_coordinate_bytes:o(b,V+11),vertex_index_bytes:o(b,V+12),normal_index_bytes:o(b,V+13),uv_index_bytes:o(b,V+14),material_index_bytes:o(b,V+15),nvertices:k(b,V+16),nnormals:k(b,V+16+ -4),nuvs:k(b,V+16+8),ntri_flat:k(b,V+16+12),ntri_smooth:k(b,V+16+16),ntri_flat_uv:k(b,V+16+20),ntri_smooth_uv:k(b,V+16+24),nquad_flat:k(b,V+16+28),nquad_smooth:k(b,V+16+32),nquad_flat_uv:k(b,V+16+36),nquad_smooth_uv:k(b,V+16+40)};V+=z.header_bytes;S=z.vertex_index_bytes;wa=z.vertex_index_bytes*2;sa=z.vertex_index_bytes*3;qa=z.vertex_index_bytes*3+z.material_index_bytes;e=z.vertex_index_bytes*3+z.material_index_bytes+z.normal_index_bytes;ga=z.vertex_index_bytes*3+z.material_index_bytes+z.normal_index_bytes* -2;ea=z.vertex_index_bytes;xa=z.vertex_index_bytes*2;Ea=z.vertex_index_bytes*3;Fa=z.vertex_index_bytes*4;ra=z.vertex_index_bytes*4+z.material_index_bytes;aa=z.vertex_index_bytes*4+z.material_index_bytes+z.normal_index_bytes;pa=z.vertex_index_bytes*4+z.material_index_bytes+z.normal_index_bytes*2;ya=z.vertex_index_bytes*4+z.material_index_bytes+z.normal_index_bytes*3;ja=z.uv_index_bytes;Y=z.uv_index_bytes*2;na=z.uv_index_bytes;Ba=z.uv_index_bytes*2;ka=z.uv_index_bytes*3;h=z.vertex_index_bytes*3+z.material_index_bytes; -Ta=z.vertex_index_bytes*4+z.material_index_bytes;la=z.ntri_flat*h;Da=z.ntri_smooth*(h+z.normal_index_bytes*3);Sa=z.ntri_flat_uv*(h+z.uv_index_bytes*3);$a=z.ntri_smooth_uv*(h+z.normal_index_bytes*3+z.uv_index_bytes*3);Ya=z.nquad_flat*Ta;h=z.nquad_smooth*(Ta+z.normal_index_bytes*4);Ta=z.nquad_flat_uv*(Ta+z.uv_index_bytes*4);V+=function(R){for(var $,oa,Ca,ia=z.vertex_coordinate_bytes*3,da=R+z.nvertices*ia;R>7)-127;oa|=(ja&127)<<16|Ca<<8;if(oa==0&&m==-127)return 0;return(1-2*(ga>>7))*(1+oa*Math.pow(2,-23))*Math.pow(2,m)}function k(R,aa){var oa=o(R,aa),Ca=o(R,aa+1),ja=o(R,aa+2);return(o(R,aa+3)<<24)+(ja<<16)+(Ca<<8)+oa}function n(R,aa){var oa=o(R,aa);return(o(R,aa+1)<<8)+oa}function p(R,aa){var oa=o(R,aa); +return oa>127?oa-256:oa}function o(R,aa){return R.charCodeAt(aa)&255}function w(R){var aa,oa,Ca;aa=k(b,R);oa=k(b,R+S);Ca=k(b,R+xa);R=n(b,R+ra);THREE.BinaryLoader.prototype.f3(L,aa,oa,Ca,R)}function y(R){var aa,oa,Ca,ja,ga,m;aa=k(b,R);oa=k(b,R+S);Ca=k(b,R+xa);ja=n(b,R+ra);ga=k(b,R+pa);m=k(b,R+e);R=k(b,R+fa);THREE.BinaryLoader.prototype.f3n(L,K,aa,oa,Ca,ja,ga,m,R)}function v(R){var aa,oa,Ca,ja;aa=k(b,R);oa=k(b,R+ca);Ca=k(b,R+ya);ja=k(b,R+Fa);R=n(b,R+Ea);THREE.BinaryLoader.prototype.f4(L,aa,oa,Ca,ja, +R)}function A(R){var aa,oa,Ca,ja,ga,m,C,u;aa=k(b,R);oa=k(b,R+ca);Ca=k(b,R+ya);ja=k(b,R+Fa);ga=n(b,R+Ea);m=k(b,R+Y);C=k(b,R+qa);u=k(b,R+ta);R=k(b,R+va);THREE.BinaryLoader.prototype.f4n(L,K,aa,oa,Ca,ja,ga,m,C,u,R)}function F(R){var aa,oa;aa=k(b,R);oa=k(b,R+ia);R=k(b,R+Z);THREE.BinaryLoader.prototype.uv3(L.faceVertexUvs[0],P[aa*2],P[aa*2+1],P[oa*2],P[oa*2+1],P[R*2],P[R*2+1])}function G(R){var aa,oa,Ca;aa=k(b,R);oa=k(b,R+na);Ca=k(b,R+Ba);R=k(b,R+ka);THREE.BinaryLoader.prototype.uv4(L.faceVertexUvs[0], +P[aa*2],P[aa*2+1],P[oa*2],P[oa*2+1],P[Ca*2],P[Ca*2+1],P[R*2],P[R*2+1])}var L=this,V=0,z,K=[],P=[],S,xa,ra,pa,e,fa,ca,ya,Fa,Ea,Y,qa,ta,va,ia,Z,na,Ba,ka,la,Da,Sa,$a,Ya,Ta;THREE.Geometry.call(this);THREE.Loader.prototype.init_materials(L,f,h);z={signature:b.substr(V,8),header_bytes:o(b,V+8),vertex_coordinate_bytes:o(b,V+9),normal_coordinate_bytes:o(b,V+10),uv_coordinate_bytes:o(b,V+11),vertex_index_bytes:o(b,V+12),normal_index_bytes:o(b,V+13),uv_index_bytes:o(b,V+14),material_index_bytes:o(b,V+15),nvertices:k(b, +V+16),nnormals:k(b,V+16+4),nuvs:k(b,V+16+8),ntri_flat:k(b,V+16+12),ntri_smooth:k(b,V+16+16),ntri_flat_uv:k(b,V+16+20),ntri_smooth_uv:k(b,V+16+24),nquad_flat:k(b,V+16+28),nquad_smooth:k(b,V+16+32),nquad_flat_uv:k(b,V+16+36),nquad_smooth_uv:k(b,V+16+40)};V+=z.header_bytes;S=z.vertex_index_bytes;xa=z.vertex_index_bytes*2;ra=z.vertex_index_bytes*3;pa=z.vertex_index_bytes*3+z.material_index_bytes;e=z.vertex_index_bytes*3+z.material_index_bytes+z.normal_index_bytes;fa=z.vertex_index_bytes*3+z.material_index_bytes+ +z.normal_index_bytes*2;ca=z.vertex_index_bytes;ya=z.vertex_index_bytes*2;Fa=z.vertex_index_bytes*3;Ea=z.vertex_index_bytes*4;Y=z.vertex_index_bytes*4+z.material_index_bytes;qa=z.vertex_index_bytes*4+z.material_index_bytes+z.normal_index_bytes;ta=z.vertex_index_bytes*4+z.material_index_bytes+z.normal_index_bytes*2;va=z.vertex_index_bytes*4+z.material_index_bytes+z.normal_index_bytes*3;ia=z.uv_index_bytes;Z=z.uv_index_bytes*2;na=z.uv_index_bytes;Ba=z.uv_index_bytes*2;ka=z.uv_index_bytes*3;h=z.vertex_index_bytes* +3+z.material_index_bytes;Ta=z.vertex_index_bytes*4+z.material_index_bytes;la=z.ntri_flat*h;Da=z.ntri_smooth*(h+z.normal_index_bytes*3);Sa=z.ntri_flat_uv*(h+z.uv_index_bytes*3);$a=z.ntri_smooth_uv*(h+z.normal_index_bytes*3+z.uv_index_bytes*3);Ya=z.nquad_flat*Ta;h=z.nquad_smooth*(Ta+z.normal_index_bytes*4);Ta=z.nquad_flat_uv*(Ta+z.uv_index_bytes*4);V+=function(R){for(var aa,oa,Ca,ja=z.vertex_coordinate_bytes*3,ga=R+z.nvertices*ja;R=this.maxCount-3&&k(this)};this.begin=function(){this.count=0;this.hasPos=!1;this.hasNormal=!1};this.end=function(d){if(this.count!=0){for(var f=this.count*3;fthis.size-1&&(n=this.size-1);var y=Math.floor(p-k);y<1&&(y=1);p=Math.floor(p+k);p>this.size-1&&(p= -this.size-1);var v=Math.floor(o-k);v<1&&(v=1);k=Math.floor(o+k);k>this.size-1&&(k=this.size-1);for(var A,F,G,K,V,z;w0&&(this.field[G+A]+=K)}}}};this.addPlaneX=function(d,f){var g,h,j,k,n,p=this.size,o=this.yd,w=this.zd,y=this.field,v=p*Math.sqrt(d/f);v>p&&(v=p);for(g=0;g0)for(h=0;hthis.size-1&&(k=this.size-1);for(var A,F,G,L,V,z;w0&&(this.field[G+A]+=L)}}}};this.addPlaneX=function(d,f){var g,h,j,k,n,p=this.size,o=this.yd,w=this.zd,y=this.field,v=p*Math.sqrt(d/f);v>p&&(v=p);for(g=0;g0)for(h=0;ho&&(A=o);for(h=0;h0){n=h*w;for(g=0;gsize&&(dist=size);for(j=0;j0){n=zd*j;for(h=0;h0){g(0,0,-l-(e||0));for(c=a;c0){g(0,0,l+(d||0)); for(c=a+a/2;c<2*a;c++)h.faces.push(new THREE.Face4(2*a+1,(2*c-2*a+2)%a+a,(2*c-2*a+1)%a+a,(2*c-2*a)%a+a))}this.computeCentroids();this.computeFaceNormals()};Cylinder.prototype=new THREE.Geometry;Cylinder.prototype.constructor=Cylinder; var Icosahedron=function(a){function f(n,p,t){var x=Math.sqrt(n*n+p*p+t*t);return d.vertices.push(new THREE.Vertex(new THREE.Vector3(n/x,p/x,t/x)))-1}function b(n,p,t,x){x.faces.push(new THREE.Face3(n,p,t))}function c(n,p){var t=d.vertices[n].position,x=d.vertices[p].position;return f((t.x+x.x)/2,(t.y+x.y)/2,(t.z+x.z)/2)}var d=this,e=new THREE.Geometry,g;this.subdivisions=a||0;THREE.Geometry.call(this);a=(1+Math.sqrt(5))/2;f(-1,a,0);f(1,a,0);f(-1,-a,0);f(1,-a,0);f(0,-1,a);f(0,1,a);f(0,-1,-a);f(0, @@ -61,46 +61,47 @@ Math.LN2));h.image.width=j;h.image.height=n;h.image.getContext("2d").drawImage(t "Multiply")e.blending=THREE.MultiplyBlending;if(a.transparent!==undefined)e.transparent=a.transparent;if(a.depthTest!==undefined)e.depthTest=a.depthTest;if(a.vertexColors!==undefined)if(a.vertexColors=="face")e.vertexColors=THREE.FaceColors;else if(a.vertexColors)e.vertexColors=THREE.VertexColors;if(a.mapDiffuse&&f){g=document.createElement("canvas");e.map=new THREE.Texture(g);e.map.sourceFile=a.mapDiffuse;c(e.map,f+"/"+a.mapDiffuse)}else if(a.colorDiffuse){g=(a.colorDiffuse[0]*255<<16)+(a.colorDiffuse[1]* 255<<8)+a.colorDiffuse[2]*255;e.color=g;e.opacity=a.transparency}else if(a.DbgColor)e.color=a.DbgColor;if(a.mapLightmap&&f){g=document.createElement("canvas");e.lightMap=new THREE.Texture(g);e.lightMap.sourceFile=a.mapLightmap;c(e.lightMap,f+"/"+a.mapLightmap)}return new THREE[d](e)}};THREE.JSONLoader=function(a){THREE.Loader.call(this,a)};THREE.JSONLoader.prototype=new THREE.Loader;THREE.JSONLoader.prototype.constructor=THREE.JSONLoader;THREE.JSONLoader.prototype.supr=THREE.Loader.prototype; THREE.JSONLoader.prototype.load=function(a){var f=this,b=a.model,c=a.callback,d=a.texture_path?a.texture_path:this.extractUrlbase(b);a=new Worker(b);a.onmessage=function(e){f.createModel(e.data,c,d);f.onLoadComplete()};this.onLoadStart();a.postMessage((new Date).getTime())}; -THREE.JSONLoader.prototype.createModel=function(a,f,b){var c=new THREE.Geometry;this.init_materials(c,a.materials,b);(function(){if(a.version===undefined||a.version!=2)console.error("Deprecated file format.");else{var d,e,g,h,k,l,j,n,p,t,x,w,u,B,y,m=a.faces;t=a.vertices;var z=a.normals,C=a.colors;l=a.scale!==undefined?a.scale:1;var G=0;for(d=0;d>7)-127;A|=(H&127)<<16|D<<8;if(A==0&&T==-127)return 0;return(1-2*(Q>>7))*(1+A*Math.pow(2,-23))*Math.pow(2,T)}function h(o,v){var A=j(o,v),D=j(o,v+1),H=j(o,v+2);return(j(o,v+3)<<24)+(H<<16)+(D<<8)+A}function k(o,v){var A=j(o,v);return(j(o,v+1)<<8)+A}function l(o,v){var A=j(o,v);return A>127?A-256:A}function j(o, -v){return o.charCodeAt(v)&255}function n(o){var v,A,D;v=h(a,o);A=h(a,o+G);D=h(a,o+K);o=k(a,o+J);THREE.BinaryLoader.prototype.f3(B,v,A,D,o)}function p(o){var v,A,D,H,Q,T;v=h(a,o);A=h(a,o+G);D=h(a,o+K);H=k(a,o+J);Q=h(a,o+I);T=h(a,o+E);o=h(a,o+L);THREE.BinaryLoader.prototype.f3n(B,z,v,A,D,H,Q,T,o)}function t(o){var v,A,D,H;v=h(a,o);A=h(a,o+R);D=h(a,o+P);H=h(a,o+N);o=k(a,o+O);THREE.BinaryLoader.prototype.f4(B,v,A,D,H,o)}function x(o){var v,A,D,H,Q,T,ba,ca;v=h(a,o);A=h(a,o+R);D=h(a,o+P);H=h(a,o+N);Q=k(a, -o+O);T=h(a,o+S);ba=h(a,o+F);ca=h(a,o+M);o=h(a,o+V);THREE.BinaryLoader.prototype.f4n(B,z,v,A,D,H,Q,T,ba,ca,o)}function w(o){var v,A;v=h(a,o);A=h(a,o+W);o=h(a,o+da);THREE.BinaryLoader.prototype.uv3(B.faceVertexUvs[0],C[v*2],C[v*2+1],C[A*2],C[A*2+1],C[o*2],C[o*2+1])}function u(o){var v,A,D;v=h(a,o);A=h(a,o+ea);D=h(a,o+fa);o=h(a,o+ga);THREE.BinaryLoader.prototype.uv4(B.faceVertexUvs[0],C[v*2],C[v*2+1],C[A*2],C[A*2+1],C[D*2],C[D*2+1],C[o*2],C[o*2+1])}var B=this,y=0,m,z=[],C=[],G,K,J,I,E,L,R,P,N,O,S,F, -M,V,W,da,ea,fa,ga,X,Y,Z,$,aa,U;THREE.Geometry.call(this);THREE.Loader.prototype.init_materials(B,c,e);m={signature:a.substr(y,8),header_bytes:j(a,y+8),vertex_coordinate_bytes:j(a,y+9),normal_coordinate_bytes:j(a,y+10),uv_coordinate_bytes:j(a,y+11),vertex_index_bytes:j(a,y+12),normal_index_bytes:j(a,y+13),uv_index_bytes:j(a,y+14),material_index_bytes:j(a,y+15),nvertices:h(a,y+16),nnormals:h(a,y+16+4),nuvs:h(a,y+16+8),ntri_flat:h(a,y+16+12),ntri_smooth:h(a,y+16+16),ntri_flat_uv:h(a,y+16+20),ntri_smooth_uv:h(a, -y+16+24),nquad_flat:h(a,y+16+28),nquad_smooth:h(a,y+16+32),nquad_flat_uv:h(a,y+16+36),nquad_smooth_uv:h(a,y+16+40)};y+=m.header_bytes;G=m.vertex_index_bytes;K=m.vertex_index_bytes*2;J=m.vertex_index_bytes*3;I=m.vertex_index_bytes*3+m.material_index_bytes;E=m.vertex_index_bytes*3+m.material_index_bytes+m.normal_index_bytes;L=m.vertex_index_bytes*3+m.material_index_bytes+m.normal_index_bytes*2;R=m.vertex_index_bytes;P=m.vertex_index_bytes*2;N=m.vertex_index_bytes*3;O=m.vertex_index_bytes*4;S=m.vertex_index_bytes* -4+m.material_index_bytes;F=m.vertex_index_bytes*4+m.material_index_bytes+m.normal_index_bytes;M=m.vertex_index_bytes*4+m.material_index_bytes+m.normal_index_bytes*2;V=m.vertex_index_bytes*4+m.material_index_bytes+m.normal_index_bytes*3;W=m.uv_index_bytes;da=m.uv_index_bytes*2;ea=m.uv_index_bytes;fa=m.uv_index_bytes*2;ga=m.uv_index_bytes*3;e=m.vertex_index_bytes*3+m.material_index_bytes;U=m.vertex_index_bytes*4+m.material_index_bytes;X=m.ntri_flat*e;Y=m.ntri_smooth*(e+m.normal_index_bytes*3);Z=m.ntri_flat_uv* -(e+m.uv_index_bytes*3);$=m.ntri_smooth_uv*(e+m.normal_index_bytes*3+m.uv_index_bytes*3);aa=m.nquad_flat*U;e=m.nquad_smooth*(U+m.normal_index_bytes*4);U=m.nquad_flat_uv*(U+m.uv_index_bytes*4);y+=function(o){for(var v,A,D,H=m.vertex_coordinate_bytes*3,Q=o+m.nvertices*H;o>7)-127;A|=(H&127)<<16|D<<8;if(A==0&&U==-127)return 0;return(1-2*(S>>7))*(1+A*Math.pow(2,-23))*Math.pow(2,U)}function h(o,v){var A=j(o,v),D=j(o,v+1),H=j(o,v+2);return(j(o,v+3)<<24)+(H<<16)+(D<<8)+A}function k(o,v){var A=j(o,v);return(j(o,v+1)<<8)+A}function l(o,v){var A=j(o,v);return A>127?A-256:A}function j(o, +v){return o.charCodeAt(v)&255}function n(o){var v,A,D;v=h(a,o);A=h(a,o+G);D=h(a,o+K);o=k(a,o+J);THREE.BinaryLoader.prototype.f3(B,v,A,D,o)}function p(o){var v,A,D,H,S,U;v=h(a,o);A=h(a,o+G);D=h(a,o+K);H=k(a,o+J);S=h(a,o+I);U=h(a,o+E);o=h(a,o+L);THREE.BinaryLoader.prototype.f3n(B,y,v,A,D,H,S,U,o)}function t(o){var v,A,D,H;v=h(a,o);A=h(a,o+P);D=h(a,o+Q);H=h(a,o+R);o=k(a,o+M);THREE.BinaryLoader.prototype.f4(B,v,A,D,H,o)}function x(o){var v,A,D,H,S,U,ca,da;v=h(a,o);A=h(a,o+P);D=h(a,o+Q);H=h(a,o+R);S=k(a, +o+M);U=h(a,o+F);ca=h(a,o+N);da=h(a,o+O);o=h(a,o+T);THREE.BinaryLoader.prototype.f4n(B,y,v,A,D,H,S,U,ca,da,o)}function w(o){var v,A;v=h(a,o);A=h(a,o+W);o=h(a,o+X);THREE.BinaryLoader.prototype.uv3(B.faceVertexUvs[0],C[v*2],C[v*2+1],C[A*2],C[A*2+1],C[o*2],C[o*2+1])}function u(o){var v,A,D;v=h(a,o);A=h(a,o+ea);D=h(a,o+fa);o=h(a,o+ga);THREE.BinaryLoader.prototype.uv4(B.faceVertexUvs[0],C[v*2],C[v*2+1],C[A*2],C[A*2+1],C[D*2],C[D*2+1],C[o*2],C[o*2+1])}var B=this,z=0,m,y=[],C=[],G,K,J,I,E,L,P,Q,R,M,F,N,O, +T,W,X,ea,fa,ga,Y,Z,$,aa,ba,V;THREE.Geometry.call(this);THREE.Loader.prototype.init_materials(B,c,e);m={signature:a.substr(z,8),header_bytes:j(a,z+8),vertex_coordinate_bytes:j(a,z+9),normal_coordinate_bytes:j(a,z+10),uv_coordinate_bytes:j(a,z+11),vertex_index_bytes:j(a,z+12),normal_index_bytes:j(a,z+13),uv_index_bytes:j(a,z+14),material_index_bytes:j(a,z+15),nvertices:h(a,z+16),nnormals:h(a,z+16+4),nuvs:h(a,z+16+8),ntri_flat:h(a,z+16+12),ntri_smooth:h(a,z+16+16),ntri_flat_uv:h(a,z+16+20),ntri_smooth_uv:h(a, +z+16+24),nquad_flat:h(a,z+16+28),nquad_smooth:h(a,z+16+32),nquad_flat_uv:h(a,z+16+36),nquad_smooth_uv:h(a,z+16+40)};z+=m.header_bytes;G=m.vertex_index_bytes;K=m.vertex_index_bytes*2;J=m.vertex_index_bytes*3;I=m.vertex_index_bytes*3+m.material_index_bytes;E=m.vertex_index_bytes*3+m.material_index_bytes+m.normal_index_bytes;L=m.vertex_index_bytes*3+m.material_index_bytes+m.normal_index_bytes*2;P=m.vertex_index_bytes;Q=m.vertex_index_bytes*2;R=m.vertex_index_bytes*3;M=m.vertex_index_bytes*4;F=m.vertex_index_bytes* +4+m.material_index_bytes;N=m.vertex_index_bytes*4+m.material_index_bytes+m.normal_index_bytes;O=m.vertex_index_bytes*4+m.material_index_bytes+m.normal_index_bytes*2;T=m.vertex_index_bytes*4+m.material_index_bytes+m.normal_index_bytes*3;W=m.uv_index_bytes;X=m.uv_index_bytes*2;ea=m.uv_index_bytes;fa=m.uv_index_bytes*2;ga=m.uv_index_bytes*3;e=m.vertex_index_bytes*3+m.material_index_bytes;V=m.vertex_index_bytes*4+m.material_index_bytes;Y=m.ntri_flat*e;Z=m.ntri_smooth*(e+m.normal_index_bytes*3);$=m.ntri_flat_uv* +(e+m.uv_index_bytes*3);aa=m.ntri_smooth_uv*(e+m.normal_index_bytes*3+m.uv_index_bytes*3);ba=m.nquad_flat*V;e=m.nquad_smooth*(V+m.normal_index_bytes*4);V=m.nquad_flat_uv*(V+m.uv_index_bytes*4);z+=function(o){for(var v,A,D,H=m.vertex_coordinate_bytes*3,S=o+m.nvertices*H;o=this.maxCount-3&&h(this)};this.begin= function(){this.count=0;this.hasPos=!1;this.hasNormal=!1};this.end=function(b){if(this.count!=0){for(var c=this.count*3;cthis.size-1&&(k=this.size-1);var p=Math.floor(l-h);p<1&&(p=1);l=Math.floor(l+h);l>this.size-1&&(l=this.size-1);var t=Math.floor(j-h);t<1&&(t=1);h=Math.floor(j+h); -h>this.size-1&&(h=this.size-1);for(var x,w,u,B,y,m;n0&&(this.field[u+x]+=B)}}}};this.addPlaneX=function(b,c){var d,e,g,h,k,l=this.size,j=this.yd,n=this.zd,p=this.field,t=l*Math.sqrt(b/c);t>l&&(t=l);for(d=0;d0)for(e=0;ethis.size-1&&(h=this.size-1);for(var x,w,u,B,z,m;n0&&(this.field[u+x]+=B)}}}};this.addPlaneX=function(b,c){var d,e,g,h,k,l=this.size,j=this.yd,n=this.zd,p=this.field,t=l*Math.sqrt(b/c);t>l&&(t=l);for(d=0;d0)for(e=0;ej&&(x=j);for(e=0;e0){k=e*n;for(d=0;dsize&&(dist=size);for(g=0;g0){k=zd*g;for(e=0;e0?this.multiplyScalar(1/b):this.set(0,0,0);return this},setPosit 1.0E-4&&Math.abs(this.z)<1.0E-4},clone:function(){return new THREE.Vector3(this.x,this.y,this.z)}};THREE.Vector4=function(b,d,e,h){this.set(b||0,d||0,e||0,h||1)}; THREE.Vector4.prototype={set:function(b,d,e,h){this.x=b;this.y=d;this.z=e;this.w=h;return this},copy:function(b){this.set(b.x,b.y,b.z,b.w||1);return this},add:function(b,d){this.set(b.x+d.x,b.y+d.y,b.z+d.z,b.w+d.w);return this},addSelf:function(b){this.set(this.x+b.x,this.y+b.y,this.z+b.z,this.w+b.w);return this},sub:function(b,d){this.set(b.x-d.x,b.y-d.y,b.z-d.z,b.w-d.w);return this},subSelf:function(b){this.set(this.x-b.x,this.y-b.y,this.z-b.z,this.w-b.w);return this},multiplyScalar:function(b){this.set(this.x* b,this.y*b,this.z*b,this.w*b);return this},divideScalar:function(b){this.set(this.x/b,this.y/b,this.z/b,this.w/b);return this},lerpSelf:function(b,d){this.set(this.x+(b.x-this.x)*d,this.y+(b.y-this.y)*d,this.z+(b.z-this.z)*d,this.w+(b.w-this.w)*d)},clone:function(){return new THREE.Vector4(this.x,this.y,this.z,this.w)}};THREE.Ray=function(b,d){this.origin=b||new THREE.Vector3;this.direction=d||new THREE.Vector3}; -THREE.Ray.prototype={intersectScene:function(b){var d,e,h=b.objects,g=[];b=0;for(d=h.length;b0&&W>0&&$+W< +THREE.Ray.prototype={intersectScene:function(b){var d,e,h=b.objects,g=[];b=0;for(d=h.length;b0&&T>0&&$+T< 1}var e,h,g,k,j,o,p,v,E,G,I,H=b.geometry,L=H.vertices,M=[];e=0;for(h=H.faces.length;e0:E<0)){v=v.dot((new THREE.Vector3).sub(k, G))/E;G=G.addSelf(I.multiplyScalar(v));if(g instanceof THREE.Face3){if(d(G,k,j,o)){g={distance:this.origin.distanceTo(G),point:G,face:g,object:b};M.push(g)}}else if(g instanceof THREE.Face4&&(d(G,k,j,p)||d(G,j,o,p))){g={distance:this.origin.distanceTo(G),point:G,face:g,object:b};M.push(g)}}}return M}}; THREE.Rectangle=function(){function b(){k=h-d;j=g-e}var d,e,h,g,k,j,o=!0;this.getX=function(){return d};this.getY=function(){return e};this.getWidth=function(){return k};this.getHeight=function(){return j};this.getLeft=function(){return d};this.getTop=function(){return e};this.getRight=function(){return h};this.getBottom=function(){return g};this.set=function(p,v,E,G){o=!1;d=p;e=v;h=E;g=G;b()};this.addPoint=function(p,v){if(o){o=!1;d=p;e=v;h=p;g=v}else{d=dp?h:p;g=g>v?g:v}b()}; @@ -23,8 +23,8 @@ THREE.Matrix4=function(b,d,e,h,g,k,j,o,p,v,E,G,I,H,L,M){this.set(b||1,d||0,e||0, THREE.Matrix4.prototype={set:function(b,d,e,h,g,k,j,o,p,v,E,G,I,H,L,M){this.n11=b;this.n12=d;this.n13=e;this.n14=h;this.n21=g;this.n22=k;this.n23=j;this.n24=o;this.n31=p;this.n32=v;this.n33=E;this.n34=G;this.n41=I;this.n42=H;this.n43=L;this.n44=M;return this},identity:function(){this.set(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1);return this},copy:function(b){this.set(b.n11,b.n12,b.n13,b.n14,b.n21,b.n22,b.n23,b.n24,b.n31,b.n32,b.n33,b.n34,b.n41,b.n42,b.n43,b.n44);return this},lookAt:function(b,d,e){var h=THREE.Matrix4.__v1, g=THREE.Matrix4.__v2,k=THREE.Matrix4.__v3;k.sub(b,d).normalize();if(k.length()===0)k.z=1;h.cross(e,k).normalize();if(h.length()===0){k.x+=1.0E-4;h.cross(e,k).normalize()}g.cross(k,h).normalize();this.n11=h.x;this.n12=g.x;this.n13=k.x;this.n21=h.y;this.n22=g.y;this.n23=k.y;this.n31=h.z;this.n32=g.z;this.n33=k.z;return this},multiplyVector3:function(b){var d=b.x,e=b.y,h=b.z,g=1/(this.n41*d+this.n42*e+this.n43*h+this.n44);b.x=(this.n11*d+this.n12*e+this.n13*h+this.n14)*g;b.y=(this.n21*d+this.n22*e+this.n23* h+this.n24)*g;b.z=(this.n31*d+this.n32*e+this.n33*h+this.n34)*g;return b},multiplyVector4:function(b){var d=b.x,e=b.y,h=b.z,g=b.w;b.x=this.n11*d+this.n12*e+this.n13*h+this.n14*g;b.y=this.n21*d+this.n22*e+this.n23*h+this.n24*g;b.z=this.n31*d+this.n32*e+this.n33*h+this.n34*g;b.w=this.n41*d+this.n42*e+this.n43*h+this.n44*g;return b},rotateAxis:function(b){var d=b.x,e=b.y,h=b.z;b.x=d*this.n11+e*this.n12+h*this.n13;b.y=d*this.n21+e*this.n22+h*this.n23;b.z=d*this.n31+e*this.n32+h*this.n33;b.normalize(); -return b},crossVector:function(b){var d=new THREE.Vector4;d.x=this.n11*b.x+this.n12*b.y+this.n13*b.z+this.n14*b.w;d.y=this.n21*b.x+this.n22*b.y+this.n23*b.z+this.n24*b.w;d.z=this.n31*b.x+this.n32*b.y+this.n33*b.z+this.n34*b.w;d.w=b.w?this.n41*b.x+this.n42*b.y+this.n43*b.z+this.n44*b.w:1;return d},multiply:function(b,d){var e=b.n11,h=b.n12,g=b.n13,k=b.n14,j=b.n21,o=b.n22,p=b.n23,v=b.n24,E=b.n31,G=b.n32,I=b.n33,H=b.n34,L=b.n41,M=b.n42,W=b.n43,P=b.n44,ca=d.n11,na=d.n12,xa=d.n13,$=d.n14,K=d.n21,ra=d.n22, -ua=d.n23,ea=d.n24,c=d.n31,T=d.n32,U=d.n33,oa=d.n34;this.n11=e*ca+h*K+g*c;this.n12=e*na+h*ra+g*T;this.n13=e*xa+h*ua+g*U;this.n14=e*$+h*ea+g*oa+k;this.n21=j*ca+o*K+p*c;this.n22=j*na+o*ra+p*T;this.n23=j*xa+o*ua+p*U;this.n24=j*$+o*ea+p*oa+v;this.n31=E*ca+G*K+I*c;this.n32=E*na+G*ra+I*T;this.n33=E*xa+G*ua+I*U;this.n34=E*$+G*ea+I*oa+H;this.n41=L*ca+M*K+W*c;this.n42=L*na+M*ra+W*T;this.n43=L*xa+M*ua+W*U;this.n44=L*$+M*ea+W*oa+P;return this},multiplyToArray:function(b,d,e){this.multiply(b,d);e[0]=this.n11; +return b},crossVector:function(b){var d=new THREE.Vector4;d.x=this.n11*b.x+this.n12*b.y+this.n13*b.z+this.n14*b.w;d.y=this.n21*b.x+this.n22*b.y+this.n23*b.z+this.n24*b.w;d.z=this.n31*b.x+this.n32*b.y+this.n33*b.z+this.n34*b.w;d.w=b.w?this.n41*b.x+this.n42*b.y+this.n43*b.z+this.n44*b.w:1;return d},multiply:function(b,d){var e=b.n11,h=b.n12,g=b.n13,k=b.n14,j=b.n21,o=b.n22,p=b.n23,v=b.n24,E=b.n31,G=b.n32,I=b.n33,H=b.n34,L=b.n41,M=b.n42,T=b.n43,P=b.n44,ca=d.n11,na=d.n12,xa=d.n13,$=d.n14,K=d.n21,pa=d.n22, +ua=d.n23,ea=d.n24,c=d.n31,U=d.n32,V=d.n33,oa=d.n34;this.n11=e*ca+h*K+g*c;this.n12=e*na+h*pa+g*U;this.n13=e*xa+h*ua+g*V;this.n14=e*$+h*ea+g*oa+k;this.n21=j*ca+o*K+p*c;this.n22=j*na+o*pa+p*U;this.n23=j*xa+o*ua+p*V;this.n24=j*$+o*ea+p*oa+v;this.n31=E*ca+G*K+I*c;this.n32=E*na+G*pa+I*U;this.n33=E*xa+G*ua+I*V;this.n34=E*$+G*ea+I*oa+H;this.n41=L*ca+M*K+T*c;this.n42=L*na+M*pa+T*U;this.n43=L*xa+M*ua+T*V;this.n44=L*$+M*ea+T*oa+P;return this},multiplyToArray:function(b,d,e){this.multiply(b,d);e[0]=this.n11; e[1]=this.n21;e[2]=this.n31;e[3]=this.n41;e[4]=this.n12;e[5]=this.n22;e[6]=this.n32;e[7]=this.n42;e[8]=this.n13;e[9]=this.n23;e[10]=this.n33;e[11]=this.n43;e[12]=this.n14;e[13]=this.n24;e[14]=this.n34;e[15]=this.n44;return this},multiplySelf:function(b){this.multiply(this,b);return this},multiplyScalar:function(b){this.n11*=b;this.n12*=b;this.n13*=b;this.n14*=b;this.n21*=b;this.n22*=b;this.n23*=b;this.n24*=b;this.n31*=b;this.n32*=b;this.n33*=b;this.n34*=b;this.n41*=b;this.n42*=b;this.n43*=b;this.n44*= b;return this},determinant:function(){var b=this.n11,d=this.n12,e=this.n13,h=this.n14,g=this.n21,k=this.n22,j=this.n23,o=this.n24,p=this.n31,v=this.n32,E=this.n33,G=this.n34,I=this.n41,H=this.n42,L=this.n43,M=this.n44;return h*j*v*I-e*o*v*I-h*k*E*I+d*o*E*I+e*k*G*I-d*j*G*I-h*j*p*H+e*o*p*H+h*g*E*H-b*o*E*H-e*g*G*H+b*j*G*H+h*k*p*L-d*o*p*L-h*g*v*L+b*o*v*L+d*g*G*L-b*k*G*L-e*k*p*M+d*j*p*M+e*g*v*M-b*j*v*M-d*g*E*M+b*k*E*M},transpose:function(){var b;b=this.n21;this.n21=this.n12;this.n12=b;b=this.n31;this.n31= this.n13;this.n13=b;b=this.n32;this.n32=this.n23;this.n23=b;b=this.n41;this.n41=this.n14;this.n14=b;b=this.n42;this.n42=this.n24;this.n24=b;b=this.n43;this.n43=this.n34;this.n43=b;return this},clone:function(){var b=new THREE.Matrix4;b.n11=this.n11;b.n12=this.n12;b.n13=this.n13;b.n14=this.n14;b.n21=this.n21;b.n22=this.n22;b.n23=this.n23;b.n24=this.n24;b.n31=this.n31;b.n32=this.n32;b.n33=this.n33;b.n34=this.n34;b.n41=this.n41;b.n42=this.n42;b.n43=this.n43;b.n44=this.n44;return b},flatten:function(){this.flat[0]= @@ -34,8 +34,8 @@ b[8]=this.n13;b[9]=this.n23;b[10]=this.n33;b[11]=this.n43;b[12]=this.n14;b[13]=t 1-e,k=b.x,j=b.y,o=b.z,p=g*k,v=g*j;this.set(p*k+e,p*j-h*o,p*o+h*j,0,p*j+h*o,v*j+e,v*o-h*k,0,p*o-h*j,v*o+h*k,g*o*o+e,0,0,0,0,1);return this},setPosition:function(b){this.n14=b.x;this.n24=b.y;this.n34=b.z;return this},setRotationFromEuler:function(b){var d=b.x,e=b.y,h=b.z;b=Math.cos(d);d=Math.sin(d);var g=Math.cos(e);e=Math.sin(e);var k=Math.cos(h);h=Math.sin(h);var j=b*e,o=d*e;this.n11=g*k;this.n12=-g*h;this.n13=e;this.n21=o*k+b*h;this.n22=-o*h+b*k;this.n23=-d*g;this.n31=-j*k+d*h;this.n32=j*h+d*k;this.n33= b*g;return this},setRotationFromQuaternion:function(b){var d=b.x,e=b.y,h=b.z,g=b.w,k=d+d,j=e+e,o=h+h;b=d*k;var p=d*j;d*=o;var v=e*j;e*=o;h*=o;k*=g;j*=g;g*=o;this.n11=1-(v+h);this.n12=p-g;this.n13=d+j;this.n21=p+g;this.n22=1-(b+h);this.n23=e-k;this.n31=d-j;this.n32=e+k;this.n33=1-(b+v);return this},scale:function(b){var d=b.x,e=b.y;b=b.z;this.n11*=d;this.n12*=e;this.n13*=b;this.n21*=d;this.n22*=e;this.n23*=b;this.n31*=d;this.n32*=e;this.n33*=b;this.n41*=d;this.n42*=e;this.n43*=b;return this},extractPosition:function(b){this.n14= b.n14;this.n24=b.n24;this.n34=b.n34},extractRotation:function(b,d){var e=1/d.x,h=1/d.y,g=1/d.z;this.n11=b.n11*e;this.n21=b.n21*e;this.n31=b.n31*e;this.n12=b.n12*h;this.n22=b.n22*h;this.n32=b.n32*h;this.n13=b.n13*g;this.n23=b.n23*g;this.n33=b.n33*g}}; -THREE.Matrix4.makeInvert=function(b,d){var e=b.n11,h=b.n12,g=b.n13,k=b.n14,j=b.n21,o=b.n22,p=b.n23,v=b.n24,E=b.n31,G=b.n32,I=b.n33,H=b.n34,L=b.n41,M=b.n42,W=b.n43,P=b.n44;d===undefined&&(d=new THREE.Matrix4);d.n11=p*H*M-v*I*M+v*G*W-o*H*W-p*G*P+o*I*P;d.n12=k*I*M-g*H*M-k*G*W+h*H*W+g*G*P-h*I*P;d.n13=g*v*M-k*p*M+k*o*W-h*v*W-g*o*P+h*p*P;d.n14=k*p*G-g*v*G-k*o*I+h*v*I+g*o*H-h*p*H;d.n21=v*I*L-p*H*L-v*E*W+j*H*W+p*E*P-j*I*P;d.n22=g*H*L-k*I*L+k*E*W-e*H*W-g*E*P+e*I*P;d.n23=k*p*L-g*v*L-k*j*W+e*v*W+g*j*P-e*p*P; -d.n24=g*v*E-k*p*E+k*j*I-e*v*I-g*j*H+e*p*H;d.n31=o*H*L-v*G*L+v*E*M-j*H*M-o*E*P+j*G*P;d.n32=k*G*L-h*H*L-k*E*M+e*H*M+h*E*P-e*G*P;d.n33=g*v*L-k*o*L+k*j*M-e*v*M-h*j*P+e*o*P;d.n34=k*o*E-h*v*E-k*j*G+e*v*G+h*j*H-e*o*H;d.n41=p*G*L-o*I*L-p*E*M+j*I*M+o*E*W-j*G*W;d.n42=h*I*L-g*G*L+g*E*M-e*I*M-h*E*W+e*G*W;d.n43=g*o*L-h*p*L-g*j*M+e*p*M+h*j*W-e*o*W;d.n44=h*p*E-g*o*E+g*j*G-e*p*G-h*j*I+e*o*I;d.multiplyScalar(1/b.determinant());return d}; +THREE.Matrix4.makeInvert=function(b,d){var e=b.n11,h=b.n12,g=b.n13,k=b.n14,j=b.n21,o=b.n22,p=b.n23,v=b.n24,E=b.n31,G=b.n32,I=b.n33,H=b.n34,L=b.n41,M=b.n42,T=b.n43,P=b.n44;d===undefined&&(d=new THREE.Matrix4);d.n11=p*H*M-v*I*M+v*G*T-o*H*T-p*G*P+o*I*P;d.n12=k*I*M-g*H*M-k*G*T+h*H*T+g*G*P-h*I*P;d.n13=g*v*M-k*p*M+k*o*T-h*v*T-g*o*P+h*p*P;d.n14=k*p*G-g*v*G-k*o*I+h*v*I+g*o*H-h*p*H;d.n21=v*I*L-p*H*L-v*E*T+j*H*T+p*E*P-j*I*P;d.n22=g*H*L-k*I*L+k*E*T-e*H*T-g*E*P+e*I*P;d.n23=k*p*L-g*v*L-k*j*T+e*v*T+g*j*P-e*p*P; +d.n24=g*v*E-k*p*E+k*j*I-e*v*I-g*j*H+e*p*H;d.n31=o*H*L-v*G*L+v*E*M-j*H*M-o*E*P+j*G*P;d.n32=k*G*L-h*H*L-k*E*M+e*H*M+h*E*P-e*G*P;d.n33=g*v*L-k*o*L+k*j*M-e*v*M-h*j*P+e*o*P;d.n34=k*o*E-h*v*E-k*j*G+e*v*G+h*j*H-e*o*H;d.n41=p*G*L-o*I*L-p*E*M+j*I*M+o*E*T-j*G*T;d.n42=h*I*L-g*G*L+g*E*M-e*I*M-h*E*T+e*G*T;d.n43=g*o*L-h*p*L-g*j*M+e*p*M+h*j*T-e*o*T;d.n44=h*p*E-g*o*E+g*j*G-e*p*G-h*j*I+e*o*I;d.multiplyScalar(1/b.determinant());return d}; THREE.Matrix4.makeInvert3x3=function(b){var d=b.m33,e=d.m,h=b.n33*b.n22-b.n32*b.n23,g=-b.n33*b.n21+b.n31*b.n23,k=b.n32*b.n21-b.n31*b.n22,j=-b.n33*b.n12+b.n32*b.n13,o=b.n33*b.n11-b.n31*b.n13,p=-b.n32*b.n11+b.n31*b.n12,v=b.n23*b.n12-b.n22*b.n13,E=-b.n23*b.n11+b.n21*b.n13,G=b.n22*b.n11-b.n21*b.n12;b=b.n11*h+b.n21*j+b.n31*v;if(b==0)throw"matrix not invertible";b=1/b;e[0]=b*h;e[1]=b*g;e[2]=b*k;e[3]=b*j;e[4]=b*o;e[5]=b*p;e[6]=b*v;e[7]=b*E;e[8]=b*G;return d}; THREE.Matrix4.makeFrustum=function(b,d,e,h,g,k){var j;j=new THREE.Matrix4;j.n11=2*g/(d-b);j.n12=0;j.n13=(d+b)/(d-b);j.n14=0;j.n21=0;j.n22=2*g/(h-e);j.n23=(h+e)/(h-e);j.n24=0;j.n31=0;j.n32=0;j.n33=-(k+g)/(k-g);j.n34=-2*k*g/(k-g);j.n41=0;j.n42=0;j.n43=-1;j.n44=0;return j};THREE.Matrix4.makePerspective=function(b,d,e,h){var g;b=e*Math.tan(b*Math.PI/360);g=-b;return THREE.Matrix4.makeFrustum(g*d,b*d,g,b,e,h)}; THREE.Matrix4.makeOrtho=function(b,d,e,h,g,k){var j,o,p,v;j=new THREE.Matrix4;o=d-b;p=e-h;v=k-g;j.n11=2/o;j.n12=0;j.n13=0;j.n14=-((d+b)/o);j.n21=0;j.n22=2/p;j.n23=0;j.n24=-((e+h)/p);j.n31=0;j.n32=0;j.n33=-2/v;j.n34=-((k+g)/v);j.n41=0;j.n42=0;j.n43=0;j.n44=1;return j};THREE.Matrix4.__v1=new THREE.Vector3;THREE.Matrix4.__v2=new THREE.Vector3;THREE.Matrix4.__v3=new THREE.Vector3; @@ -56,8 +56,8 @@ THREE.Geometry.prototype={computeCentroids:function(){var b,d,e;b=0;for(d=this.f e.centroid.addSelf(this.vertices[e.d].position);e.centroid.divideScalar(4)}}},computeFaceNormals:function(b){var d,e,h,g,k,j,o=new THREE.Vector3,p=new THREE.Vector3;h=0;for(g=this.faces.length;h0){this.boundingBox={x:[this.vertices[0].position.x,this.vertices[0].position.x],y:[this.vertices[0].position.y,this.vertices[0].position.y],z:[this.vertices[0].position.z,this.vertices[0].position.z]};for(var d=1,e=this.vertices.length;dthis.boundingBox.x[1])this.boundingBox.x[1]=b.position.x; if(b.position.ythis.boundingBox.y[1])this.boundingBox.y[1]=b.position.y;if(b.position.zthis.boundingBox.z[1])this.boundingBox.z[1]=b.position.z}}},computeBoundingSphere:function(){for(var b=this.boundingSphere===null?0:this.boundingSphere.radius,d=0,e=this.vertices.length;d=0&&ya>=0&&aa>=0&&pa>=0)return!0;else if(Ga<0&&ya<0||aa<0&&pa<0)return!1;else{if(Ga<0)oa=Math.max(oa,Ga/(Ga-ya));else ya<0&&(Fa=Math.min(Fa,Ga/(Ga-ya)));if(aa<0)oa=Math.max(oa,aa/(aa-pa));else pa<0&&(Fa=Math.min(Fa,aa/(aa-pa)));if(FaGa&&j.positionScreen.z=0&&ya>=0&&aa>=0&&qa>=0)return!0;else if(Ga<0&&ya<0||aa<0&&qa<0)return!1;else{if(Ga<0)oa=Math.max(oa,Ga/(Ga-ya));else ya<0&&(Fa=Math.min(Fa,Ga/(Ga-ya)));if(aa<0)oa=Math.max(oa,aa/(aa-qa));else qa<0&&(Fa=Math.min(Fa,aa/(aa-qa)));if(FaGa&&j.positionScreen.z0&&$.z<1){Pa=na[ca]=na[ca]||new THREE.RenderableParticle;ca++;P=Pa;P.x=$.x/$.w;P.y=$.y/$.w;P.z=$.z;P.rotation=ha.rotation.z;P.scale.x=ha.scale.x*Math.abs(P.x-($.x+U.projectionMatrix.n11)/($.w+U.projectionMatrix.n14));P.scale.y=ha.scale.y*Math.abs(P.y-($.y+U.projectionMatrix.n22)/($.w+U.projectionMatrix.n24));P.materials=ha.materials;Fa.push(P)}}}}oa&&Fa.sort(d);return Fa}}; +Pa.multiplyVector3(v.centroidWorld);v.centroidScreen.copy(v.centroidWorld);K.multiplyVector3(v.centroidScreen);ga=fa.vertexNormals;X=0;for(va=ga.length;X0&&$.z<1){Pa=na[ca]=na[ca]||new THREE.RenderableParticle;ca++;P=Pa;P.x=$.x/$.w;P.y=$.y/$.w;P.z=$.z;P.rotation=ha.rotation.z;P.scale.x=ha.scale.x*Math.abs(P.x-($.x+V.projectionMatrix.n11)/($.w+V.projectionMatrix.n14));P.scale.y=ha.scale.y*Math.abs(P.y-($.y+V.projectionMatrix.n22)/($.w+V.projectionMatrix.n24));P.materials=ha.materials;Fa.push(P)}}}}oa&&Fa.sort(d);return Fa}}; THREE.SoundRenderer=function(){this.volume=1;this.domElement=document.createElement("div");this.domElement.id="THREESound";this.cameraPosition=new THREE.Vector3;this.soundPosition=new THREE.Vector3;this.render=function(b,d,e){e&&b.update(undefined,!1,d);e=b.sounds;var h,g=e.length;for(h=0;h=0){c.bin r.__webglSkinVertexBBuffer);c.vertexAttribPointer(f.skinVertexB,4,c.FLOAT,!1,0,0);c.bindBuffer(c.ARRAY_BUFFER,r.__webglSkinIndicesBuffer);c.vertexAttribPointer(f.skinIndex,4,c.FLOAT,!1,0,0);c.bindBuffer(c.ARRAY_BUFFER,r.__webglSkinWeightsBuffer);c.vertexAttribPointer(f.skinWeight,4,c.FLOAT,!1,0,0)}if(z instanceof THREE.Mesh)if(m.wireframe){c.lineWidth(m.wireframeLinewidth);c.bindBuffer(c.ELEMENT_ARRAY_BUFFER,r.__webglLineBuffer);c.drawElements(c.LINES,r.__webglLineCount,c.UNSIGNED_SHORT,0)}else{c.bindBuffer(c.ELEMENT_ARRAY_BUFFER, r.__webglFaceBuffer);c.drawElements(c.TRIANGLES,r.__webglFaceCount,c.UNSIGNED_SHORT,0)}else if(z instanceof THREE.Line){z=z.type==THREE.LineStrip?c.LINE_STRIP:c.LINES;c.lineWidth(m.linewidth);c.drawArrays(z,0,r.__webglLineCount)}else if(z instanceof THREE.ParticleSystem)c.drawArrays(c.POINTS,0,r.__webglParticleCount);else z instanceof THREE.Ribbon&&c.drawArrays(c.TRIANGLE_STRIP,0,r.__webglVertexCount)}}function g(f,s,n){if(!f.__webglVertexBuffer)f.__webglVertexBuffer=c.createBuffer();if(!f.__webglNormalBuffer)f.__webglNormalBuffer= c.createBuffer();if(f.hasPos){c.bindBuffer(c.ARRAY_BUFFER,f.__webglVertexBuffer);c.bufferData(c.ARRAY_BUFFER,f.positionArray,c.DYNAMIC_DRAW);c.enableVertexAttribArray(s.attributes.position);c.vertexAttribPointer(s.attributes.position,3,c.FLOAT,!1,0,0)}if(f.hasNormal){c.bindBuffer(c.ARRAY_BUFFER,f.__webglNormalBuffer);if(n==THREE.FlatShading){var m,r,z,w,u,A,t,x,y,D,B=f.count*3;for(D=0;D0&&Y[0]0&&Y[1] -0.0010&&u.scale>0.0010){N[0]=u.x;N[1]=u.y;N[2]=u.z;D=u.size*u.scale/za;B[0]=D*t;B[1]=D;c.uniform3fv(O.screenPosition,N);c.uniform2fv(O.scale,B);c.uniform1f(O.rotation,u.rotation);c.uniform1f(O.opacity,u.opacity);na(u.blending);$(u.texture,1);c.drawElements(c.TRIANGLES,6,c.UNSIGNED_SHORT,0)}}}}c.enable(c.CULL_FACE);c.enable(c.DEPTH_TEST);c.depthMask(Ga)}function M(f,s){f._modelViewMatrix.multiplyToArray(s.matrixWorldInverse,f.matrixWorld,f._modelViewMatrixArray);THREE.Matrix4.makeInvert3x3(f._modelViewMatrix).transposeIntoArray(f._normalMatrixArray)} -function W(f){var s,n,m,r,z;if(f instanceof THREE.Mesh){n=f.geometry;for(s in n.geometryGroups){m=n.geometryGroups[s];z=!1;for(r in m.__webglCustomAttributes)if(m.__webglCustomAttributes[r].needsUpdate){z=!0;break}if(n.__dirtyVertices||n.__dirtyMorphTargets||n.__dirtyElements||n.__dirtyUvs||n.__dirtyNormals||n.__dirtyColors||n.__dirtyTangents||z){z=c.DYNAMIC_DRAW;var w=void 0,u=void 0,A=void 0,t=void 0;A=void 0;var x=void 0,y=void 0,D=void 0,B=void 0,N=void 0,Y=void 0,O=void 0,Z=void 0,Ha=void 0, -R=void 0,Q=void 0,S=void 0,sa=void 0;y=void 0;D=void 0;t=void 0;B=void 0;t=void 0;var q=void 0,F=void 0;y=void 0;q=void 0;F=void 0;var i=void 0,Ka=void 0;q=void 0;F=void 0;i=void 0;Ka=void 0;q=void 0;F=void 0;i=void 0;Ka=void 0;q=void 0;F=void 0;i=void 0;t=void 0;B=void 0;x=void 0;A=void 0;A=void 0;q=void 0;F=void 0;i=void 0;var Wa=void 0,ta=0,Ba=0,$a=0,ab=0,Ja=0,La=0,da=0,Ma=0,wa=0,C=0,Ca=0;F=q=0;var Da=m.__vertexArray,ib=m.__uvArray,jb=m.__uv2Array,Qa=m.__normalArray,ia=m.__tangentArray,Ea=m.__colorArray, -ja=m.__skinVertexAArray,ka=m.__skinVertexBArray,la=m.__skinIndexArray,ma=m.__skinWeightArray,kb=m.__morphTargetsArrays,Ra=m.__webglCustomAttributes;i=void 0;var Na=m.__faceArray,Oa=m.__lineArray,rb=m.__needsSmoothNormals;Y=m.__vertexColorType;N=m.__uvType;O=m.__normalType;var Ia=f.geometry,lb=Ia.__dirtyVertices,mb=Ia.__dirtyElements,gb=Ia.__dirtyUvs,nb=Ia.__dirtyNormals,ob=Ia.__dirtyTangents,pb=Ia.__dirtyColors,qb=Ia.__dirtyMorphTargets,bb=Ia.vertices,sb=m.faces,wb=Ia.faces,tb=Ia.faceVertexUvs[0], -ub=Ia.faceVertexUvs[1],cb=Ia.skinVerticesA,db=Ia.skinVerticesB,eb=Ia.skinIndices,Xa=Ia.skinWeights,Za=Ia.edgeFaces,Ta=Ia.morphTargets;if(Ra)for(Wa in Ra){Ra[Wa].offset=0;Ra[Wa].offsetSrc=0}w=0;for(u=sb.length;w0){c.bindBuffer(c.ARRAY_BUFFER,m.__webglColorBuffer);c.bufferData(c.ARRAY_BUFFER,Ea,z)}if(nb){c.bindBuffer(c.ARRAY_BUFFER,m.__webglNormalBuffer);c.bufferData(c.ARRAY_BUFFER,Qa,z)}if(ob&&Ia.hasTangents){c.bindBuffer(c.ARRAY_BUFFER,m.__webglTangentBuffer);c.bufferData(c.ARRAY_BUFFER,ia,z)}if(gb&& -$a>0){c.bindBuffer(c.ARRAY_BUFFER,m.__webglUVBuffer);c.bufferData(c.ARRAY_BUFFER,ib,z)}if(gb&&ab>0){c.bindBuffer(c.ARRAY_BUFFER,m.__webglUV2Buffer);c.bufferData(c.ARRAY_BUFFER,jb,z)}if(mb){c.bindBuffer(c.ELEMENT_ARRAY_BUFFER,m.__webglFaceBuffer);c.bufferData(c.ELEMENT_ARRAY_BUFFER,Na,z);c.bindBuffer(c.ELEMENT_ARRAY_BUFFER,m.__webglLineBuffer);c.bufferData(c.ELEMENT_ARRAY_BUFFER,Oa,z)}if(C>0){c.bindBuffer(c.ARRAY_BUFFER,m.__webglSkinVertexABuffer);c.bufferData(c.ARRAY_BUFFER,ja,z);c.bindBuffer(c.ARRAY_BUFFER, -m.__webglSkinVertexBBuffer);c.bufferData(c.ARRAY_BUFFER,ka,z);c.bindBuffer(c.ARRAY_BUFFER,m.__webglSkinIndicesBuffer);c.bufferData(c.ARRAY_BUFFER,la,z);c.bindBuffer(c.ARRAY_BUFFER,m.__webglSkinWeightsBuffer);c.bufferData(c.ARRAY_BUFFER,ma,z)}}}n.__dirtyVertices=!1;n.__dirtyMorphTargets=!1;n.__dirtyElements=!1;n.__dirtyUvs=!1;n.__dirtyNormals=!1;n.__dirtyTangents=!1;n.__dirtyColors=!1}else if(f instanceof THREE.Ribbon){n=f.geometry;if(n.__dirtyVertices||n.__dirtyColors){f=n;s=c.DYNAMIC_DRAW;Y=f.vertices; -m=f.colors;O=Y.length;z=m.length;Z=f.__vertexArray;w=f.__colorArray;Ha=f.__dirtyColors;if(f.__dirtyVertices){for(u=0;u65535){x[A].counter+=1;t=x[A].hash+"_"+x[A].counter;f.geometryGroups[t]==undefined&&(f.geometryGroups[t]={faces:[],materials:u,vertices:0,numMorphTargets:y})}f.geometryGroups[t].faces.push(r);f.geometryGroups[t].vertices+=w}}function ca(f, -s,n){f.push({buffer:s,object:n,opaque:{list:[],count:0},transparent:{list:[],count:0}})}function na(f){if(f!=fa){switch(f){case THREE.AdditiveBlending:c.blendEquation(c.FUNC_ADD);c.blendFunc(c.SRC_ALPHA,c.ONE);break;case THREE.SubtractiveBlending:c.blendEquation(c.FUNC_ADD);c.blendFunc(c.ZERO,c.ONE_MINUS_SRC_COLOR);break;case THREE.MultiplyBlending:c.blendEquation(c.FUNC_ADD);c.blendFunc(c.ZERO,c.SRC_COLOR);break;default:c.blendEquationSeparate(c.FUNC_ADD,c.FUNC_ADD);c.blendFuncSeparate(c.SRC_ALPHA, -c.ONE_MINUS_SRC_ALPHA,c.ONE,c.ONE_MINUS_SRC_ALPHA)}fa=f}}function xa(f,s,n){if((n.width&n.width-1)==0&&(n.height&n.height-1)==0){c.texParameteri(f,c.TEXTURE_WRAP_S,ea(s.wrapS));c.texParameteri(f,c.TEXTURE_WRAP_T,ea(s.wrapT));c.texParameteri(f,c.TEXTURE_MAG_FILTER,ea(s.magFilter));c.texParameteri(f,c.TEXTURE_MIN_FILTER,ea(s.minFilter));c.generateMipmap(f)}else{c.texParameteri(f,c.TEXTURE_WRAP_S,c.CLAMP_TO_EDGE);c.texParameteri(f,c.TEXTURE_WRAP_T,c.CLAMP_TO_EDGE);c.texParameteri(f,c.TEXTURE_MAG_FILTER, -ua(s.magFilter));c.texParameteri(f,c.TEXTURE_MIN_FILTER,ua(s.minFilter))}}function $(f,s){if(f.needsUpdate){if(f.__webglInit){c.bindTexture(c.TEXTURE_2D,f.__webglTexture);c.texSubImage2D(c.TEXTURE_2D,0,0,0,c.RGBA,c.UNSIGNED_BYTE,f.image)}else{f.__webglTexture=c.createTexture();c.bindTexture(c.TEXTURE_2D,f.__webglTexture);c.texImage2D(c.TEXTURE_2D,0,c.RGBA,c.RGBA,c.UNSIGNED_BYTE,f.image);f.__webglInit=!0}xa(c.TEXTURE_2D,f,f.image);c.bindTexture(c.TEXTURE_2D,null);f.needsUpdate=!1}c.activeTexture(c.TEXTURE0+ -s);c.bindTexture(c.TEXTURE_2D,f.__webglTexture)}function K(f){if(f&&!f.__webglFramebuffer){if(f.depthBuffer===undefined)f.depthBuffer=!0;if(f.stencilBuffer===undefined)f.stencilBuffer=!0;f.__webglFramebuffer=c.createFramebuffer();f.__webglRenderbuffer=c.createRenderbuffer();f.__webglTexture=c.createTexture();c.bindTexture(c.TEXTURE_2D,f.__webglTexture);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_S,ea(f.wrapS));c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_T,ea(f.wrapT));c.texParameteri(c.TEXTURE_2D, -c.TEXTURE_MAG_FILTER,ea(f.magFilter));c.texParameteri(c.TEXTURE_2D,c.TEXTURE_MIN_FILTER,ea(f.minFilter));c.texImage2D(c.TEXTURE_2D,0,ea(f.format),f.width,f.height,0,ea(f.format),ea(f.type),null);c.bindRenderbuffer(c.RENDERBUFFER,f.__webglRenderbuffer);c.bindFramebuffer(c.FRAMEBUFFER,f.__webglFramebuffer);c.framebufferTexture2D(c.FRAMEBUFFER,c.COLOR_ATTACHMENT0,c.TEXTURE_2D,f.__webglTexture,0);if(f.depthBuffer&&!f.stencilBuffer){c.renderbufferStorage(c.RENDERBUFFER,c.DEPTH_COMPONENT16,f.width,f.height); -c.framebufferRenderbuffer(c.FRAMEBUFFER,c.DEPTH_ATTACHMENT,c.RENDERBUFFER,f.__webglRenderbuffer)}else if(f.depthBuffer&&f.stencilBuffer){c.renderbufferStorage(c.RENDERBUFFER,c.DEPTH_STENCIL,f.width,f.height);c.framebufferRenderbuffer(c.FRAMEBUFFER,c.DEPTH_STENCIL_ATTACHMENT,c.RENDERBUFFER,f.__webglRenderbuffer)}else c.renderbufferStorage(c.RENDERBUFFER,c.RGBA4,f.width,f.height);c.bindTexture(c.TEXTURE_2D,null);c.bindRenderbuffer(c.RENDERBUFFER,null);c.bindFramebuffer(c.FRAMEBUFFER,null)}var s,n;if(f){s= -f.__webglFramebuffer;n=f.width;f=f.height}else{s=null;n=ga;f=za}if(s!=Fa){c.bindFramebuffer(c.FRAMEBUFFER,s);c.viewport(X,va,n,f);Fa=s}}function ra(f,s){var n;if(f=="fragment")n=c.createShader(c.FRAGMENT_SHADER);else f=="vertex"&&(n=c.createShader(c.VERTEX_SHADER));c.shaderSource(n,s);c.compileShader(n);if(!c.getShaderParameter(n,c.COMPILE_STATUS)){console.error(c.getShaderInfoLog(n));console.error(s);return null}return n}function ua(f){switch(f){case THREE.NearestFilter:case THREE.NearestMipMapNearestFilter:case THREE.NearestMipMapLinearFilter:return c.NEAREST; -default:return c.LINEAR}}function ea(f){switch(f){case THREE.RepeatWrapping:return c.REPEAT;case THREE.ClampToEdgeWrapping:return c.CLAMP_TO_EDGE;case THREE.MirroredRepeatWrapping:return c.MIRRORED_REPEAT;case THREE.NearestFilter:return c.NEAREST;case THREE.NearestMipMapNearestFilter:return c.NEAREST_MIPMAP_NEAREST;case THREE.NearestMipMapLinearFilter:return c.NEAREST_MIPMAP_LINEAR;case THREE.LinearFilter:return c.LINEAR;case THREE.LinearMipMapNearestFilter:return c.LINEAR_MIPMAP_NEAREST;case THREE.LinearMipMapLinearFilter:return c.LINEAR_MIPMAP_LINEAR; +c.drawElements(c.TRIANGLES,w.__webglFaceCount,c.UNSIGNED_SHORT,0);c.cullFace(c.BACK);c.drawElements(c.TRIANGLES,w.__webglFaceCount,c.UNSIGNED_SHORT,0)}}}c.disable(c.POLYGON_OFFSET_FILL);c.colorMask(!0,!0,!0,!0);c.stencilFunc(c.NOTEQUAL,0,255);c.stencilOp(c.KEEP,c.KEEP,c.KEEP);c.disable(c.DEPTH_TEST);fa="";oa=W.program;c.useProgram(W.program);c.uniformMatrix4fv(W.projectionLocation,!1,Pa);c.uniform1f(W.darknessLocation,W.darkness);c.bindBuffer(c.ARRAY_BUFFER,W.vertexBuffer);c.vertexAttribPointer(W.vertexLocation, +3,c.FLOAT,!1,0,0);c.enableVertexAttribArray(W.vertexLocation);c.blendFunc(c.ONE,c.ONE_MINUS_SRC_ALPHA);c.blendEquation(c.FUNC_ADD);c.bindBuffer(c.ELEMENT_ARRAY_BUFFER,W.elementBuffer);c.drawElements(c.TRIANGLES,6,c.UNSIGNED_SHORT,0);c.disable(c.STENCIL_TEST);c.enable(c.DEPTH_TEST);c.depthMask(Ga)}function L(f,s){var n,m,r=f.__webglLensFlares.length,z,w,u,A=new THREE.Vector3,t=za/ga,x=ga*0.5,y=za*0.5,D=16/za,B=[D*t,D],N=[1,1,0],Y=[1,1],O=J.uniforms;n=J.attributes;c.useProgram(J.program);oa=J.program; +fa="";c.uniform1i(O.occlusionMap,0);c.uniform1i(O.map,1);c.bindBuffer(c.ARRAY_BUFFER,J.vertexBuffer);c.vertexAttribPointer(n.vertex,2,c.FLOAT,!1,16,0);c.vertexAttribPointer(n.uv,2,c.FLOAT,!1,16,8);c.bindBuffer(c.ELEMENT_ARRAY_BUFFER,J.elementBuffer);c.disable(c.CULL_FACE);c.depthMask(!1);c.activeTexture(c.TEXTURE0);c.bindTexture(c.TEXTURE_2D,J.occlusionTexture);c.activeTexture(c.TEXTURE1);for(m=0;m0&&Y[0]0&&Y[1]0.0010&&u.scale>0.0010){N[0]=u.x;N[1]=u.y;N[2]=u.z;D=u.size*u.scale/za;B[0]= +D*t;B[1]=D;c.uniform3fv(O.screenPosition,N);c.uniform2fv(O.scale,B);c.uniform1f(O.rotation,u.rotation);c.uniform1f(O.opacity,u.opacity);na(u.blending);$(u.texture,1);c.drawElements(c.TRIANGLES,6,c.UNSIGNED_SHORT,0)}}}}c.enable(c.CULL_FACE);c.enable(c.DEPTH_TEST);c.depthMask(Ga)}function M(f,s){f._modelViewMatrix.multiplyToArray(s.matrixWorldInverse,f.matrixWorld,f._modelViewMatrixArray);THREE.Matrix4.makeInvert3x3(f._modelViewMatrix).transposeIntoArray(f._normalMatrixArray)}function T(f){var s,n, +m,r,z;if(f instanceof THREE.Mesh){n=f.geometry;for(s in n.geometryGroups){m=n.geometryGroups[s];z=!1;for(r in m.__webglCustomAttributes)if(m.__webglCustomAttributes[r].needsUpdate){z=!0;break}if(n.__dirtyVertices||n.__dirtyMorphTargets||n.__dirtyElements||n.__dirtyUvs||n.__dirtyNormals||n.__dirtyColors||n.__dirtyTangents||z){z=c.DYNAMIC_DRAW;var w=void 0,u=void 0,A=void 0,t=void 0;A=void 0;var x=void 0,y=void 0,D=void 0,B=void 0,N=void 0,Y=void 0,O=void 0,Z=void 0,Ha=void 0,R=void 0,Q=void 0,S=void 0, +sa=void 0;y=void 0;D=void 0;t=void 0;B=void 0;t=void 0;var q=void 0,F=void 0;y=void 0;q=void 0;F=void 0;var i=void 0,Ka=void 0;q=void 0;F=void 0;i=void 0;Ka=void 0;q=void 0;F=void 0;i=void 0;Ka=void 0;q=void 0;F=void 0;i=void 0;t=void 0;B=void 0;x=void 0;A=void 0;A=void 0;q=void 0;F=void 0;i=void 0;var Wa=void 0,ta=0,Ba=0,$a=0,ab=0,Ja=0,La=0,da=0,Ma=0,wa=0,C=0,Ca=0;F=q=0;var Da=m.__vertexArray,ib=m.__uvArray,jb=m.__uv2Array,Qa=m.__normalArray,ia=m.__tangentArray,Ea=m.__colorArray,ja=m.__skinVertexAArray, +ka=m.__skinVertexBArray,la=m.__skinIndexArray,ma=m.__skinWeightArray,kb=m.__morphTargetsArrays,Ra=m.__webglCustomAttributes;i=void 0;var Na=m.__faceArray,Oa=m.__lineArray,rb=m.__needsSmoothNormals;Y=m.__vertexColorType;N=m.__uvType;O=m.__normalType;var Ia=f.geometry,lb=Ia.__dirtyVertices,mb=Ia.__dirtyElements,gb=Ia.__dirtyUvs,nb=Ia.__dirtyNormals,ob=Ia.__dirtyTangents,pb=Ia.__dirtyColors,qb=Ia.__dirtyMorphTargets,bb=Ia.vertices,sb=m.faces,wb=Ia.faces,tb=Ia.faceVertexUvs[0],ub=Ia.faceVertexUvs[1], +cb=Ia.skinVerticesA,db=Ia.skinVerticesB,eb=Ia.skinIndices,Xa=Ia.skinWeights,Za=Ia.edgeFaces,Ta=Ia.morphTargets;if(Ra)for(Wa in Ra){Ra[Wa].offset=0;Ra[Wa].offsetSrc=0}w=0;for(u=sb.length;w0){c.bindBuffer(c.ARRAY_BUFFER,m.__webglColorBuffer);c.bufferData(c.ARRAY_BUFFER,Ea,z)}if(nb){c.bindBuffer(c.ARRAY_BUFFER,m.__webglNormalBuffer);c.bufferData(c.ARRAY_BUFFER,Qa,z)}if(ob&&Ia.hasTangents){c.bindBuffer(c.ARRAY_BUFFER,m.__webglTangentBuffer);c.bufferData(c.ARRAY_BUFFER,ia,z)}if(gb&&$a>0){c.bindBuffer(c.ARRAY_BUFFER, +m.__webglUVBuffer);c.bufferData(c.ARRAY_BUFFER,ib,z)}if(gb&&ab>0){c.bindBuffer(c.ARRAY_BUFFER,m.__webglUV2Buffer);c.bufferData(c.ARRAY_BUFFER,jb,z)}if(mb){c.bindBuffer(c.ELEMENT_ARRAY_BUFFER,m.__webglFaceBuffer);c.bufferData(c.ELEMENT_ARRAY_BUFFER,Na,z);c.bindBuffer(c.ELEMENT_ARRAY_BUFFER,m.__webglLineBuffer);c.bufferData(c.ELEMENT_ARRAY_BUFFER,Oa,z)}if(C>0){c.bindBuffer(c.ARRAY_BUFFER,m.__webglSkinVertexABuffer);c.bufferData(c.ARRAY_BUFFER,ja,z);c.bindBuffer(c.ARRAY_BUFFER,m.__webglSkinVertexBBuffer); +c.bufferData(c.ARRAY_BUFFER,ka,z);c.bindBuffer(c.ARRAY_BUFFER,m.__webglSkinIndicesBuffer);c.bufferData(c.ARRAY_BUFFER,la,z);c.bindBuffer(c.ARRAY_BUFFER,m.__webglSkinWeightsBuffer);c.bufferData(c.ARRAY_BUFFER,ma,z)}}}n.__dirtyVertices=!1;n.__dirtyMorphTargets=!1;n.__dirtyElements=!1;n.__dirtyUvs=!1;n.__dirtyNormals=!1;n.__dirtyTangents=!1;n.__dirtyColors=!1}else if(f instanceof THREE.Ribbon){n=f.geometry;if(n.__dirtyVertices||n.__dirtyColors){f=n;s=c.DYNAMIC_DRAW;Y=f.vertices;m=f.colors;O=Y.length; +z=m.length;Z=f.__vertexArray;w=f.__colorArray;Ha=f.__dirtyColors;if(f.__dirtyVertices){for(u=0;u65535){x[A].counter+=1;t=x[A].hash+"_"+x[A].counter;f.geometryGroups[t]==undefined&&(f.geometryGroups[t]={faces:[],materials:u,vertices:0,numMorphTargets:y})}f.geometryGroups[t].faces.push(r);f.geometryGroups[t].vertices+=w}}function ca(f,s,n){f.push({buffer:s,object:n,opaque:{list:[], +count:0},transparent:{list:[],count:0}})}function na(f){if(f!=fa){switch(f){case THREE.AdditiveBlending:c.blendEquation(c.FUNC_ADD);c.blendFunc(c.SRC_ALPHA,c.ONE);break;case THREE.SubtractiveBlending:c.blendEquation(c.FUNC_ADD);c.blendFunc(c.ZERO,c.ONE_MINUS_SRC_COLOR);break;case THREE.MultiplyBlending:c.blendEquation(c.FUNC_ADD);c.blendFunc(c.ZERO,c.SRC_COLOR);break;default:c.blendEquationSeparate(c.FUNC_ADD,c.FUNC_ADD);c.blendFuncSeparate(c.SRC_ALPHA,c.ONE_MINUS_SRC_ALPHA,c.ONE,c.ONE_MINUS_SRC_ALPHA)}fa= +f}}function xa(f,s,n){if((n.width&n.width-1)==0&&(n.height&n.height-1)==0){c.texParameteri(f,c.TEXTURE_WRAP_S,ea(s.wrapS));c.texParameteri(f,c.TEXTURE_WRAP_T,ea(s.wrapT));c.texParameteri(f,c.TEXTURE_MAG_FILTER,ea(s.magFilter));c.texParameteri(f,c.TEXTURE_MIN_FILTER,ea(s.minFilter));c.generateMipmap(f)}else{c.texParameteri(f,c.TEXTURE_WRAP_S,c.CLAMP_TO_EDGE);c.texParameteri(f,c.TEXTURE_WRAP_T,c.CLAMP_TO_EDGE);c.texParameteri(f,c.TEXTURE_MAG_FILTER,ua(s.magFilter));c.texParameteri(f,c.TEXTURE_MIN_FILTER, +ua(s.minFilter))}}function $(f,s){if(f.needsUpdate){if(f.__webglInit){c.bindTexture(c.TEXTURE_2D,f.__webglTexture);c.texSubImage2D(c.TEXTURE_2D,0,0,0,c.RGBA,c.UNSIGNED_BYTE,f.image)}else{f.__webglTexture=c.createTexture();c.bindTexture(c.TEXTURE_2D,f.__webglTexture);c.texImage2D(c.TEXTURE_2D,0,c.RGBA,c.RGBA,c.UNSIGNED_BYTE,f.image);f.__webglInit=!0}xa(c.TEXTURE_2D,f,f.image);c.bindTexture(c.TEXTURE_2D,null);f.needsUpdate=!1}c.activeTexture(c.TEXTURE0+s);c.bindTexture(c.TEXTURE_2D,f.__webglTexture)} +function K(f){if(f&&!f.__webglFramebuffer){if(f.depthBuffer===undefined)f.depthBuffer=!0;if(f.stencilBuffer===undefined)f.stencilBuffer=!0;f.__webglFramebuffer=c.createFramebuffer();f.__webglRenderbuffer=c.createRenderbuffer();f.__webglTexture=c.createTexture();c.bindTexture(c.TEXTURE_2D,f.__webglTexture);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_S,ea(f.wrapS));c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_T,ea(f.wrapT));c.texParameteri(c.TEXTURE_2D,c.TEXTURE_MAG_FILTER,ea(f.magFilter));c.texParameteri(c.TEXTURE_2D, +c.TEXTURE_MIN_FILTER,ea(f.minFilter));c.texImage2D(c.TEXTURE_2D,0,ea(f.format),f.width,f.height,0,ea(f.format),ea(f.type),null);c.bindRenderbuffer(c.RENDERBUFFER,f.__webglRenderbuffer);c.bindFramebuffer(c.FRAMEBUFFER,f.__webglFramebuffer);c.framebufferTexture2D(c.FRAMEBUFFER,c.COLOR_ATTACHMENT0,c.TEXTURE_2D,f.__webglTexture,0);if(f.depthBuffer&&!f.stencilBuffer){c.renderbufferStorage(c.RENDERBUFFER,c.DEPTH_COMPONENT16,f.width,f.height);c.framebufferRenderbuffer(c.FRAMEBUFFER,c.DEPTH_ATTACHMENT,c.RENDERBUFFER, +f.__webglRenderbuffer)}else if(f.depthBuffer&&f.stencilBuffer){c.renderbufferStorage(c.RENDERBUFFER,c.DEPTH_STENCIL,f.width,f.height);c.framebufferRenderbuffer(c.FRAMEBUFFER,c.DEPTH_STENCIL_ATTACHMENT,c.RENDERBUFFER,f.__webglRenderbuffer)}else c.renderbufferStorage(c.RENDERBUFFER,c.RGBA4,f.width,f.height);c.bindTexture(c.TEXTURE_2D,null);c.bindRenderbuffer(c.RENDERBUFFER,null);c.bindFramebuffer(c.FRAMEBUFFER,null)}var s,n;if(f){s=f.__webglFramebuffer;n=f.width;f=f.height}else{s=null;n=ga;f=za}if(s!= +Fa){c.bindFramebuffer(c.FRAMEBUFFER,s);c.viewport(X,va,n,f);Fa=s}}function pa(f,s){var n;if(f=="fragment")n=c.createShader(c.FRAGMENT_SHADER);else f=="vertex"&&(n=c.createShader(c.VERTEX_SHADER));c.shaderSource(n,s);c.compileShader(n);if(!c.getShaderParameter(n,c.COMPILE_STATUS)){console.error(c.getShaderInfoLog(n));console.error(s);return null}return n}function ua(f){switch(f){case THREE.NearestFilter:case THREE.NearestMipMapNearestFilter:case THREE.NearestMipMapLinearFilter:return c.NEAREST;default:return c.LINEAR}} +function ea(f){switch(f){case THREE.RepeatWrapping:return c.REPEAT;case THREE.ClampToEdgeWrapping:return c.CLAMP_TO_EDGE;case THREE.MirroredRepeatWrapping:return c.MIRRORED_REPEAT;case THREE.NearestFilter:return c.NEAREST;case THREE.NearestMipMapNearestFilter:return c.NEAREST_MIPMAP_NEAREST;case THREE.NearestMipMapLinearFilter:return c.NEAREST_MIPMAP_LINEAR;case THREE.LinearFilter:return c.LINEAR;case THREE.LinearMipMapNearestFilter:return c.LINEAR_MIPMAP_NEAREST;case THREE.LinearMipMapLinearFilter:return c.LINEAR_MIPMAP_LINEAR; case THREE.ByteType:return c.BYTE;case THREE.UnsignedByteType:return c.UNSIGNED_BYTE;case THREE.ShortType:return c.SHORT;case THREE.UnsignedShortType:return c.UNSIGNED_SHORT;case THREE.IntType:return c.INT;case THREE.UnsignedShortType:return c.UNSIGNED_INT;case THREE.FloatType:return c.FLOAT;case THREE.AlphaFormat:return c.ALPHA;case THREE.RGBFormat:return c.RGB;case THREE.RGBAFormat:return c.RGBA;case THREE.LuminanceFormat:return c.LUMINANCE;case THREE.LuminanceAlphaFormat:return c.LUMINANCE_ALPHA}return 0} -var c,T=document.createElement("canvas"),U=[],oa=null,Fa=null,Ga=!0,ya=this,aa=null,pa=null,fa=null,qa=null,X=0,va=0,ga=0,za=0,Aa=[new THREE.Vector4,new THREE.Vector4,new THREE.Vector4,new THREE.Vector4,new THREE.Vector4,new THREE.Vector4],ha=new THREE.Matrix4,Pa=new Float32Array(16),Ua=new Float32Array(16),Va=new THREE.Vector4,hb={ambient:[0,0,0],directional:{length:0,colors:[],positions:[]},point:{length:0,colors:[],positions:[],distances:[]}},Sa=!0,fb=!0,Ya=new THREE.Color(0),vb=0;if(b){if(b.stencil!= -undefined)Sa=b.stencil;if(b.antialias!==undefined)fb=b.antialias;b.clearColor!==undefined&&Ya.setHex(b.clearColor);if(b.clearAlpha!==undefined)vb=b.clearAlpha}this.maxMorphTargets=8;this.domElement=T;this.autoClear=!0;this.sortObjects=!0;(function(f,s,n,m){try{if(!(c=T.getContext("experimental-webgl",{antialias:f,stencil:m})))throw"Error creating WebGL context.";}catch(r){console.error(r)}c.clearColor(0,0,0,1);c.clearDepth(1);c.enable(c.DEPTH_TEST);c.depthFunc(c.LEQUAL);c.frontFace(c.CCW);c.cullFace(c.BACK); -c.enable(c.CULL_FACE);c.enable(c.BLEND);c.blendEquation(c.FUNC_ADD);c.blendFunc(c.SRC_ALPHA,c.ONE_MINUS_SRC_ALPHA);c.clearColor(s.r,s.g,s.b,n)})(fb,Ya,vb,Sa);this.context=c;if(Sa){var V={};V.vertices=new Float32Array(12);V.faces=new Uint16Array(6);V.darkness=0.5;V.vertices[0]=-20;V.vertices[1]=-20;V.vertices[2]=-1;V.vertices[3]=20;V.vertices[4]=-20;V.vertices[5]=-1;V.vertices[6]=20;V.vertices[7]=20;V.vertices[8]=-1;V.vertices[9]=-20;V.vertices[10]=20;V.vertices[11]=-1;V.faces[0]=0;V.faces[1]=1;V.faces[2]= -2;V.faces[3]=0;V.faces[4]=2;V.faces[5]=3;V.vertexBuffer=c.createBuffer();V.elementBuffer=c.createBuffer();c.bindBuffer(c.ARRAY_BUFFER,V.vertexBuffer);c.bufferData(c.ARRAY_BUFFER,V.vertices,c.STATIC_DRAW);c.bindBuffer(c.ELEMENT_ARRAY_BUFFER,V.elementBuffer);c.bufferData(c.ELEMENT_ARRAY_BUFFER,V.faces,c.STATIC_DRAW);V.program=c.createProgram();c.attachShader(V.program,ra("fragment",THREE.ShaderLib.shadowPost.fragmentShader));c.attachShader(V.program,ra("vertex",THREE.ShaderLib.shadowPost.vertexShader)); -c.linkProgram(V.program);V.vertexLocation=c.getAttribLocation(V.program,"position");V.projectionLocation=c.getUniformLocation(V.program,"projectionMatrix");V.darknessLocation=c.getUniformLocation(V.program,"darkness")}var J={};J.vertices=new Float32Array(16);J.faces=new Uint16Array(6);J.transparency=0.5;b=0;J.vertices[b++]=-1;J.vertices[b++]=-1;J.vertices[b++]=0;J.vertices[b++]=0;J.vertices[b++]=1;J.vertices[b++]=-1;J.vertices[b++]=1;J.vertices[b++]=0;J.vertices[b++]=1;J.vertices[b++]=1;J.vertices[b++]= -1;J.vertices[b++]=1;J.vertices[b++]=-1;J.vertices[b++]=1;J.vertices[b++]=0;J.vertices[b++]=1;b=0;J.faces[b++]=0;J.faces[b++]=1;J.faces[b++]=2;J.faces[b++]=0;J.faces[b++]=2;J.faces[b++]=3;J.vertexBuffer=c.createBuffer();J.elementBuffer=c.createBuffer();J.tempTexture=c.createTexture();J.occlusionTexture=c.createTexture();c.bindBuffer(c.ARRAY_BUFFER,J.vertexBuffer);c.bufferData(c.ARRAY_BUFFER,J.vertices,c.STATIC_DRAW);c.bindBuffer(c.ELEMENT_ARRAY_BUFFER,J.elementBuffer);c.bufferData(c.ELEMENT_ARRAY_BUFFER, -J.faces,c.STATIC_DRAW);c.bindTexture(c.TEXTURE_2D,J.tempTexture);c.texImage2D(c.TEXTURE_2D,0,c.RGB,16,16,0,c.RGB,c.UNSIGNED_BYTE,null);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_S,c.CLAMP_TO_EDGE);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_T,c.CLAMP_TO_EDGE);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_MAG_FILTER,c.NEAREST);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_MIN_FILTER,c.NEAREST);c.bindTexture(c.TEXTURE_2D,J.occlusionTexture);c.texImage2D(c.TEXTURE_2D,0,c.RGBA,16,16,0,c.RGBA,c.UNSIGNED_BYTE,null); -c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_S,c.CLAMP_TO_EDGE);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_T,c.CLAMP_TO_EDGE);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_MAG_FILTER,c.NEAREST);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_MIN_FILTER,c.NEAREST);if(c.getParameter(c.MAX_VERTEX_TEXTURE_IMAGE_UNITS)<=0){J.hasVertexTexture=!1;J.program=c.createProgram();c.attachShader(J.program,ra("fragment",THREE.ShaderLib.lensFlare.fragmentShader));c.attachShader(J.program,ra("vertex",THREE.ShaderLib.lensFlare.vertexShader))}else{J.hasVertexTexture= -!0;J.program=c.createProgram();c.attachShader(J.program,ra("fragment",THREE.ShaderLib.lensFlareVertexTexture.fragmentShader));c.attachShader(J.program,ra("vertex",THREE.ShaderLib.lensFlareVertexTexture.vertexShader))}c.linkProgram(J.program);J.attributes={};J.uniforms={};J.attributes.vertex=c.getAttribLocation(J.program,"position");J.attributes.uv=c.getAttribLocation(J.program,"UV");J.uniforms.renderType=c.getUniformLocation(J.program,"renderType");J.uniforms.map=c.getUniformLocation(J.program,"map"); -J.uniforms.occlusionMap=c.getUniformLocation(J.program,"occlusionMap");J.uniforms.opacity=c.getUniformLocation(J.program,"opacity");J.uniforms.scale=c.getUniformLocation(J.program,"scale");J.uniforms.rotation=c.getUniformLocation(J.program,"rotation");J.uniforms.screenPosition=c.getUniformLocation(J.program,"screenPosition");this.setSize=function(f,s){T.width=f;T.height=s;this.setViewport(0,0,T.width,T.height)};this.setViewport=function(f,s,n,m){X=f;va=s;ga=n;za=m;c.viewport(X,va,ga,za)};this.setScissor= -function(f,s,n,m){c.scissor(f,s,n,m)};this.enableScissorTest=function(f){f?c.enable(c.SCISSOR_TEST):c.disable(c.SCISSOR_TEST)};this.enableDepthBufferWrite=function(f){Ga=f;c.depthMask(f)};this.setClearColorHex=function(f,s){var n=new THREE.Color(f);c.clearColor(n.r,n.g,n.b,s)};this.setClearColor=function(f,s){c.clearColor(f.r,f.g,f.b,s)};this.clear=function(){c.clear(c.COLOR_BUFFER_BIT|c.DEPTH_BUFFER_BIT|c.STENCIL_BUFFER_BIT)};this.setStencilShadowDarkness=function(f){V.darkness=f};this.initMaterial= -function(f,s,n,m){var r,z,w;if(f instanceof THREE.MeshDepthMaterial)w="depth";else if(f instanceof THREE.ShadowVolumeDynamicMaterial)w="shadowVolumeDynamic";else if(f instanceof THREE.MeshNormalMaterial)w="normal";else if(f instanceof THREE.MeshBasicMaterial)w="basic";else if(f instanceof THREE.MeshLambertMaterial)w="lambert";else if(f instanceof THREE.MeshPhongMaterial)w="phong";else if(f instanceof THREE.LineBasicMaterial)w="basic";else f instanceof THREE.ParticleBasicMaterial&&(w="particle_basic"); -if(w){var u=THREE.ShaderLib[w];f.uniforms=Uniforms.clone(u.uniforms);f.vertexShader=u.vertexShader;f.fragmentShader=u.fragmentShader}var A,t,x;A=x=u=0;for(t=s.length;A0?"#define VERTEX_TEXTURES":"","#define MAX_DIR_LIGHTS "+n.maxDirLights,"#define MAX_POINT_LIGHTS "+ -n.maxPointLights,"#define MAX_BONES "+n.maxBones,n.map?"#define USE_MAP":"",n.envMap?"#define USE_ENVMAP":"",n.lightMap?"#define USE_LIGHTMAP":"",n.vertexColors?"#define USE_COLOR":"",n.skinning?"#define USE_SKINNING":"",n.morphTargets?"#define USE_MORPHTARGETS":"",n.sizeAttenuation?"#define USE_SIZEATTENUATION":"","uniform mat4 objectMatrix;\nuniform mat4 modelViewMatrix;\nuniform mat4 projectionMatrix;\nuniform mat4 viewMatrix;\nuniform mat3 normalMatrix;\nuniform vec3 cameraPosition;\nuniform mat4 cameraInverseMatrix;\nattribute vec3 position;\nattribute vec3 normal;\nattribute vec2 uv;\nattribute vec2 uv2;\n#ifdef USE_COLOR\nattribute vec3 color;\n#endif\n#ifdef USE_MORPHTARGETS\nattribute vec3 morphTarget0;\nattribute vec3 morphTarget1;\nattribute vec3 morphTarget2;\nattribute vec3 morphTarget3;\nattribute vec3 morphTarget4;\nattribute vec3 morphTarget5;\nattribute vec3 morphTarget6;\nattribute vec3 morphTarget7;\n#endif\n#ifdef USE_SKINNING\nattribute vec4 skinVertexA;\nattribute vec4 skinVertexB;\nattribute vec4 skinIndex;\nattribute vec4 skinWeight;\n#endif\n"].join("\n"); -c.attachShader(D,ra("fragment",prefix_fragment+A));c.attachShader(D,ra("vertex",prefix_vertex+t));c.linkProgram(D);c.getProgramParameter(D,c.LINK_STATUS)||console.error("Could not initialise shader\nVALIDATE_STATUS: "+c.getProgramParameter(D,c.VALIDATE_STATUS)+", gl error ["+c.getError()+"]");D.uniforms={};D.attributes={};var B;A=["viewMatrix","modelViewMatrix","projectionMatrix","normalMatrix","objectMatrix","cameraPosition","cameraInverseMatrix","boneGlobalMatrices","morphTargetInfluences"];for(B in u)A.push(B); -B=A;u=0;for(A=B.length;u=0&&c.enableVertexAttribArray(y.color);y.normal>= +var c,U=document.createElement("canvas"),V=[],oa=null,Fa=null,Ga=!0,ya=this,aa=null,qa=null,fa=null,ra=null,X=0,va=0,ga=0,za=0,Aa=[new THREE.Vector4,new THREE.Vector4,new THREE.Vector4,new THREE.Vector4,new THREE.Vector4,new THREE.Vector4],ha=new THREE.Matrix4,Pa=new Float32Array(16),Ua=new Float32Array(16),Va=new THREE.Vector4,hb={ambient:[0,0,0],directional:{length:0,colors:[],positions:[]},point:{length:0,colors:[],positions:[],distances:[]}},Sa=!0,fb=!0,Ya=new THREE.Color(0),vb=0;if(b){if(b.stencil!= +undefined)Sa=b.stencil;if(b.antialias!==undefined)fb=b.antialias;b.clearColor!==undefined&&Ya.setHex(b.clearColor);if(b.clearAlpha!==undefined)vb=b.clearAlpha}this.maxMorphTargets=8;this.domElement=U;this.autoClear=!0;this.sortObjects=!0;(function(f,s,n,m){try{if(!(c=U.getContext("experimental-webgl",{antialias:f,stencil:m})))throw"Error creating WebGL context.";}catch(r){console.error(r)}c.clearColor(0,0,0,1);c.clearDepth(1);c.enable(c.DEPTH_TEST);c.depthFunc(c.LEQUAL);c.frontFace(c.CCW);c.cullFace(c.BACK); +c.enable(c.CULL_FACE);c.enable(c.BLEND);c.blendEquation(c.FUNC_ADD);c.blendFunc(c.SRC_ALPHA,c.ONE_MINUS_SRC_ALPHA);c.clearColor(s.r,s.g,s.b,n)})(fb,Ya,vb,Sa);this.context=c;if(Sa){var W={};W.vertices=new Float32Array(12);W.faces=new Uint16Array(6);W.darkness=0.5;W.vertices[0]=-20;W.vertices[1]=-20;W.vertices[2]=-1;W.vertices[3]=20;W.vertices[4]=-20;W.vertices[5]=-1;W.vertices[6]=20;W.vertices[7]=20;W.vertices[8]=-1;W.vertices[9]=-20;W.vertices[10]=20;W.vertices[11]=-1;W.faces[0]=0;W.faces[1]=1;W.faces[2]= +2;W.faces[3]=0;W.faces[4]=2;W.faces[5]=3;W.vertexBuffer=c.createBuffer();W.elementBuffer=c.createBuffer();c.bindBuffer(c.ARRAY_BUFFER,W.vertexBuffer);c.bufferData(c.ARRAY_BUFFER,W.vertices,c.STATIC_DRAW);c.bindBuffer(c.ELEMENT_ARRAY_BUFFER,W.elementBuffer);c.bufferData(c.ELEMENT_ARRAY_BUFFER,W.faces,c.STATIC_DRAW);W.program=c.createProgram();c.attachShader(W.program,pa("fragment",THREE.ShaderLib.shadowPost.fragmentShader));c.attachShader(W.program,pa("vertex",THREE.ShaderLib.shadowPost.vertexShader)); +c.linkProgram(W.program);W.vertexLocation=c.getAttribLocation(W.program,"position");W.projectionLocation=c.getUniformLocation(W.program,"projectionMatrix");W.darknessLocation=c.getUniformLocation(W.program,"darkness")}var J={};J.vertices=new Float32Array(16);J.faces=new Uint16Array(6);b=0;J.vertices[b++]=-1;J.vertices[b++]=-1;J.vertices[b++]=0;J.vertices[b++]=0;J.vertices[b++]=1;J.vertices[b++]=-1;J.vertices[b++]=1;J.vertices[b++]=0;J.vertices[b++]=1;J.vertices[b++]=1;J.vertices[b++]=1;J.vertices[b++]= +1;J.vertices[b++]=-1;J.vertices[b++]=1;J.vertices[b++]=0;J.vertices[b++]=1;b=0;J.faces[b++]=0;J.faces[b++]=1;J.faces[b++]=2;J.faces[b++]=0;J.faces[b++]=2;J.faces[b++]=3;J.vertexBuffer=c.createBuffer();J.elementBuffer=c.createBuffer();J.tempTexture=c.createTexture();J.occlusionTexture=c.createTexture();c.bindBuffer(c.ARRAY_BUFFER,J.vertexBuffer);c.bufferData(c.ARRAY_BUFFER,J.vertices,c.STATIC_DRAW);c.bindBuffer(c.ELEMENT_ARRAY_BUFFER,J.elementBuffer);c.bufferData(c.ELEMENT_ARRAY_BUFFER,J.faces,c.STATIC_DRAW); +c.bindTexture(c.TEXTURE_2D,J.tempTexture);c.texImage2D(c.TEXTURE_2D,0,c.RGB,16,16,0,c.RGB,c.UNSIGNED_BYTE,null);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_S,c.CLAMP_TO_EDGE);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_T,c.CLAMP_TO_EDGE);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_MAG_FILTER,c.NEAREST);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_MIN_FILTER,c.NEAREST);c.bindTexture(c.TEXTURE_2D,J.occlusionTexture);c.texImage2D(c.TEXTURE_2D,0,c.RGBA,16,16,0,c.RGBA,c.UNSIGNED_BYTE,null);c.texParameteri(c.TEXTURE_2D, +c.TEXTURE_WRAP_S,c.CLAMP_TO_EDGE);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_WRAP_T,c.CLAMP_TO_EDGE);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_MAG_FILTER,c.NEAREST);c.texParameteri(c.TEXTURE_2D,c.TEXTURE_MIN_FILTER,c.NEAREST);if(c.getParameter(c.MAX_VERTEX_TEXTURE_IMAGE_UNITS)<=0){J.hasVertexTexture=!1;J.program=c.createProgram();c.attachShader(J.program,pa("fragment",THREE.ShaderLib.lensFlare.fragmentShader));c.attachShader(J.program,pa("vertex",THREE.ShaderLib.lensFlare.vertexShader))}else{J.hasVertexTexture= +!0;J.program=c.createProgram();c.attachShader(J.program,pa("fragment",THREE.ShaderLib.lensFlareVertexTexture.fragmentShader));c.attachShader(J.program,pa("vertex",THREE.ShaderLib.lensFlareVertexTexture.vertexShader))}c.linkProgram(J.program);J.attributes={};J.uniforms={};J.attributes.vertex=c.getAttribLocation(J.program,"position");J.attributes.uv=c.getAttribLocation(J.program,"UV");J.uniforms.renderType=c.getUniformLocation(J.program,"renderType");J.uniforms.map=c.getUniformLocation(J.program,"map"); +J.uniforms.occlusionMap=c.getUniformLocation(J.program,"occlusionMap");J.uniforms.opacity=c.getUniformLocation(J.program,"opacity");J.uniforms.scale=c.getUniformLocation(J.program,"scale");J.uniforms.rotation=c.getUniformLocation(J.program,"rotation");J.uniforms.screenPosition=c.getUniformLocation(J.program,"screenPosition");_sprite={};_sprite.vertices=new Float32Array(16);_sprite.faces=new Uint16Array(6);b=0;_sprite.vertices[b++]=-1;_sprite.vertices[b++]=-1;_sprite.vertices[b++]=0;_sprite.vertices[b++]= +0;_sprite.vertices[b++]=1;_sprite.vertices[b++]=-1;_sprite.vertices[b++]=1;_sprite.vertices[b++]=0;_sprite.vertices[b++]=1;_sprite.vertices[b++]=1;_sprite.vertices[b++]=1;_sprite.vertices[b++]=1;_sprite.vertices[b++]=-1;_sprite.vertices[b++]=1;_sprite.vertices[b++]=0;_sprite.vertices[b++]=1;b=0;_sprite.faces[b++]=0;_sprite.faces[b++]=1;_sprite.faces[b++]=2;_sprite.faces[b++]=0;_sprite.faces[b++]=2;_sprite.faces[b++]=3;_sprite.vertexBuffer=c.createBuffer();_sprite.elementBuffer=c.createBuffer();c.bindBuffer(c.ARRAY_BUFFER, +_sprite.vertexBuffer);c.bufferData(c.ARRAY_BUFFER,_sprite.vertices,c.STATIC_DRAW);c.bindBuffer(c.ELEMENT_ARRAY_BUFFER,_sprite.elementBuffer);c.bufferData(c.ELEMENT_ARRAY_BUFFER,_sprite.faces,c.STATIC_DRAW);_sprite.program=c.createProgram();c.attachShader(_sprite.program,pa("fragment",THREE.ShaderLib.sprite.fragmentShader));c.attachShader(_sprite.program,pa("vertex",THREE.ShaderLib.sprite.vertexShader));c.linkProgram(_sprite.program);_sprite.attributes={};_sprite.uniforms={};_sprite.attributes.vertex= +c.getAttribLocation(_sprite.program,"position");_sprite.attributes.uv=c.getAttribLocation(_sprite.program,"UV");_sprite.uniforms.map=c.getUniformLocation(_sprite.program,"map");_sprite.uniforms.opacity=c.getUniformLocation(_sprite.program,"opacity");_sprite.uniforms.scale=c.getUniformLocation(_sprite.program,"scale");_sprite.uniforms.rotation=c.getUniformLocation(_sprite.program,"rotation");_sprite.uniforms.screenPosition=c.getUniformLocation(_sprite.program,"screenPosition");this.setSize=function(f, +s){U.width=f;U.height=s;this.setViewport(0,0,U.width,U.height)};this.setViewport=function(f,s,n,m){X=f;va=s;ga=n;za=m;c.viewport(X,va,ga,za)};this.setScissor=function(f,s,n,m){c.scissor(f,s,n,m)};this.enableScissorTest=function(f){f?c.enable(c.SCISSOR_TEST):c.disable(c.SCISSOR_TEST)};this.enableDepthBufferWrite=function(f){Ga=f;c.depthMask(f)};this.setClearColorHex=function(f,s){var n=new THREE.Color(f);c.clearColor(n.r,n.g,n.b,s)};this.setClearColor=function(f,s){c.clearColor(f.r,f.g,f.b,s)};this.clear= +function(){c.clear(c.COLOR_BUFFER_BIT|c.DEPTH_BUFFER_BIT|c.STENCIL_BUFFER_BIT)};this.setStencilShadowDarkness=function(f){W.darkness=f};this.initMaterial=function(f,s,n,m){var r,z,w;if(f instanceof THREE.MeshDepthMaterial)w="depth";else if(f instanceof THREE.ShadowVolumeDynamicMaterial)w="shadowVolumeDynamic";else if(f instanceof THREE.MeshNormalMaterial)w="normal";else if(f instanceof THREE.MeshBasicMaterial)w="basic";else if(f instanceof THREE.MeshLambertMaterial)w="lambert";else if(f instanceof +THREE.MeshPhongMaterial)w="phong";else if(f instanceof THREE.LineBasicMaterial)w="basic";else f instanceof THREE.ParticleBasicMaterial&&(w="particle_basic");if(w){var u=THREE.ShaderLib[w];f.uniforms=Uniforms.clone(u.uniforms);f.vertexShader=u.vertexShader;f.fragmentShader=u.fragmentShader}var A,t,x;A=x=u=0;for(t=s.length;A0?"#define VERTEX_TEXTURES":"","#define MAX_DIR_LIGHTS "+n.maxDirLights,"#define MAX_POINT_LIGHTS "+n.maxPointLights,"#define MAX_BONES "+n.maxBones,n.map?"#define USE_MAP":"",n.envMap?"#define USE_ENVMAP":"",n.lightMap?"#define USE_LIGHTMAP":"",n.vertexColors?"#define USE_COLOR":"",n.skinning?"#define USE_SKINNING":"",n.morphTargets?"#define USE_MORPHTARGETS":"",n.sizeAttenuation?"#define USE_SIZEATTENUATION":"","uniform mat4 objectMatrix;\nuniform mat4 modelViewMatrix;\nuniform mat4 projectionMatrix;\nuniform mat4 viewMatrix;\nuniform mat3 normalMatrix;\nuniform vec3 cameraPosition;\nuniform mat4 cameraInverseMatrix;\nattribute vec3 position;\nattribute vec3 normal;\nattribute vec2 uv;\nattribute vec2 uv2;\n#ifdef USE_COLOR\nattribute vec3 color;\n#endif\n#ifdef USE_MORPHTARGETS\nattribute vec3 morphTarget0;\nattribute vec3 morphTarget1;\nattribute vec3 morphTarget2;\nattribute vec3 morphTarget3;\nattribute vec3 morphTarget4;\nattribute vec3 morphTarget5;\nattribute vec3 morphTarget6;\nattribute vec3 morphTarget7;\n#endif\n#ifdef USE_SKINNING\nattribute vec4 skinVertexA;\nattribute vec4 skinVertexB;\nattribute vec4 skinIndex;\nattribute vec4 skinWeight;\n#endif\n"].join("\n"); +c.attachShader(D,pa("fragment",prefix_fragment+A));c.attachShader(D,pa("vertex",prefix_vertex+t));c.linkProgram(D);c.getProgramParameter(D,c.LINK_STATUS)||console.error("Could not initialise shader\nVALIDATE_STATUS: "+c.getProgramParameter(D,c.VALIDATE_STATUS)+", gl error ["+c.getError()+"]");D.uniforms={};D.attributes={};var B;A=["viewMatrix","modelViewMatrix","projectionMatrix","normalMatrix","objectMatrix","cameraPosition","cameraInverseMatrix","boneGlobalMatrices","morphTargetInfluences"];for(B in u)A.push(B); +B=A;u=0;for(A=B.length;u=0&&c.enableVertexAttribArray(y.color);y.normal>= 0&&c.enableVertexAttribArray(y.normal);y.tangent>=0&&c.enableVertexAttribArray(y.tangent);if(f.skinning&&y.skinVertexA>=0&&y.skinVertexB>=0&&y.skinIndex>=0&&y.skinWeight>=0){c.enableVertexAttribArray(y.skinVertexA);c.enableVertexAttribArray(y.skinVertexB);c.enableVertexAttribArray(y.skinIndex);c.enableVertexAttribArray(y.skinWeight)}for(r in f.attributes)y[r]>=0&&c.enableVertexAttribArray(y[r]);if(f.morphTargets){f.numSupportedMorphTargets=0;if(y.morphTarget0>=0){c.enableVertexAttribArray(y.morphTarget0); f.numSupportedMorphTargets++}if(y.morphTarget1>=0){c.enableVertexAttribArray(y.morphTarget1);f.numSupportedMorphTargets++}if(y.morphTarget2>=0){c.enableVertexAttribArray(y.morphTarget2);f.numSupportedMorphTargets++}if(y.morphTarget3>=0){c.enableVertexAttribArray(y.morphTarget3);f.numSupportedMorphTargets++}if(y.morphTarget4>=0){c.enableVertexAttribArray(y.morphTarget4);f.numSupportedMorphTargets++}if(y.morphTarget5>=0){c.enableVertexAttribArray(y.morphTarget5);f.numSupportedMorphTargets++}if(y.morphTarget6>= 0){c.enableVertexAttribArray(y.morphTarget6);f.numSupportedMorphTargets++}if(y.morphTarget7>=0){c.enableVertexAttribArray(y.morphTarget7);f.numSupportedMorphTargets++}m.__webglMorphTargetInfluences=new Float32Array(this.maxMorphTargets);f=0;for(r=this.maxMorphTargets;f0||D.faceVertexUvs.length>0)w.__uvArray=new Float32Array(A*2);if(D.faceUvs.length>1||D.faceVertexUvs.length>1)w.__uv2Array=new Float32Array(A*2)}if(u.geometry.skinWeights.length&&u.geometry.skinIndices.length){w.__skinVertexAArray=new Float32Array(A*4);w.__skinVertexBArray=new Float32Array(A*4);w.__skinIndexArray= -new Float32Array(A*4);w.__skinWeightArray=new Float32Array(A*4)}w.__faceArray=new Uint16Array(N*3+(u.geometry.edgeFaces?u.geometry.edgeFaces.length*6:0));w.__lineArray=new Uint16Array(Y*2);if(w.numMorphTargets){w.__morphTargetsArrays=[];D=0;for(B=w.numMorphTargets;D=0;r--){m=n.__webglObjects[r].object; -s==m&&n.__webglObjects.splice(r,1)}f.__objectsRemoved.splice(0,1)}s=0;for(n=f.__webglObjects.length;s0}}; +z,u.shading)})}}}for(m=0;m0||D.faceVertexUvs.length>0)w.__uvArray=new Float32Array(A*2);if(D.faceUvs.length>1||D.faceVertexUvs.length>1)w.__uv2Array=new Float32Array(A*2)}if(u.geometry.skinWeights.length&&u.geometry.skinIndices.length){w.__skinVertexAArray=new Float32Array(A* +4);w.__skinVertexBArray=new Float32Array(A*4);w.__skinIndexArray=new Float32Array(A*4);w.__skinWeightArray=new Float32Array(A*4)}w.__faceArray=new Uint16Array(N*3+(u.geometry.edgeFaces?u.geometry.edgeFaces.length*6:0));w.__lineArray=new Uint16Array(Y*2);if(w.numMorphTargets){w.__morphTargetsArrays=[];D=0;for(B=w.numMorphTargets;D=0;r--){m=n.__webglObjects[r].object;s==m&&n.__webglObjects.splice(r,1)}f.__objectsRemoved.splice(0,1)}s=0;for(n=f.__webglObjects.length;s0}}; THREE.WebGLRenderTarget=function(b,d,e){this.width=b;this.height=d;e=e||{};this.wrapS=e.wrapS!==undefined?e.wrapS:THREE.ClampToEdgeWrapping;this.wrapT=e.wrapT!==undefined?e.wrapT:THREE.ClampToEdgeWrapping;this.magFilter=e.magFilter!==undefined?e.magFilter:THREE.LinearFilter;this.minFilter=e.minFilter!==undefined?e.minFilter:THREE.LinearMipMapLinearFilter;this.format=e.format!==undefined?e.format:THREE.RGBFormat;this.type=e.type!==undefined?e.type:THREE.UnsignedByteType;this.depthBuffer=e.depthBuffer!== undefined?e.depthBuffer:!0;this.stencilBuffer=e.stencilBuffer!==undefined?e.stencilBuffer:!0}; diff --git a/examples/obj/blenderscene/scene.Cube.js b/examples/obj/blenderscene/scene.Cube.js index 846e34b9..d79eac44 100644 --- a/examples/obj/blenderscene/scene.Cube.js +++ b/examples/obj/blenderscene/scene.Cube.js @@ -8,6 +8,7 @@ * uvs: 0 * colors: 0 * materials: 1 + * edges: 0 * */ @@ -15,6 +16,8 @@ var model = { "version" : 2, + "scale" : 1.000000, + "materials": [ { "DbgColor" : 15658734, "DbgIndex" : 0, @@ -22,13 +25,12 @@ var model = { "colorAmbient" : [0.0, 0.0, 0.0], "colorDiffuse" : [0.6400000190734865, 0.10179081114814892, 0.126246120426746], "colorSpecular" : [0.5, 0.5, 0.5], - "shading" : "Phong", "specularCoef" : 50, "transparency" : 1.0, "vertexColors" : false }], - "vertices": [1.000000,-1.000000,-1.000000,1.000000,-1.000000,1.000000,-1.000000,-1.000000,1.000000,-1.000000,-1.000000,-1.000000,1.000000,1.000000,-1.000000,0.999999,1.000000,1.000001,-1.000000,1.000000,1.000000,-1.000000,1.000000,-1.000000], + "vertices": [1.000000,1.000000,-1.000000,1.000000,-1.000000,-1.000000,-1.000000,-1.000000,-1.000000,-1.000000,1.000000,-1.000000,1.000000,1.000000,1.000000,0.999999,-1.000001,1.000000,-1.000000,-1.000000,1.000000,-1.000000,1.000000,1.000000], "morphTargets": [], @@ -38,8 +40,11 @@ var model = { "uvs": [[]], - "faces": [3,0,1,2,3,0,3,4,7,6,5,0,3,0,4,5,1,0,3,1,5,6,2,0,3,2,6,7,3,0,3,4,0,3,7,0] + "faces": [3,0,1,2,3,0,3,4,7,6,5,0,3,0,4,5,1,0,3,1,5,6,2,0,3,2,6,7,3,0,3,4,0,3,7,0], + + "edges" : [] }; postMessage( model ); +close(); diff --git a/examples/obj/blenderscene/scene.Monkey.js b/examples/obj/blenderscene/scene.Monkey.js index 5f8053e7..a3c983a4 100644 --- a/examples/obj/blenderscene/scene.Monkey.js +++ b/examples/obj/blenderscene/scene.Monkey.js @@ -8,6 +8,7 @@ * uvs: 0 * colors: 0 * materials: 1 + * edges: 0 * */ @@ -15,6 +16,8 @@ var model = { "version" : 2, + "scale" : 1.000000, + "materials": [ { "DbgColor" : 15658734, "DbgIndex" : 0, @@ -22,13 +25,12 @@ var model = { "colorAmbient" : [0.0, 0.0, 0.0], "colorDiffuse" : [0.6400000190734865, 0.44102483452893537, 0.14499310471107218], "colorSpecular" : [0.5, 0.5, 0.5], - "shading" : "Phong", "specularCoef" : 50, "transparency" : 1.0, "vertexColors" : false }], - "vertices": [0.437500,0.765625,-0.164063,-0.437500,0.765625,-0.164063,0.500000,0.687500,-0.093750,-0.500000,0.687500,-0.093750,0.546875,0.578125,-0.054688,-0.546875,0.578125,-0.054688,0.351562,0.617188,0.023437,-0.351562,0.617188,0.023437,0.351562,0.718750,-0.031250,-0.351562,0.718750,-0.031250,0.351562,0.781250,-0.132813,-0.351562,0.781250,-0.132813,0.273438,0.796875,-0.164063,-0.273438,0.796875,-0.164063,0.203125,0.742188,-0.093750,-0.203125,0.742188,-0.093750,0.156250,0.648438,-0.054688,-0.156250,0.648438,-0.054688,0.078125,0.656250,-0.242188,-0.078125,0.656250,-0.242188,0.140625,0.742188,-0.242188,-0.140625,0.742188,-0.242188,0.242188,0.796875,-0.242188,-0.242188,0.796875,-0.242188,0.273438,0.796875,-0.328125,-0.273438,0.796875,-0.328125,0.203125,0.742188,-0.390625,-0.203125,0.742188,-0.390625,0.156250,0.648438,-0.437500,-0.156250,0.648438,-0.437500,0.351562,0.617188,-0.515625,-0.351562,0.617188,-0.515625,0.351562,0.718750,-0.453125,-0.351562,0.718750,-0.453125,0.351562,0.781250,-0.359375,-0.351562,0.781250,-0.359375,0.437500,0.765625,-0.328125,-0.437500,0.765625,-0.328125,0.500000,0.687500,-0.390625,-0.500000,0.687500,-0.390625,0.546875,0.578125,-0.437500,-0.546875,0.578125,-0.437500,0.625000,0.562500,-0.242188,-0.625000,0.562500,-0.242188,0.562500,0.671875,-0.242188,-0.562500,0.671875,-0.242188,0.468750,0.757812,-0.242188,-0.468750,0.757812,-0.242188,0.476562,0.773438,-0.242188,-0.476562,0.773438,-0.242188,0.445312,0.781250,-0.335938,-0.445312,0.781250,-0.335938,0.351562,0.804688,-0.375000,-0.351562,0.804688,-0.375000,0.265625,0.820312,-0.335938,-0.265625,0.820312,-0.335938,0.226562,0.820312,-0.242188,-0.226562,0.820312,-0.242188,0.265625,0.820312,-0.156250,-0.265625,0.820312,-0.156250,0.351562,0.828125,-0.242188,-0.351562,0.828125,-0.242188,0.351562,0.804688,-0.117188,-0.351562,0.804688,-0.117188,0.445312,0.781250,-0.156250,-0.445312,0.781250,-0.156250,0.000000,0.742188,-0.429688,0.000000,0.820312,-0.351563,0.000000,0.734375,0.679687,0.000000,0.781250,0.320312,0.000000,0.796875,0.187500,0.000000,0.718750,0.773437,0.000000,0.601562,-0.406250,0.000000,0.570312,-0.570312,0.000000,-0.546875,-0.898438,0.000000,-0.851562,-0.562500,0.000000,-0.828125,-0.070312,0.000000,-0.351562,0.382813,0.203125,0.562500,0.187500,-0.203125,0.562500,0.187500,0.312500,0.570312,0.437500,-0.312500,0.570312,0.437500,0.351562,0.570313,0.695312,-0.351562,0.570313,0.695312,0.367188,0.531250,0.890625,-0.367188,0.531250,0.890625,0.328125,0.523438,0.945312,-0.328125,0.523438,0.945312,0.179688,0.554688,0.968750,-0.179688,0.554688,0.968750,0.000000,0.578125,0.984375,0.437500,0.531250,0.140625,-0.437500,0.531250,0.140625,0.632812,0.539062,0.039062,-0.632812,0.539062,0.039062,0.828125,0.445312,-0.148438,-0.828125,0.445312,-0.148438,0.859375,0.593750,-0.429688,-0.859375,0.593750,-0.429688,0.710938,0.625000,-0.484375,-0.710938,0.625000,-0.484375,0.492188,0.687500,-0.601563,-0.492188,0.687500,-0.601563,0.320312,0.734375,-0.757813,-0.320312,0.734375,-0.757813,0.156250,0.757812,-0.718750,-0.156250,0.757812,-0.718750,0.062500,0.750000,-0.492188,-0.062500,0.750000,-0.492188,0.164062,0.773438,-0.414063,-0.164062,0.773438,-0.414063,0.125000,0.765625,-0.304688,-0.125000,0.765625,-0.304688,0.203125,0.742188,-0.093750,-0.203125,0.742188,-0.093750,0.375000,0.703125,-0.015625,-0.375000,0.703125,-0.015625,0.492188,0.671875,-0.062500,-0.492188,0.671875,-0.062500,0.625000,0.648438,-0.187500,-0.625000,0.648438,-0.187500,0.640625,0.648438,-0.296875,-0.640625,0.648438,-0.296875,0.601562,0.664062,-0.375000,-0.601562,0.664062,-0.375000,0.429688,0.718750,-0.437500,-0.429688,0.718750,-0.437500,0.250000,0.757812,-0.468750,-0.250000,0.757812,-0.468750,0.000000,0.734375,0.765625,0.109375,0.734375,0.718750,-0.109375,0.734375,0.718750,0.117188,0.710938,0.835937,-0.117188,0.710938,0.835937,0.062500,0.695313,0.882812,-0.062500,0.695313,0.882812,0.000000,0.687500,0.890625,0.000000,0.750000,0.195312,0.000000,0.742188,0.140625,0.101562,0.742188,0.148437,-0.101562,0.742188,0.148437,0.125000,0.750000,0.226562,-0.125000,0.750000,0.226562,0.085938,0.742188,0.289062,-0.085938,0.742188,0.289062,0.398438,0.671875,0.046875,-0.398438,0.671875,0.046875,0.617188,0.625000,-0.054688,-0.617188,0.625000,-0.054688,0.726562,0.601562,-0.203125,-0.726562,0.601562,-0.203125,0.742188,0.656250,-0.375000,-0.742188,0.656250,-0.375000,0.687500,0.726562,-0.414063,-0.687500,0.726562,-0.414063,0.437500,0.796875,-0.546875,-0.437500,0.796875,-0.546875,0.312500,0.835938,-0.640625,-0.312500,0.835938,-0.640625,0.203125,0.851562,-0.617188,-0.203125,0.851562,-0.617188,0.101562,0.843750,-0.429688,-0.101562,0.843750,-0.429688,0.125000,0.812500,0.101562,-0.125000,0.812500,0.101562,0.210938,0.710938,0.445312,-0.210938,0.710938,0.445312,0.250000,0.687500,0.703125,-0.250000,0.687500,0.703125,0.265625,0.664063,0.820312,-0.265625,0.664063,0.820312,0.234375,0.632813,0.914062,-0.234375,0.632813,0.914062,0.164062,0.632813,0.929688,-0.164062,0.632813,0.929688,0.000000,0.640625,0.945312,0.000000,0.726562,-0.046875,0.000000,0.765625,-0.210938,0.328125,0.742188,-0.476563,-0.328125,0.742188,-0.476563,0.164062,0.750000,-0.140625,-0.164062,0.750000,-0.140625,0.132812,0.757812,-0.210938,-0.132812,0.757812,-0.210938,0.117188,0.734375,0.687500,-0.117188,0.734375,0.687500,0.078125,0.750000,0.445312,-0.078125,0.750000,0.445312,0.000000,0.750000,0.445312,0.000000,0.742188,0.328125,0.093750,0.781250,0.273437,-0.093750,0.781250,0.273437,0.132812,0.796875,0.226562,-0.132812,0.796875,0.226562,0.109375,0.781250,0.132812,-0.109375,0.781250,0.132812,0.039062,0.781250,0.125000,-0.039062,0.781250,0.125000,0.000000,0.828125,0.203125,0.046875,0.812500,0.148437,-0.046875,0.812500,0.148437,0.093750,0.812500,0.156250,-0.093750,0.812500,0.156250,0.109375,0.828125,0.226562,-0.109375,0.828125,0.226562,0.078125,0.804688,0.250000,-0.078125,0.804688,0.250000,0.000000,0.804688,0.289062,0.257812,0.554688,0.312500,-0.257812,0.554688,0.312500,0.164062,0.710938,0.242187,-0.164062,0.710938,0.242187,0.179688,0.710938,0.312500,-0.179688,0.710938,0.312500,0.234375,0.554688,0.250000,-0.234375,0.554688,0.250000,0.000000,0.687500,0.875000,0.046875,0.687500,0.867187,-0.046875,0.687500,0.867187,0.093750,0.710938,0.820312,-0.093750,0.710938,0.820312,0.093750,0.726563,0.742187,-0.093750,0.726563,0.742187,0.000000,0.656250,0.781250,0.093750,0.664063,0.750000,-0.093750,0.664063,0.750000,0.093750,0.640625,0.812500,-0.093750,0.640625,0.812500,0.046875,0.632813,0.851562,-0.046875,0.632813,0.851562,0.000000,0.632813,0.859375,0.171875,0.781250,-0.218750,-0.171875,0.781250,-0.218750,0.187500,0.773438,-0.156250,-0.187500,0.773438,-0.156250,0.335938,0.757812,-0.429688,-0.335938,0.757812,-0.429688,0.273438,0.773438,-0.421875,-0.273438,0.773438,-0.421875,0.421875,0.773438,-0.398438,-0.421875,0.773438,-0.398438,0.562500,0.695312,-0.351563,-0.562500,0.695312,-0.351563,0.585938,0.687500,-0.289063,-0.585938,0.687500,-0.289063,0.578125,0.679688,-0.195313,-0.578125,0.679688,-0.195313,0.476562,0.718750,-0.101563,-0.476562,0.718750,-0.101563,0.375000,0.742188,-0.062500,-0.375000,0.742188,-0.062500,0.226562,0.781250,-0.109375,-0.226562,0.781250,-0.109375,0.179688,0.781250,-0.296875,-0.179688,0.781250,-0.296875,0.210938,0.781250,-0.375000,-0.210938,0.781250,-0.375000,0.234375,0.757812,-0.359375,-0.234375,0.757812,-0.359375,0.195312,0.757812,-0.296875,-0.195312,0.757812,-0.296875,0.242188,0.757812,-0.125000,-0.242188,0.757812,-0.125000,0.375000,0.726562,-0.085938,-0.375000,0.726562,-0.085938,0.460938,0.703125,-0.117188,-0.460938,0.703125,-0.117188,0.546875,0.671875,-0.210938,-0.546875,0.671875,-0.210938,0.554688,0.671875,-0.281250,-0.554688,0.671875,-0.281250,0.531250,0.679688,-0.335938,-0.531250,0.679688,-0.335938,0.414062,0.750000,-0.390625,-0.414062,0.750000,-0.390625,0.281250,0.765625,-0.398438,-0.281250,0.765625,-0.398438,0.335938,0.750000,-0.406250,-0.335938,0.750000,-0.406250,0.203125,0.750000,-0.171875,-0.203125,0.750000,-0.171875,0.195312,0.750000,-0.226563,-0.195312,0.750000,-0.226563,0.109375,0.609375,-0.460938,-0.109375,0.609375,-0.460938,0.195312,0.617188,-0.664062,-0.195312,0.617188,-0.664062,0.335938,0.593750,-0.687500,-0.335938,0.593750,-0.687500,0.484375,0.554688,-0.554688,-0.484375,0.554688,-0.554688,0.679688,0.492187,-0.453125,-0.679688,0.492187,-0.453125,0.796875,0.460937,-0.406250,-0.796875,0.460937,-0.406250,0.773438,0.375000,-0.164063,-0.773438,0.375000,-0.164063,0.601562,0.414062,-0.000000,-0.601562,0.414062,-0.000000,0.437500,0.468750,0.093750,-0.437500,0.468750,0.093750,0.000000,0.289062,-0.898438,0.000000,-0.078125,-0.984375,0.000000,-0.671875,0.195313,0.000000,0.187500,0.460938,0.000000,0.460938,0.976562,0.000000,0.343750,0.804688,0.000000,0.320313,0.570312,0.000000,0.281250,0.484375,0.851562,0.054687,-0.234375,-0.851562,0.054687,-0.234375,0.859375,-0.046875,-0.320312,-0.859375,-0.046875,-0.320312,0.773438,-0.437500,-0.265625,-0.773438,-0.437500,-0.265625,0.460938,-0.703125,-0.437500,-0.460938,-0.703125,-0.437500,0.734375,0.070312,0.046875,-0.734375,0.070312,0.046875,0.593750,-0.164062,0.125000,-0.593750,-0.164062,0.125000,0.640625,-0.429688,0.007813,-0.640625,-0.429688,0.007813,0.335938,-0.664062,-0.054687,-0.335938,-0.664062,-0.054687,0.234375,0.406250,0.351562,-0.234375,0.406250,0.351562,0.179688,0.257813,0.414062,-0.179688,0.257813,0.414062,0.289062,0.382813,0.710938,-0.289062,0.382813,0.710938,0.250000,0.390625,0.500000,-0.250000,0.390625,0.500000,0.328125,0.398438,0.914062,-0.328125,0.398438,0.914062,0.140625,0.367188,0.757812,-0.140625,0.367188,0.757812,0.125000,0.359375,0.539062,-0.125000,0.359375,0.539062,0.164062,0.437500,0.945312,-0.164062,0.437500,0.945312,0.218750,0.429688,0.281250,-0.218750,0.429688,0.281250,0.210938,0.468750,0.226562,-0.210938,0.468750,0.226562,0.203125,0.500000,0.171875,-0.203125,0.500000,0.171875,0.210938,0.164063,0.390625,-0.210938,0.164063,0.390625,0.296875,-0.265625,0.312500,-0.296875,-0.265625,0.312500,0.343750,-0.539062,0.148438,-0.343750,-0.539062,0.148438,0.453125,-0.382813,-0.867188,-0.453125,-0.382813,-0.867188,0.453125,-0.070313,-0.929688,-0.453125,-0.070313,-0.929688,0.453125,0.234375,-0.851562,-0.453125,0.234375,-0.851562,0.460938,0.429687,-0.523438,-0.460938,0.429687,-0.523438,0.726562,0.335937,-0.406250,-0.726562,0.335937,-0.406250,0.632812,0.281250,-0.453125,-0.632812,0.281250,-0.453125,0.640625,0.054687,-0.703125,-0.640625,0.054687,-0.703125,0.796875,0.125000,-0.562500,-0.796875,0.125000,-0.562500,0.796875,-0.117188,-0.617188,-0.796875,-0.117188,-0.617188,0.640625,-0.195313,-0.750000,-0.640625,-0.195313,-0.750000,0.640625,-0.445313,-0.679688,-0.640625,-0.445313,-0.679688,0.796875,-0.359375,-0.539062,-0.796875,-0.359375,-0.539062,0.617188,-0.585938,-0.328125,-0.617188,-0.585938,-0.328125,0.484375,-0.546875,-0.023437,-0.484375,-0.546875,-0.023437,0.820312,-0.203125,-0.328125,-0.820312,-0.203125,-0.328125,0.406250,0.148438,0.171875,-0.406250,0.148438,0.171875,0.429688,-0.210937,0.195313,-0.429688,-0.210937,0.195313,0.890625,-0.234375,-0.406250,-0.890625,-0.234375,-0.406250,0.773438,-0.125000,0.140625,-0.773438,-0.125000,0.140625,1.039062,-0.328125,0.101563,-1.039062,-0.328125,0.101563,1.281250,-0.429688,-0.054687,-1.281250,-0.429688,-0.054687,1.351562,-0.421875,-0.320312,-1.351562,-0.421875,-0.320312,1.234375,-0.421875,-0.507812,-1.234375,-0.421875,-0.507812,1.023438,-0.312500,-0.476562,-1.023438,-0.312500,-0.476562,1.015625,-0.289063,-0.414062,-1.015625,-0.289063,-0.414062,1.187500,-0.390625,-0.437500,-1.187500,-0.390625,-0.437500,1.265625,-0.406250,-0.289062,-1.265625,-0.406250,-0.289062,1.210938,-0.406250,-0.078125,-1.210938,-0.406250,-0.078125,1.031250,-0.304688,0.039063,-1.031250,-0.304688,0.039063,0.828125,-0.132812,0.070313,-0.828125,-0.132812,0.070313,0.921875,-0.218750,-0.359375,-0.921875,-0.218750,-0.359375,0.945312,-0.289062,-0.304688,-0.945312,-0.289062,-0.304688,0.882812,-0.210938,0.023438,-0.882812,-0.210938,0.023438,1.039062,-0.367188,0.000000,-1.039062,-0.367188,0.000000,1.187500,-0.445312,-0.093750,-1.187500,-0.445312,-0.093750,1.234375,-0.445312,-0.250000,-1.234375,-0.445312,-0.250000,1.171875,-0.437500,-0.359375,-1.171875,-0.437500,-0.359375,1.023438,-0.359375,-0.343750,-1.023438,-0.359375,-0.343750,0.843750,-0.210938,-0.289062,-0.843750,-0.210938,-0.289062,0.835938,-0.273438,-0.171875,-0.835938,-0.273438,-0.171875,0.757812,-0.273438,-0.093750,-0.757812,-0.273438,-0.093750,0.820312,-0.273438,-0.085937,-0.820312,-0.273438,-0.085937,0.843750,-0.273438,-0.015625,-0.843750,-0.273438,-0.015625,0.812500,-0.273438,0.015625,-0.812500,-0.273438,0.015625,0.726562,-0.070312,0.000000,-0.726562,-0.070312,0.000000,0.718750,-0.171875,0.023438,-0.718750,-0.171875,0.023438,0.718750,-0.187500,-0.039062,-0.718750,-0.187500,-0.039062,0.796875,-0.210938,-0.203125,-0.796875,-0.210938,-0.203125,0.890625,-0.265625,-0.242187,-0.890625,-0.265625,-0.242187,0.890625,-0.320312,-0.234375,-0.890625,-0.320312,-0.234375,0.812500,-0.320312,0.015625,-0.812500,-0.320312,0.015625,0.851562,-0.320312,-0.015625,-0.851562,-0.320312,-0.015625,0.828125,-0.320312,-0.078125,-0.828125,-0.320312,-0.078125,0.765625,-0.320312,-0.093750,-0.765625,-0.320312,-0.093750,0.843750,-0.320312,-0.171875,-0.843750,-0.320312,-0.171875,1.039062,-0.414062,-0.328125,-1.039062,-0.414062,-0.328125,1.187500,-0.484375,-0.343750,-1.187500,-0.484375,-0.343750,1.257812,-0.492188,-0.242187,-1.257812,-0.492188,-0.242187,1.210938,-0.484375,-0.085937,-1.210938,-0.484375,-0.085937,1.046875,-0.421875,0.000000,-1.046875,-0.421875,0.000000,0.882812,-0.265625,0.015625,-0.882812,-0.265625,0.015625,0.953125,-0.343750,-0.289062,-0.953125,-0.343750,-0.289062,0.890625,-0.328125,-0.109375,-0.890625,-0.328125,-0.109375,0.937500,-0.335938,-0.062500,-0.937500,-0.335938,-0.062500,1.000000,-0.367188,-0.125000,-1.000000,-0.367188,-0.125000,0.960938,-0.351562,-0.171875,-0.960938,-0.351562,-0.171875,1.015625,-0.375000,-0.234375,-1.015625,-0.375000,-0.234375,1.054688,-0.382812,-0.187500,-1.054688,-0.382812,-0.187500,1.109375,-0.390625,-0.210937,-1.109375,-0.390625,-0.210937,1.085938,-0.390625,-0.273437,-1.085938,-0.390625,-0.273437,1.023438,-0.484375,-0.437500,-1.023438,-0.484375,-0.437500,1.250000,-0.546875,-0.468750,-1.250000,-0.546875,-0.468750,1.367188,-0.500000,-0.296875,-1.367188,-0.500000,-0.296875,1.312500,-0.531250,-0.054687,-1.312500,-0.531250,-0.054687,1.039062,-0.492188,0.085938,-1.039062,-0.492188,0.085938,0.789062,-0.328125,0.125000,-0.789062,-0.328125,0.125000,0.859375,-0.382813,-0.382812,-0.859375,-0.382813,-0.382812], + "vertices": [0.437500,0.164062,0.765625,-0.437500,0.164062,0.765625,0.500000,0.093750,0.687500,-0.500000,0.093750,0.687500,0.546875,0.054688,0.578125,-0.546875,0.054688,0.578125,0.351562,-0.023438,0.617188,-0.351562,-0.023438,0.617188,0.351562,0.031250,0.718750,-0.351562,0.031250,0.718750,0.351562,0.132812,0.781250,-0.351562,0.132812,0.781250,0.273438,0.164062,0.796875,-0.273438,0.164062,0.796875,0.203125,0.093750,0.742188,-0.203125,0.093750,0.742188,0.156250,0.054688,0.648438,-0.156250,0.054688,0.648438,0.078125,0.242188,0.656250,-0.078125,0.242188,0.656250,0.140625,0.242188,0.742188,-0.140625,0.242188,0.742188,0.242188,0.242188,0.796875,-0.242188,0.242188,0.796875,0.273438,0.328125,0.796875,-0.273438,0.328125,0.796875,0.203125,0.390625,0.742188,-0.203125,0.390625,0.742188,0.156250,0.437500,0.648438,-0.156250,0.437500,0.648438,0.351562,0.515625,0.617188,-0.351562,0.515625,0.617188,0.351562,0.453125,0.718750,-0.351562,0.453125,0.718750,0.351562,0.359375,0.781250,-0.351562,0.359375,0.781250,0.437500,0.328125,0.765625,-0.437500,0.328125,0.765625,0.500000,0.390625,0.687500,-0.500000,0.390625,0.687500,0.546875,0.437500,0.578125,-0.546875,0.437500,0.578125,0.625000,0.242188,0.562500,-0.625000,0.242188,0.562500,0.562500,0.242188,0.671875,-0.562500,0.242188,0.671875,0.468750,0.242188,0.757812,-0.468750,0.242188,0.757812,0.476562,0.242188,0.773438,-0.476562,0.242188,0.773438,0.445312,0.335938,0.781250,-0.445312,0.335938,0.781250,0.351562,0.375000,0.804688,-0.351562,0.375000,0.804688,0.265625,0.335938,0.820312,-0.265625,0.335938,0.820312,0.226562,0.242188,0.820312,-0.226562,0.242188,0.820312,0.265625,0.156250,0.820312,-0.265625,0.156250,0.820312,0.351562,0.242188,0.828125,-0.351562,0.242188,0.828125,0.351562,0.117188,0.804688,-0.351562,0.117188,0.804688,0.445312,0.156250,0.781250,-0.445312,0.156250,0.781250,0.000000,0.429688,0.742188,0.000000,0.351562,0.820312,0.000000,-0.679688,0.734375,0.000000,-0.320312,0.781250,0.000000,-0.187500,0.796875,0.000000,-0.773438,0.718750,0.000000,0.406250,0.601562,0.000000,0.570312,0.570312,0.000000,0.898438,-0.546875,0.000000,0.562500,-0.851562,0.000000,0.070312,-0.828125,0.000000,-0.382812,-0.351562,0.203125,-0.187500,0.562500,-0.203125,-0.187500,0.562500,0.312500,-0.437500,0.570312,-0.312500,-0.437500,0.570312,0.351562,-0.695312,0.570312,-0.351562,-0.695312,0.570312,0.367188,-0.890625,0.531250,-0.367188,-0.890625,0.531250,0.328125,-0.945312,0.523438,-0.328125,-0.945312,0.523438,0.179688,-0.968750,0.554688,-0.179688,-0.968750,0.554688,0.000000,-0.984375,0.578125,0.437500,-0.140625,0.531250,-0.437500,-0.140625,0.531250,0.632812,-0.039062,0.539062,-0.632812,-0.039062,0.539062,0.828125,0.148438,0.445312,-0.828125,0.148438,0.445312,0.859375,0.429688,0.593750,-0.859375,0.429688,0.593750,0.710938,0.484375,0.625000,-0.710938,0.484375,0.625000,0.492188,0.601562,0.687500,-0.492188,0.601562,0.687500,0.320312,0.757812,0.734375,-0.320312,0.757812,0.734375,0.156250,0.718750,0.757812,-0.156250,0.718750,0.757812,0.062500,0.492188,0.750000,-0.062500,0.492188,0.750000,0.164062,0.414062,0.773438,-0.164062,0.414062,0.773438,0.125000,0.304688,0.765625,-0.125000,0.304688,0.765625,0.203125,0.093750,0.742188,-0.203125,0.093750,0.742188,0.375000,0.015625,0.703125,-0.375000,0.015625,0.703125,0.492188,0.062500,0.671875,-0.492188,0.062500,0.671875,0.625000,0.187500,0.648438,-0.625000,0.187500,0.648438,0.640625,0.296875,0.648438,-0.640625,0.296875,0.648438,0.601562,0.375000,0.664062,-0.601562,0.375000,0.664062,0.429688,0.437500,0.718750,-0.429688,0.437500,0.718750,0.250000,0.468750,0.757812,-0.250000,0.468750,0.757812,0.000000,-0.765625,0.734375,0.109375,-0.718750,0.734375,-0.109375,-0.718750,0.734375,0.117188,-0.835938,0.710938,-0.117188,-0.835938,0.710938,0.062500,-0.882812,0.695312,-0.062500,-0.882812,0.695312,0.000000,-0.890625,0.687500,0.000000,-0.195312,0.750000,0.000000,-0.140625,0.742188,0.101562,-0.148438,0.742188,-0.101562,-0.148438,0.742188,0.125000,-0.226562,0.750000,-0.125000,-0.226562,0.750000,0.085938,-0.289062,0.742188,-0.085938,-0.289062,0.742188,0.398438,-0.046875,0.671875,-0.398438,-0.046875,0.671875,0.617188,0.054688,0.625000,-0.617188,0.054688,0.625000,0.726562,0.203125,0.601562,-0.726562,0.203125,0.601562,0.742188,0.375000,0.656250,-0.742188,0.375000,0.656250,0.687500,0.414062,0.726562,-0.687500,0.414062,0.726562,0.437500,0.546875,0.796875,-0.437500,0.546875,0.796875,0.312500,0.640625,0.835938,-0.312500,0.640625,0.835938,0.203125,0.617188,0.851562,-0.203125,0.617188,0.851562,0.101562,0.429688,0.843750,-0.101562,0.429688,0.843750,0.125000,-0.101562,0.812500,-0.125000,-0.101562,0.812500,0.210938,-0.445312,0.710938,-0.210938,-0.445312,0.710938,0.250000,-0.703125,0.687500,-0.250000,-0.703125,0.687500,0.265625,-0.820312,0.664062,-0.265625,-0.820312,0.664062,0.234375,-0.914062,0.632812,-0.234375,-0.914062,0.632812,0.164062,-0.929688,0.632812,-0.164062,-0.929688,0.632812,0.000000,-0.945312,0.640625,0.000000,0.046875,0.726562,0.000000,0.210938,0.765625,0.328125,0.476562,0.742188,-0.328125,0.476562,0.742188,0.164062,0.140625,0.750000,-0.164062,0.140625,0.750000,0.132812,0.210938,0.757812,-0.132812,0.210938,0.757812,0.117188,-0.687500,0.734375,-0.117188,-0.687500,0.734375,0.078125,-0.445312,0.750000,-0.078125,-0.445312,0.750000,0.000000,-0.445312,0.750000,0.000000,-0.328125,0.742188,0.093750,-0.273438,0.781250,-0.093750,-0.273438,0.781250,0.132812,-0.226562,0.796875,-0.132812,-0.226562,0.796875,0.109375,-0.132812,0.781250,-0.109375,-0.132812,0.781250,0.039062,-0.125000,0.781250,-0.039062,-0.125000,0.781250,0.000000,-0.203125,0.828125,0.046875,-0.148438,0.812500,-0.046875,-0.148438,0.812500,0.093750,-0.156250,0.812500,-0.093750,-0.156250,0.812500,0.109375,-0.226562,0.828125,-0.109375,-0.226562,0.828125,0.078125,-0.250000,0.804688,-0.078125,-0.250000,0.804688,0.000000,-0.289062,0.804688,0.257812,-0.312500,0.554688,-0.257812,-0.312500,0.554688,0.164062,-0.242188,0.710938,-0.164062,-0.242188,0.710938,0.179688,-0.312500,0.710938,-0.179688,-0.312500,0.710938,0.234375,-0.250000,0.554688,-0.234375,-0.250000,0.554688,0.000000,-0.875000,0.687500,0.046875,-0.867188,0.687500,-0.046875,-0.867188,0.687500,0.093750,-0.820312,0.710938,-0.093750,-0.820312,0.710938,0.093750,-0.742188,0.726562,-0.093750,-0.742188,0.726562,0.000000,-0.781250,0.656250,0.093750,-0.750000,0.664062,-0.093750,-0.750000,0.664062,0.093750,-0.812500,0.640625,-0.093750,-0.812500,0.640625,0.046875,-0.851562,0.632812,-0.046875,-0.851562,0.632812,0.000000,-0.859375,0.632812,0.171875,0.218750,0.781250,-0.171875,0.218750,0.781250,0.187500,0.156250,0.773438,-0.187500,0.156250,0.773438,0.335938,0.429688,0.757812,-0.335938,0.429688,0.757812,0.273438,0.421875,0.773438,-0.273438,0.421875,0.773438,0.421875,0.398438,0.773438,-0.421875,0.398438,0.773438,0.562500,0.351562,0.695312,-0.562500,0.351562,0.695312,0.585938,0.289062,0.687500,-0.585938,0.289062,0.687500,0.578125,0.195312,0.679688,-0.578125,0.195312,0.679688,0.476562,0.101562,0.718750,-0.476562,0.101562,0.718750,0.375000,0.062500,0.742188,-0.375000,0.062500,0.742188,0.226562,0.109375,0.781250,-0.226562,0.109375,0.781250,0.179688,0.296875,0.781250,-0.179688,0.296875,0.781250,0.210938,0.375000,0.781250,-0.210938,0.375000,0.781250,0.234375,0.359375,0.757812,-0.234375,0.359375,0.757812,0.195312,0.296875,0.757812,-0.195312,0.296875,0.757812,0.242188,0.125000,0.757812,-0.242188,0.125000,0.757812,0.375000,0.085938,0.726562,-0.375000,0.085938,0.726562,0.460938,0.117188,0.703125,-0.460938,0.117188,0.703125,0.546875,0.210938,0.671875,-0.546875,0.210938,0.671875,0.554688,0.281250,0.671875,-0.554688,0.281250,0.671875,0.531250,0.335938,0.679688,-0.531250,0.335938,0.679688,0.414062,0.390625,0.750000,-0.414062,0.390625,0.750000,0.281250,0.398438,0.765625,-0.281250,0.398438,0.765625,0.335938,0.406250,0.750000,-0.335938,0.406250,0.750000,0.203125,0.171875,0.750000,-0.203125,0.171875,0.750000,0.195312,0.226562,0.750000,-0.195312,0.226562,0.750000,0.109375,0.460938,0.609375,-0.109375,0.460938,0.609375,0.195312,0.664062,0.617188,-0.195312,0.664062,0.617188,0.335938,0.687500,0.593750,-0.335938,0.687500,0.593750,0.484375,0.554688,0.554688,-0.484375,0.554688,0.554688,0.679688,0.453125,0.492188,-0.679688,0.453125,0.492188,0.796875,0.406250,0.460938,-0.796875,0.406250,0.460938,0.773438,0.164062,0.375000,-0.773438,0.164062,0.375000,0.601562,0.000000,0.414062,-0.601562,0.000000,0.414062,0.437500,-0.093750,0.468750,-0.437500,-0.093750,0.468750,0.000000,0.898438,0.289062,0.000000,0.984375,-0.078125,0.000000,-0.195312,-0.671875,0.000000,-0.460938,0.187500,0.000000,-0.976562,0.460938,0.000000,-0.804688,0.343750,0.000000,-0.570312,0.320312,0.000000,-0.484375,0.281250,0.851562,0.234375,0.054688,-0.851562,0.234375,0.054688,0.859375,0.320312,-0.046875,-0.859375,0.320312,-0.046875,0.773438,0.265625,-0.437500,-0.773438,0.265625,-0.437500,0.460938,0.437500,-0.703125,-0.460938,0.437500,-0.703125,0.734375,-0.046875,0.070312,-0.734375,-0.046875,0.070312,0.593750,-0.125000,-0.164062,-0.593750,-0.125000,-0.164062,0.640625,-0.007812,-0.429688,-0.640625,-0.007812,-0.429688,0.335938,0.054688,-0.664062,-0.335938,0.054688,-0.664062,0.234375,-0.351562,0.406250,-0.234375,-0.351562,0.406250,0.179688,-0.414062,0.257812,-0.179688,-0.414062,0.257812,0.289062,-0.710938,0.382812,-0.289062,-0.710938,0.382812,0.250000,-0.500000,0.390625,-0.250000,-0.500000,0.390625,0.328125,-0.914062,0.398438,-0.328125,-0.914062,0.398438,0.140625,-0.757812,0.367188,-0.140625,-0.757812,0.367188,0.125000,-0.539062,0.359375,-0.125000,-0.539062,0.359375,0.164062,-0.945312,0.437500,-0.164062,-0.945312,0.437500,0.218750,-0.281250,0.429688,-0.218750,-0.281250,0.429688,0.210938,-0.226562,0.468750,-0.210938,-0.226562,0.468750,0.203125,-0.171875,0.500000,-0.203125,-0.171875,0.500000,0.210938,-0.390625,0.164062,-0.210938,-0.390625,0.164062,0.296875,-0.312500,-0.265625,-0.296875,-0.312500,-0.265625,0.343750,-0.148438,-0.539062,-0.343750,-0.148438,-0.539062,0.453125,0.867188,-0.382812,-0.453125,0.867188,-0.382812,0.453125,0.929688,-0.070312,-0.453125,0.929688,-0.070312,0.453125,0.851562,0.234375,-0.453125,0.851562,0.234375,0.460938,0.523438,0.429688,-0.460938,0.523438,0.429688,0.726562,0.406250,0.335938,-0.726562,0.406250,0.335938,0.632812,0.453125,0.281250,-0.632812,0.453125,0.281250,0.640625,0.703125,0.054688,-0.640625,0.703125,0.054688,0.796875,0.562500,0.125000,-0.796875,0.562500,0.125000,0.796875,0.617188,-0.117188,-0.796875,0.617188,-0.117188,0.640625,0.750000,-0.195312,-0.640625,0.750000,-0.195312,0.640625,0.679688,-0.445312,-0.640625,0.679688,-0.445312,0.796875,0.539062,-0.359375,-0.796875,0.539062,-0.359375,0.617188,0.328125,-0.585938,-0.617188,0.328125,-0.585938,0.484375,0.023438,-0.546875,-0.484375,0.023438,-0.546875,0.820312,0.328125,-0.203125,-0.820312,0.328125,-0.203125,0.406250,-0.171875,0.148438,-0.406250,-0.171875,0.148438,0.429688,-0.195312,-0.210938,-0.429688,-0.195312,-0.210938,0.890625,0.406250,-0.234375,-0.890625,0.406250,-0.234375,0.773438,-0.140625,-0.125000,-0.773438,-0.140625,-0.125000,1.039062,-0.101562,-0.328125,-1.039062,-0.101562,-0.328125,1.281250,0.054688,-0.429688,-1.281250,0.054688,-0.429688,1.351562,0.320312,-0.421875,-1.351562,0.320312,-0.421875,1.234375,0.507812,-0.421875,-1.234375,0.507812,-0.421875,1.023438,0.476562,-0.312500,-1.023438,0.476562,-0.312500,1.015625,0.414062,-0.289062,-1.015625,0.414062,-0.289062,1.187500,0.437500,-0.390625,-1.187500,0.437500,-0.390625,1.265625,0.289062,-0.406250,-1.265625,0.289062,-0.406250,1.210938,0.078125,-0.406250,-1.210938,0.078125,-0.406250,1.031250,-0.039062,-0.304688,-1.031250,-0.039062,-0.304688,0.828125,-0.070312,-0.132812,-0.828125,-0.070312,-0.132812,0.921875,0.359375,-0.218750,-0.921875,0.359375,-0.218750,0.945312,0.304688,-0.289062,-0.945312,0.304688,-0.289062,0.882812,-0.023438,-0.210938,-0.882812,-0.023438,-0.210938,1.039062,0.000000,-0.367188,-1.039062,0.000000,-0.367188,1.187500,0.093750,-0.445312,-1.187500,0.093750,-0.445312,1.234375,0.250000,-0.445312,-1.234375,0.250000,-0.445312,1.171875,0.359375,-0.437500,-1.171875,0.359375,-0.437500,1.023438,0.343750,-0.359375,-1.023438,0.343750,-0.359375,0.843750,0.289062,-0.210938,-0.843750,0.289062,-0.210938,0.835938,0.171875,-0.273438,-0.835938,0.171875,-0.273438,0.757812,0.093750,-0.273438,-0.757812,0.093750,-0.273438,0.820312,0.085938,-0.273438,-0.820312,0.085938,-0.273438,0.843750,0.015625,-0.273438,-0.843750,0.015625,-0.273438,0.812500,-0.015625,-0.273438,-0.812500,-0.015625,-0.273438,0.726562,0.000000,-0.070312,-0.726562,0.000000,-0.070312,0.718750,-0.023438,-0.171875,-0.718750,-0.023438,-0.171875,0.718750,0.039062,-0.187500,-0.718750,0.039062,-0.187500,0.796875,0.203125,-0.210938,-0.796875,0.203125,-0.210938,0.890625,0.242188,-0.265625,-0.890625,0.242188,-0.265625,0.890625,0.234375,-0.320312,-0.890625,0.234375,-0.320312,0.812500,-0.015625,-0.320312,-0.812500,-0.015625,-0.320312,0.851562,0.015625,-0.320312,-0.851562,0.015625,-0.320312,0.828125,0.078125,-0.320312,-0.828125,0.078125,-0.320312,0.765625,0.093750,-0.320312,-0.765625,0.093750,-0.320312,0.843750,0.171875,-0.320312,-0.843750,0.171875,-0.320312,1.039062,0.328125,-0.414062,-1.039062,0.328125,-0.414062,1.187500,0.343750,-0.484375,-1.187500,0.343750,-0.484375,1.257812,0.242188,-0.492188,-1.257812,0.242188,-0.492188,1.210938,0.085938,-0.484375,-1.210938,0.085938,-0.484375,1.046875,0.000000,-0.421875,-1.046875,0.000000,-0.421875,0.882812,-0.015625,-0.265625,-0.882812,-0.015625,-0.265625,0.953125,0.289062,-0.343750,-0.953125,0.289062,-0.343750,0.890625,0.109375,-0.328125,-0.890625,0.109375,-0.328125,0.937500,0.062500,-0.335938,-0.937500,0.062500,-0.335938,1.000000,0.125000,-0.367188,-1.000000,0.125000,-0.367188,0.960938,0.171875,-0.351562,-0.960938,0.171875,-0.351562,1.015625,0.234375,-0.375000,-1.015625,0.234375,-0.375000,1.054688,0.187500,-0.382812,-1.054688,0.187500,-0.382812,1.109375,0.210938,-0.390625,-1.109375,0.210938,-0.390625,1.085938,0.273438,-0.390625,-1.085938,0.273438,-0.390625,1.023438,0.437500,-0.484375,-1.023438,0.437500,-0.484375,1.250000,0.468750,-0.546875,-1.250000,0.468750,-0.546875,1.367188,0.296875,-0.500000,-1.367188,0.296875,-0.500000,1.312500,0.054688,-0.531250,-1.312500,0.054688,-0.531250,1.039062,-0.085938,-0.492188,-1.039062,-0.085938,-0.492188,0.789062,-0.125000,-0.328125,-0.789062,-0.125000,-0.328125,0.859375,0.382812,-0.382812,-0.859375,0.382812,-0.382812], "morphTargets": [], @@ -38,8 +40,11 @@ var model = { "uvs": [[]], - "faces": [3,46,0,2,44,0,3,3,1,47,45,0,3,44,2,4,42,0,3,5,3,45,43,0,3,2,8,6,4,0,3,7,9,3,5,0,3,0,10,8,2,0,3,9,11,1,3,0,3,10,12,14,8,0,3,15,13,11,9,0,3,8,14,16,6,0,3,17,15,9,7,0,3,14,20,18,16,0,3,19,21,15,17,0,3,12,22,20,14,0,3,21,23,13,15,0,3,22,24,26,20,0,3,27,25,23,21,0,3,20,26,28,18,0,3,29,27,21,19,0,3,26,32,30,28,0,3,31,33,27,29,0,3,24,34,32,26,0,3,33,35,25,27,0,3,34,36,38,32,0,3,39,37,35,33,0,3,32,38,40,30,0,3,41,39,33,31,0,3,38,44,42,40,0,3,43,45,39,41,0,3,36,46,44,38,0,3,45,47,37,39,0,3,46,36,50,48,0,3,51,37,47,49,0,3,36,34,52,50,0,3,53,35,37,51,0,3,34,24,54,52,0,3,55,25,35,53,0,3,24,22,56,54,0,3,57,23,25,55,0,3,22,12,58,56,0,3,59,13,23,57,0,3,12,10,62,58,0,3,63,11,13,59,0,3,10,0,64,62,0,3,65,1,11,63,0,3,0,46,48,64,0,3,49,47,1,65,0,2,60,64,48,0,2,49,65,61,0,2,62,64,60,0,2,61,65,63,0,2,60,58,62,0,2,63,59,61,0,2,60,56,58,0,2,59,57,61,0,2,60,54,56,0,2,57,55,61,0,2,60,52,54,0,2,55,53,61,0,2,60,50,52,0,2,53,51,61,0,2,60,48,50,0,2,51,49,61,0,3,88,173,175,90,0,3,175,174,89,90,0,3,86,171,173,88,0,3,174,172,87,89,0,3,84,169,171,86,0,3,172,170,85,87,0,3,82,167,169,84,0,3,170,168,83,85,0,3,80,165,167,82,0,3,168,166,81,83,0,3,78,91,145,163,0,3,146,92,79,164,0,3,91,93,147,145,0,3,148,94,92,146,0,3,93,95,149,147,0,3,150,96,94,148,0,3,95,97,151,149,0,3,152,98,96,150,0,3,97,99,153,151,0,3,154,100,98,152,0,3,99,101,155,153,0,3,156,102,100,154,0,3,101,103,157,155,0,3,158,104,102,156,0,3,103,105,159,157,0,3,160,106,104,158,0,3,105,107,161,159,0,3,162,108,106,160,0,3,107,66,67,161,0,3,67,66,108,162,0,3,109,127,159,161,0,3,160,128,110,162,0,3,127,178,157,159,0,3,158,179,128,160,0,3,125,155,157,178,0,3,158,156,126,179,0,3,123,153,155,125,0,3,156,154,124,126,0,3,121,151,153,123,0,3,154,152,122,124,0,3,119,149,151,121,0,3,152,150,120,122,0,3,117,147,149,119,0,3,150,148,118,120,0,3,115,145,147,117,0,3,148,146,116,118,0,3,113,163,145,115,0,3,146,164,114,116,0,3,113,180,176,163,0,3,176,181,114,164,0,3,109,161,67,111,0,3,67,162,110,112,0,3,111,67,177,182,0,3,177,67,112,183,0,3,176,180,182,177,0,3,183,181,176,177,0,3,134,136,175,173,0,3,175,136,135,174,0,3,132,134,173,171,0,3,174,135,133,172,0,3,130,132,171,169,0,3,172,133,131,170,0,3,165,186,184,167,0,3,185,187,166,168,0,3,130,169,167,184,0,3,168,170,131,185,0,3,143,189,188,186,0,3,188,189,144,187,0,3,184,186,188,68,0,3,188,187,185,68,0,3,129,130,184,68,0,3,185,131,129,68,0,3,141,192,190,143,0,3,191,193,142,144,0,3,139,194,192,141,0,3,193,195,140,142,0,3,138,196,194,139,0,3,195,197,138,140,0,3,137,70,196,138,0,3,197,70,137,138,0,3,189,143,190,69,0,3,191,144,189,69,0,3,69,190,205,207,0,3,206,191,69,207,0,3,70,198,199,196,0,3,200,198,70,197,0,3,196,199,201,194,0,3,202,200,197,195,0,3,194,201,203,192,0,3,204,202,195,193,0,3,192,203,205,190,0,3,206,204,193,191,0,3,198,203,201,199,0,3,202,204,198,200,0,3,198,207,205,203,0,3,206,207,198,204,0,3,138,139,163,176,0,3,164,140,138,176,0,3,139,141,210,163,0,3,211,142,140,164,0,3,141,143,212,210,0,3,213,144,142,211,0,3,143,186,165,212,0,3,166,187,144,213,0,3,80,208,212,165,0,3,213,209,81,166,0,3,208,214,210,212,0,3,211,215,209,213,0,3,78,163,210,214,0,3,211,164,79,215,0,3,130,129,71,221,0,3,71,129,131,222,0,3,132,130,221,219,0,3,222,131,133,220,0,3,134,132,219,217,0,3,220,133,135,218,0,3,136,134,217,216,0,3,218,135,136,216,0,3,216,217,228,230,0,3,229,218,216,230,0,3,217,219,226,228,0,3,227,220,218,229,0,3,219,221,224,226,0,3,225,222,220,227,0,3,221,71,223,224,0,3,223,71,222,225,0,3,223,230,228,224,0,3,229,230,223,225,0,2,224,228,226,0,2,227,229,225,0,3,182,180,233,231,0,3,234,181,183,232,0,3,111,182,231,253,0,3,232,183,112,254,0,3,109,111,253,255,0,3,254,112,110,256,0,3,180,113,251,233,0,3,252,114,181,234,0,3,113,115,249,251,0,3,250,116,114,252,0,3,115,117,247,249,0,3,248,118,116,250,0,3,117,119,245,247,0,3,246,120,118,248,0,3,119,121,243,245,0,3,244,122,120,246,0,3,121,123,241,243,0,3,242,124,122,244,0,3,123,125,239,241,0,3,240,126,124,242,0,3,125,178,235,239,0,3,236,179,126,240,0,3,178,127,237,235,0,3,238,128,179,236,0,3,127,109,255,237,0,3,256,110,128,238,0,3,237,255,257,275,0,3,258,256,238,276,0,3,235,237,275,277,0,3,276,238,236,278,0,3,239,235,277,273,0,3,278,236,240,274,0,3,241,239,273,271,0,3,274,240,242,272,0,3,243,241,271,269,0,3,272,242,244,270,0,3,245,243,269,267,0,3,270,244,246,268,0,3,247,245,267,265,0,3,268,246,248,266,0,3,249,247,265,263,0,3,266,248,250,264,0,3,251,249,263,261,0,3,264,250,252,262,0,3,233,251,261,279,0,3,262,252,234,280,0,3,255,253,259,257,0,3,260,254,256,258,0,3,253,231,281,259,0,3,282,232,254,260,0,3,231,233,279,281,0,3,280,234,232,282,0,3,66,107,283,72,0,3,284,108,66,72,0,3,107,105,285,283,0,3,286,106,108,284,0,3,105,103,287,285,0,3,288,104,106,286,0,3,103,101,289,287,0,3,290,102,104,288,0,3,101,99,291,289,0,3,292,100,102,290,0,3,99,97,293,291,0,3,294,98,100,292,0,3,97,95,295,293,0,3,296,96,98,294,0,3,95,93,297,295,0,3,298,94,96,296,0,3,93,91,299,297,0,3,300,92,94,298,0,3,307,308,327,337,0,3,328,308,307,338,0,3,306,307,337,335,0,3,338,307,306,336,0,3,305,306,335,339,0,3,336,306,305,340,0,3,88,90,305,339,0,3,305,90,89,340,0,3,86,88,339,333,0,3,340,89,87,334,0,3,84,86,333,329,0,3,334,87,85,330,0,3,82,84,329,331,0,3,330,85,83,332,0,3,329,335,337,331,0,3,338,336,330,332,0,3,329,333,339,335,0,3,340,334,330,336,0,3,325,331,337,327,0,3,338,332,326,328,0,3,80,82,331,325,0,3,332,83,81,326,0,3,208,341,343,214,0,3,344,342,209,215,0,3,80,325,341,208,0,3,342,326,81,209,0,3,78,214,343,345,0,3,344,215,79,346,0,3,78,345,299,91,0,3,300,346,79,92,0,3,76,323,351,303,0,3,352,324,76,303,0,3,303,351,349,77,0,3,350,352,303,77,0,3,77,349,347,304,0,3,348,350,77,304,0,3,304,347,327,308,0,3,328,348,304,308,0,3,325,327,347,341,0,3,348,328,326,342,0,3,295,297,317,309,0,3,318,298,296,310,0,3,75,315,323,76,0,3,324,316,75,76,0,3,301,357,355,302,0,3,356,358,301,302,0,3,302,355,353,74,0,3,354,356,302,74,0,3,74,353,315,75,0,3,316,354,74,75,0,3,291,293,361,363,0,3,362,294,292,364,0,3,363,361,367,365,0,3,368,362,364,366,0,3,365,367,369,371,0,3,370,368,366,372,0,3,371,369,375,373,0,3,376,370,372,374,0,3,313,377,373,375,0,3,374,378,314,376,0,3,315,353,373,377,0,3,374,354,316,378,0,3,353,355,371,373,0,3,372,356,354,374,0,3,355,357,365,371,0,3,366,358,356,372,0,3,357,359,363,365,0,3,364,360,358,366,0,3,289,291,363,359,0,3,364,292,290,360,0,3,73,359,357,301,0,3,358,360,73,301,0,3,283,285,287,289,0,3,288,286,284,290,0,3,283,289,359,73,0,3,360,290,284,73,0,2,72,283,73,0,2,73,284,72,0,3,293,295,309,361,0,3,310,296,294,362,0,3,309,311,367,361,0,3,368,312,310,362,0,3,311,381,369,367,0,3,370,382,312,368,0,3,313,375,369,381,0,3,370,376,314,382,0,3,347,349,385,383,0,3,386,350,348,384,0,3,317,383,385,319,0,3,386,384,318,320,0,3,297,299,383,317,0,3,384,300,298,318,0,3,299,343,341,383,0,3,342,344,300,384,0,2,341,347,383,0,2,384,348,342,0,2,299,345,343,0,2,344,346,300,0,3,313,321,379,377,0,3,380,322,314,378,0,3,315,377,379,323,0,3,380,378,316,324,0,3,319,385,379,321,0,3,380,386,320,322,0,3,349,351,379,385,0,3,380,352,350,386,0,2,323,379,351,0,2,352,380,324,0,3,399,387,413,401,0,3,414,388,400,402,0,3,399,401,403,397,0,3,404,402,400,398,0,3,397,403,405,395,0,3,406,404,398,396,0,3,395,405,407,393,0,3,408,406,396,394,0,3,393,407,409,391,0,3,410,408,394,392,0,3,391,409,411,389,0,3,412,410,392,390,0,3,409,419,417,411,0,3,418,420,410,412,0,3,407,421,419,409,0,3,420,422,408,410,0,3,405,423,421,407,0,3,422,424,406,408,0,3,403,425,423,405,0,3,424,426,404,406,0,3,401,427,425,403,0,3,426,428,402,404,0,3,401,413,415,427,0,3,416,414,402,428,0,3,317,319,443,441,0,3,444,320,318,442,0,3,319,389,411,443,0,3,412,390,320,444,0,3,309,317,441,311,0,3,442,318,310,312,0,3,381,429,413,387,0,3,414,430,382,388,0,3,411,417,439,443,0,3,440,418,412,444,0,3,437,445,443,439,0,3,444,446,438,440,0,3,433,445,437,435,0,3,438,446,434,436,0,3,431,447,445,433,0,3,446,448,432,434,0,3,429,447,431,449,0,3,432,448,430,450,0,3,413,429,449,415,0,3,450,430,414,416,0,3,311,447,429,381,0,3,430,448,312,382,0,3,311,441,445,447,0,3,446,442,312,448,0,2,441,443,445,0,2,446,444,442,0,3,415,449,451,475,0,3,452,450,416,476,0,3,449,431,461,451,0,3,462,432,450,452,0,3,431,433,459,461,0,3,460,434,432,462,0,3,433,435,457,459,0,3,458,436,434,460,0,3,435,437,455,457,0,3,456,438,436,458,0,3,437,439,453,455,0,3,454,440,438,456,0,3,439,417,473,453,0,3,474,418,440,454,0,3,427,415,475,463,0,3,476,416,428,464,0,3,425,427,463,465,0,3,464,428,426,466,0,3,423,425,465,467,0,3,466,426,424,468,0,3,421,423,467,469,0,3,468,424,422,470,0,3,419,421,469,471,0,3,470,422,420,472,0,3,417,419,471,473,0,3,472,420,418,474,0,3,457,455,479,477,0,3,480,456,458,478,0,3,477,479,481,483,0,3,482,480,478,484,0,3,483,481,487,485,0,3,488,482,484,486,0,3,485,487,489,491,0,3,490,488,486,492,0,3,463,475,485,491,0,3,486,476,464,492,0,3,451,483,485,475,0,3,486,484,452,476,0,3,451,461,477,483,0,3,478,462,452,484,0,3,457,477,461,459,0,3,462,478,458,460,0,3,453,473,479,455,0,3,480,474,454,456,0,3,471,481,479,473,0,3,480,482,472,474,0,3,469,487,481,471,0,3,482,488,470,472,0,3,467,489,487,469,0,3,488,490,468,470,0,3,465,491,489,467,0,3,490,492,466,468,0,2,463,491,465,0,2,466,492,464,0,3,391,389,503,501,0,3,504,390,392,502,0,3,393,391,501,499,0,3,502,392,394,500,0,3,395,393,499,497,0,3,500,394,396,498,0,3,397,395,497,495,0,3,498,396,398,496,0,3,399,397,495,493,0,3,496,398,400,494,0,3,387,399,493,505,0,3,494,400,388,506,0,3,493,501,503,505,0,3,504,502,494,506,0,3,493,495,499,501,0,3,500,496,494,502,0,2,495,497,499,0,2,500,498,496,0,3,313,381,387,505,0,3,388,382,314,506,0,3,313,505,503,321,0,3,504,506,314,322,0,3,319,321,503,389,0,3,504,322,320,390,0] + "faces": [3,46,0,2,44,0,3,3,1,47,45,0,3,44,2,4,42,0,3,5,3,45,43,0,3,2,8,6,4,0,3,7,9,3,5,0,3,0,10,8,2,0,3,9,11,1,3,0,3,10,12,14,8,0,3,15,13,11,9,0,3,8,14,16,6,0,3,17,15,9,7,0,3,14,20,18,16,0,3,19,21,15,17,0,3,12,22,20,14,0,3,21,23,13,15,0,3,22,24,26,20,0,3,27,25,23,21,0,3,20,26,28,18,0,3,29,27,21,19,0,3,26,32,30,28,0,3,31,33,27,29,0,3,24,34,32,26,0,3,33,35,25,27,0,3,34,36,38,32,0,3,39,37,35,33,0,3,32,38,40,30,0,3,41,39,33,31,0,3,38,44,42,40,0,3,43,45,39,41,0,3,36,46,44,38,0,3,45,47,37,39,0,3,46,36,50,48,0,3,51,37,47,49,0,3,36,34,52,50,0,3,53,35,37,51,0,3,34,24,54,52,0,3,55,25,35,53,0,3,24,22,56,54,0,3,57,23,25,55,0,3,22,12,58,56,0,3,59,13,23,57,0,3,12,10,62,58,0,3,63,11,13,59,0,3,10,0,64,62,0,3,65,1,11,63,0,3,0,46,48,64,0,3,49,47,1,65,0,2,60,64,48,0,2,49,65,61,0,2,62,64,60,0,2,61,65,63,0,2,60,58,62,0,2,63,59,61,0,2,60,56,58,0,2,59,57,61,0,2,60,54,56,0,2,57,55,61,0,2,60,52,54,0,2,55,53,61,0,2,60,50,52,0,2,53,51,61,0,2,60,48,50,0,2,51,49,61,0,3,88,173,175,90,0,3,175,174,89,90,0,3,86,171,173,88,0,3,174,172,87,89,0,3,84,169,171,86,0,3,172,170,85,87,0,3,82,167,169,84,0,3,170,168,83,85,0,3,80,165,167,82,0,3,168,166,81,83,0,3,78,91,145,163,0,3,146,92,79,164,0,3,91,93,147,145,0,3,148,94,92,146,0,3,93,95,149,147,0,3,150,96,94,148,0,3,95,97,151,149,0,3,152,98,96,150,0,3,97,99,153,151,0,3,154,100,98,152,0,3,99,101,155,153,0,3,156,102,100,154,0,3,101,103,157,155,0,3,158,104,102,156,0,3,103,105,159,157,0,3,160,106,104,158,0,3,105,107,161,159,0,3,162,108,106,160,0,3,107,66,67,161,0,3,67,66,108,162,0,3,109,127,159,161,0,3,160,128,110,162,0,3,127,178,157,159,0,3,158,179,128,160,0,3,125,155,157,178,0,3,158,156,126,179,0,3,123,153,155,125,0,3,156,154,124,126,0,3,121,151,153,123,0,3,154,152,122,124,0,3,119,149,151,121,0,3,152,150,120,122,0,3,117,147,149,119,0,3,150,148,118,120,0,3,115,145,147,117,0,3,148,146,116,118,0,3,113,163,145,115,0,3,146,164,114,116,0,3,113,180,176,163,0,3,176,181,114,164,0,3,109,161,67,111,0,3,67,162,110,112,0,3,111,67,177,182,0,3,177,67,112,183,0,3,176,180,182,177,0,3,183,181,176,177,0,3,134,136,175,173,0,3,175,136,135,174,0,3,132,134,173,171,0,3,174,135,133,172,0,3,130,132,171,169,0,3,172,133,131,170,0,3,165,186,184,167,0,3,185,187,166,168,0,3,130,169,167,184,0,3,168,170,131,185,0,3,143,189,188,186,0,3,188,189,144,187,0,3,184,186,188,68,0,3,188,187,185,68,0,3,129,130,184,68,0,3,185,131,129,68,0,3,141,192,190,143,0,3,191,193,142,144,0,3,139,194,192,141,0,3,193,195,140,142,0,3,138,196,194,139,0,3,195,197,138,140,0,3,137,70,196,138,0,3,197,70,137,138,0,3,189,143,190,69,0,3,191,144,189,69,0,3,69,190,205,207,0,3,206,191,69,207,0,3,70,198,199,196,0,3,200,198,70,197,0,3,196,199,201,194,0,3,202,200,197,195,0,3,194,201,203,192,0,3,204,202,195,193,0,3,192,203,205,190,0,3,206,204,193,191,0,3,198,203,201,199,0,3,202,204,198,200,0,3,198,207,205,203,0,3,206,207,198,204,0,3,138,139,163,176,0,3,164,140,138,176,0,3,139,141,210,163,0,3,211,142,140,164,0,3,141,143,212,210,0,3,213,144,142,211,0,3,143,186,165,212,0,3,166,187,144,213,0,3,80,208,212,165,0,3,213,209,81,166,0,3,208,214,210,212,0,3,211,215,209,213,0,3,78,163,210,214,0,3,211,164,79,215,0,3,130,129,71,221,0,3,71,129,131,222,0,3,132,130,221,219,0,3,222,131,133,220,0,3,134,132,219,217,0,3,220,133,135,218,0,3,136,134,217,216,0,3,218,135,136,216,0,3,216,217,228,230,0,3,229,218,216,230,0,3,217,219,226,228,0,3,227,220,218,229,0,3,219,221,224,226,0,3,225,222,220,227,0,3,221,71,223,224,0,3,223,71,222,225,0,3,223,230,228,224,0,3,229,230,223,225,0,2,224,228,226,0,2,227,229,225,0,3,182,180,233,231,0,3,234,181,183,232,0,3,111,182,231,253,0,3,232,183,112,254,0,3,109,111,253,255,0,3,254,112,110,256,0,3,180,113,251,233,0,3,252,114,181,234,0,3,113,115,249,251,0,3,250,116,114,252,0,3,115,117,247,249,0,3,248,118,116,250,0,3,117,119,245,247,0,3,246,120,118,248,0,3,119,121,243,245,0,3,244,122,120,246,0,3,121,123,241,243,0,3,242,124,122,244,0,3,123,125,239,241,0,3,240,126,124,242,0,3,125,178,235,239,0,3,236,179,126,240,0,3,178,127,237,235,0,3,238,128,179,236,0,3,127,109,255,237,0,3,256,110,128,238,0,3,237,255,257,275,0,3,258,256,238,276,0,3,235,237,275,277,0,3,276,238,236,278,0,3,239,235,277,273,0,3,278,236,240,274,0,3,241,239,273,271,0,3,274,240,242,272,0,3,243,241,271,269,0,3,272,242,244,270,0,3,245,243,269,267,0,3,270,244,246,268,0,3,247,245,267,265,0,3,268,246,248,266,0,3,249,247,265,263,0,3,266,248,250,264,0,3,251,249,263,261,0,3,264,250,252,262,0,3,233,251,261,279,0,3,262,252,234,280,0,3,255,253,259,257,0,3,260,254,256,258,0,3,253,231,281,259,0,3,282,232,254,260,0,3,231,233,279,281,0,3,280,234,232,282,0,3,66,107,283,72,0,3,284,108,66,72,0,3,107,105,285,283,0,3,286,106,108,284,0,3,105,103,287,285,0,3,288,104,106,286,0,3,103,101,289,287,0,3,290,102,104,288,0,3,101,99,291,289,0,3,292,100,102,290,0,3,99,97,293,291,0,3,294,98,100,292,0,3,97,95,295,293,0,3,296,96,98,294,0,3,95,93,297,295,0,3,298,94,96,296,0,3,93,91,299,297,0,3,300,92,94,298,0,3,307,308,327,337,0,3,328,308,307,338,0,3,306,307,337,335,0,3,338,307,306,336,0,3,305,306,335,339,0,3,336,306,305,340,0,3,88,90,305,339,0,3,305,90,89,340,0,3,86,88,339,333,0,3,340,89,87,334,0,3,84,86,333,329,0,3,334,87,85,330,0,3,82,84,329,331,0,3,330,85,83,332,0,3,329,335,337,331,0,3,338,336,330,332,0,3,329,333,339,335,0,3,340,334,330,336,0,3,325,331,337,327,0,3,338,332,326,328,0,3,80,82,331,325,0,3,332,83,81,326,0,3,208,341,343,214,0,3,344,342,209,215,0,3,80,325,341,208,0,3,342,326,81,209,0,3,78,214,343,345,0,3,344,215,79,346,0,3,78,345,299,91,0,3,300,346,79,92,0,3,76,323,351,303,0,3,352,324,76,303,0,3,303,351,349,77,0,3,350,352,303,77,0,3,77,349,347,304,0,3,348,350,77,304,0,3,304,347,327,308,0,3,328,348,304,308,0,3,325,327,347,341,0,3,348,328,326,342,0,3,295,297,317,309,0,3,318,298,296,310,0,3,75,315,323,76,0,3,324,316,75,76,0,3,301,357,355,302,0,3,356,358,301,302,0,3,302,355,353,74,0,3,354,356,302,74,0,3,74,353,315,75,0,3,316,354,74,75,0,3,291,293,361,363,0,3,362,294,292,364,0,3,363,361,367,365,0,3,368,362,364,366,0,3,365,367,369,371,0,3,370,368,366,372,0,3,371,369,375,373,0,3,376,370,372,374,0,3,313,377,373,375,0,3,374,378,314,376,0,3,315,353,373,377,0,3,374,354,316,378,0,3,353,355,371,373,0,3,372,356,354,374,0,3,355,357,365,371,0,3,366,358,356,372,0,3,357,359,363,365,0,3,364,360,358,366,0,3,289,291,363,359,0,3,364,292,290,360,0,3,73,359,357,301,0,3,358,360,73,301,0,3,283,285,287,289,0,3,288,286,284,290,0,3,283,289,359,73,0,3,360,290,284,73,0,2,72,283,73,0,2,73,284,72,0,3,293,295,309,361,0,3,310,296,294,362,0,3,309,311,367,361,0,3,368,312,310,362,0,3,311,381,369,367,0,3,370,382,312,368,0,3,313,375,369,381,0,3,370,376,314,382,0,3,347,349,385,383,0,3,386,350,348,384,0,3,317,383,385,319,0,3,386,384,318,320,0,3,297,299,383,317,0,3,384,300,298,318,0,3,299,343,341,383,0,3,342,344,300,384,0,2,341,347,383,0,2,384,348,342,0,2,299,345,343,0,2,344,346,300,0,3,313,321,379,377,0,3,380,322,314,378,0,3,315,377,379,323,0,3,380,378,316,324,0,3,319,385,379,321,0,3,380,386,320,322,0,3,349,351,379,385,0,3,380,352,350,386,0,2,323,379,351,0,2,352,380,324,0,3,399,387,413,401,0,3,414,388,400,402,0,3,399,401,403,397,0,3,404,402,400,398,0,3,397,403,405,395,0,3,406,404,398,396,0,3,395,405,407,393,0,3,408,406,396,394,0,3,393,407,409,391,0,3,410,408,394,392,0,3,391,409,411,389,0,3,412,410,392,390,0,3,409,419,417,411,0,3,418,420,410,412,0,3,407,421,419,409,0,3,420,422,408,410,0,3,405,423,421,407,0,3,422,424,406,408,0,3,403,425,423,405,0,3,424,426,404,406,0,3,401,427,425,403,0,3,426,428,402,404,0,3,401,413,415,427,0,3,416,414,402,428,0,3,317,319,443,441,0,3,444,320,318,442,0,3,319,389,411,443,0,3,412,390,320,444,0,3,309,317,441,311,0,3,442,318,310,312,0,3,381,429,413,387,0,3,414,430,382,388,0,3,411,417,439,443,0,3,440,418,412,444,0,3,437,445,443,439,0,3,444,446,438,440,0,3,433,445,437,435,0,3,438,446,434,436,0,3,431,447,445,433,0,3,446,448,432,434,0,3,429,447,431,449,0,3,432,448,430,450,0,3,413,429,449,415,0,3,450,430,414,416,0,3,311,447,429,381,0,3,430,448,312,382,0,3,311,441,445,447,0,3,446,442,312,448,0,2,441,443,445,0,2,446,444,442,0,3,415,449,451,475,0,3,452,450,416,476,0,3,449,431,461,451,0,3,462,432,450,452,0,3,431,433,459,461,0,3,460,434,432,462,0,3,433,435,457,459,0,3,458,436,434,460,0,3,435,437,455,457,0,3,456,438,436,458,0,3,437,439,453,455,0,3,454,440,438,456,0,3,439,417,473,453,0,3,474,418,440,454,0,3,427,415,475,463,0,3,476,416,428,464,0,3,425,427,463,465,0,3,464,428,426,466,0,3,423,425,465,467,0,3,466,426,424,468,0,3,421,423,467,469,0,3,468,424,422,470,0,3,419,421,469,471,0,3,470,422,420,472,0,3,417,419,471,473,0,3,472,420,418,474,0,3,457,455,479,477,0,3,480,456,458,478,0,3,477,479,481,483,0,3,482,480,478,484,0,3,483,481,487,485,0,3,488,482,484,486,0,3,485,487,489,491,0,3,490,488,486,492,0,3,463,475,485,491,0,3,486,476,464,492,0,3,451,483,485,475,0,3,486,484,452,476,0,3,451,461,477,483,0,3,478,462,452,484,0,3,457,477,461,459,0,3,462,478,458,460,0,3,453,473,479,455,0,3,480,474,454,456,0,3,471,481,479,473,0,3,480,482,472,474,0,3,469,487,481,471,0,3,482,488,470,472,0,3,467,489,487,469,0,3,488,490,468,470,0,3,465,491,489,467,0,3,490,492,466,468,0,2,463,491,465,0,2,466,492,464,0,3,391,389,503,501,0,3,504,390,392,502,0,3,393,391,501,499,0,3,502,392,394,500,0,3,395,393,499,497,0,3,500,394,396,498,0,3,397,395,497,495,0,3,498,396,398,496,0,3,399,397,495,493,0,3,496,398,400,494,0,3,387,399,493,505,0,3,494,400,388,506,0,3,493,501,503,505,0,3,504,502,494,506,0,3,493,495,499,501,0,3,500,496,494,502,0,2,495,497,499,0,2,500,498,496,0,3,313,381,387,505,0,3,388,382,314,506,0,3,313,505,503,321,0,3,504,506,314,322,0,3,319,321,503,389,0,3,504,322,320,390,0], + + "edges" : [] }; postMessage( model ); +close(); diff --git a/examples/obj/blenderscene/scene.Plane.js b/examples/obj/blenderscene/scene.Plane.js index 95c58643..a5e178af 100644 --- a/examples/obj/blenderscene/scene.Plane.js +++ b/examples/obj/blenderscene/scene.Plane.js @@ -8,6 +8,7 @@ * uvs: 0 * colors: 0 * materials: 1 + * edges: 0 * */ @@ -15,6 +16,8 @@ var model = { "version" : 2, + "scale" : 1.000000, + "materials": [ { "DbgColor" : 15658734, "DbgIndex" : 0, @@ -22,13 +25,12 @@ var model = { "colorAmbient" : [0.0, 0.0, 0.0], "colorDiffuse" : [0.14462547517754842, 0.6400000190734865, 0.24541190036254967], "colorSpecular" : [0.5, 0.5, 0.5], - "shading" : "Phong", "specularCoef" : 50, "transparency" : 1.0, "vertexColors" : false }], - "vertices": [1.000000,-0.000000,-1.000000,1.000000,0.000000,1.000000,-1.000000,0.000000,1.000000,-1.000000,-0.000000,-1.000000], + "vertices": [1.000000,1.000000,0.000000,1.000000,-1.000000,0.000000,-1.000000,-1.000000,0.000000,-1.000000,1.000000,0.000000], "morphTargets": [], @@ -38,8 +40,11 @@ var model = { "uvs": [[]], - "faces": [3,0,3,2,1,0] + "faces": [3,0,3,2,1,0], + + "edges" : [] }; postMessage( model ); +close(); diff --git a/examples/obj/blenderscene/scene.js b/examples/obj/blenderscene/scene.js index bebd332e..b4299100 100644 --- a/examples/obj/blenderscene/scene.js +++ b/examples/obj/blenderscene/scene.js @@ -1,7 +1,13 @@ -// Converted from: scene.blend -// File generated with Blender 2.56 Exporter -// https://github.com/alteredq/three.js/tree/master/utils/exporters/blender/ - +/* Converted from: scene.blend + * + * File generated with Blender 2.56 Exporter + * https://github.com/alteredq/three.js/tree/master/utils/exporters/blender/ + * + * objects: 27 + * geometries: 3 + * materials: 3 + * textures: 0 + */ var scene = { @@ -15,10 +21,10 @@ var scene = { "geometry" : "geo_Cube", "groups" : [ ], "materials" : [ "Material" ], - "position" : [ 10.623673, 3.370784, -0.321692 ], - "rotation" : [ 0.005265, -0.056306, 4.717181 ], - "quaternion": [ 1.000000, 0.000000, 0.000000, 0.000000 ], - "scale" : [ 8.310000, 4.930000, 0.120000 ], + "position" : [ 10.623673, 0.321692, 3.370784 ], + "rotation" : [ 0.005265, 0.056306, 1.566005 ], + "quaternion": [ 0.708568, -0.017992, 0.021809, 0.705076 ], + "scale" : [ 8.310001, 0.120000, 4.930000 ], "visible" : true, "castsShadow" : false, "meshCollider" : false @@ -28,10 +34,10 @@ var scene = { "geometry" : "geo_Monkey", "groups" : [ ], "materials" : [ "Material.002" ], - "position" : [ 1.702659, 0.680278, 5.860421 ], - "rotation" : [ 1.413516, 0.081378, -3.204182 ], - "quaternion": [ 0.942751, 0.314982, 0.105460, -0.029764 ], - "scale" : [ 0.435837, 0.435837, 0.435837 ], + "position" : [ 1.702659, -5.860421, 0.680278 ], + "rotation" : [ 1.413516, -0.081378, -3.079003 ], + "quaternion": [ 0.050177, -0.010617, -0.649485, -0.758643 ], + "scale" : [ 0.435837, 0.435837, 0.435837 ], "visible" : true, "castsShadow" : false, "meshCollider" : false @@ -41,10 +47,10 @@ var scene = { "geometry" : "geo_Monkey", "groups" : [ ], "materials" : [ "Material.002" ], - "position" : [ 0.081295, 0.639505, 5.808783 ], - "rotation" : [ 1.413516, 0.081378, -3.204182 ], - "quaternion": [ 0.942751, 0.314982, 0.105460, -0.029764 ], - "scale" : [ 0.435837, 0.435837, 0.435837 ], + "position" : [ 0.081295, -5.808783, 0.639505 ], + "rotation" : [ 1.413516, -0.081378, -3.079003 ], + "quaternion": [ 0.050177, -0.010617, -0.649485, -0.758643 ], + "scale" : [ 0.435837, 0.435837, 0.435837 ], "visible" : true, "castsShadow" : false, "meshCollider" : false @@ -54,10 +60,10 @@ var scene = { "geometry" : "geo_Monkey", "groups" : [ ], "materials" : [ "Material.002" ], - "position" : [ -1.569030, 0.619385, 5.747240 ], - "rotation" : [ 1.413516, 0.081378, -3.204182 ], - "quaternion": [ 0.942751, 0.314982, 0.105460, -0.029764 ], - "scale" : [ 0.435837, 0.435837, 0.435837 ], + "position" : [ -1.569030, -5.747240, 0.619385 ], + "rotation" : [ 1.413516, -0.081378, -3.079003 ], + "quaternion": [ 0.050177, -0.010617, -0.649485, -0.758643 ], + "scale" : [ 0.435837, 0.435837, 0.435837 ], "visible" : true, "castsShadow" : false, "meshCollider" : false @@ -67,10 +73,10 @@ var scene = { "geometry" : "geo_Monkey", "groups" : [ ], "materials" : [ "Material.002" ], - "position" : [ -3.129120, 0.552267, 5.709269 ], - "rotation" : [ 1.413516, 0.081378, -3.204182 ], - "quaternion": [ 0.942751, 0.314982, 0.105460, -0.029764 ], - "scale" : [ 0.435837, 0.435837, 0.435837 ], + "position" : [ -3.129120, -5.709269, 0.552267 ], + "rotation" : [ 1.413516, -0.081378, -3.079003 ], + "quaternion": [ 0.050177, -0.010617, -0.649485, -0.758643 ], + "scale" : [ 0.435837, 0.435837, 0.435837 ], "visible" : true, "castsShadow" : false, "meshCollider" : false @@ -80,10 +86,10 @@ var scene = { "geometry" : "geo_Monkey", "groups" : [ ], "materials" : [ "Material.002" ], - "position" : [ -6.386331, 0.382167, 3.004400 ], - "rotation" : [ 1.646237, -0.058425, -1.670593 ], - "quaternion": [ 0.942751, 0.314982, 0.105460, -0.029764 ], - "scale" : [ 0.435837, 0.435837, 0.435837 ], + "position" : [ -6.386331, -3.004400, 0.382167 ], + "rotation" : [ 1.646237, 0.058425, 1.670594 ], + "quaternion": [ 0.471896, 0.477057, 0.556810, 0.489585 ], + "scale" : [ 0.435837, 0.435837, 0.435837 ], "visible" : true, "castsShadow" : false, "meshCollider" : false @@ -93,10 +99,10 @@ var scene = { "geometry" : "geo_Monkey", "groups" : [ ], "materials" : [ "Material.002" ], - "position" : [ -6.499331, 0.471640, 1.593073 ], - "rotation" : [ 1.646237, -0.058425, -1.670593 ], - "quaternion": [ 0.942751, 0.314982, 0.105460, -0.029764 ], - "scale" : [ 0.435837, 0.435837, 0.435837 ], + "position" : [ -6.499331, -1.593073, 0.471640 ], + "rotation" : [ 1.646237, 0.058425, 1.670594 ], + "quaternion": [ 0.471896, 0.477057, 0.556810, 0.489585 ], + "scale" : [ 0.435837, 0.435837, 0.435837 ], "visible" : true, "castsShadow" : false, "meshCollider" : false @@ -106,10 +112,10 @@ var scene = { "geometry" : "geo_Monkey", "groups" : [ ], "materials" : [ "Material.002" ], - "position" : [ -6.629794, 0.533840, 0.234131 ], - "rotation" : [ 1.646237, -0.058425, -1.670593 ], - "quaternion": [ 0.942751, 0.314982, 0.105460, -0.029764 ], - "scale" : [ 0.435837, 0.435837, 0.435837 ], + "position" : [ -6.629794, -0.234131, 0.533840 ], + "rotation" : [ 1.646237, 0.058425, 1.670594 ], + "quaternion": [ 0.471896, 0.477057, 0.556810, 0.489585 ], + "scale" : [ 0.435837, 0.435837, 0.435837 ], "visible" : true, "castsShadow" : false, "meshCollider" : false @@ -119,10 +125,10 @@ var scene = { "geometry" : "geo_Monkey", "groups" : [ ], "materials" : [ "Material.002" ], - "position" : [ -6.713673, 0.629835, -1.008146 ], - "rotation" : [ 1.646237, -0.058425, -1.670593 ], - "quaternion": [ 0.942751, 0.314982, 0.105460, -0.029764 ], - "scale" : [ 0.435837, 0.435837, 0.435837 ], + "position" : [ -6.713673, 1.008146, 0.629835 ], + "rotation" : [ 1.646237, 0.058425, 1.670594 ], + "quaternion": [ 0.471896, 0.477057, 0.556810, 0.489585 ], + "scale" : [ 0.435837, 0.435837, 0.435837 ], "visible" : true, "castsShadow" : false, "meshCollider" : false @@ -132,10 +138,10 @@ var scene = { "geometry" : "geo_Monkey", "groups" : [ ], "materials" : [ "Material.002" ], - "position" : [ -2.010442, 1.387332, 24.343616 ], - "rotation" : [ 1.520470, 0.191726, -3.004622 ], - "quaternion": [ -0.587711, 0.550951, 0.566613, 0.173203 ], - "scale" : [ 9.160007, 9.160007, 9.160008 ], + "position" : [ -2.010442, -24.343616, 1.387332 ], + "rotation" : [ -1.621122, -2.949867, -0.136972 ], + "quaternion": [ 0.016439, -0.116140, -0.679574, -0.724169 ], + "scale" : [ 9.160008, 9.160007, 9.160007 ], "visible" : true, "castsShadow" : false, "meshCollider" : false @@ -145,10 +151,10 @@ var scene = { "geometry" : "geo_Monkey", "groups" : [ ], "materials" : [ "Material.002" ], - "position" : [ -4.292194, 1.826282, -7.975398 ], - "rotation" : [ 1.594819, 0.080713, -0.213986 ], - "quaternion": [ 0.942751, 0.314982, 0.105460, -0.029764 ], - "scale" : [ 1.000000, 1.000000, 1.000000 ], + "position" : [ -4.292194, 7.975398, 1.826282 ], + "rotation" : [ 1.594819, -0.080713, 0.213986 ], + "quaternion": [ 0.690920, 0.713888, 0.048328, 0.103242 ], + "scale" : [ 1.000000, 1.000000, 1.000000 ], "visible" : true, "castsShadow" : false, "meshCollider" : false @@ -158,10 +164,10 @@ var scene = { "geometry" : "geo_Monkey", "groups" : [ ], "materials" : [ "Material.002" ], - "position" : [ 2.151757, 1.891882, -8.065320 ], - "rotation" : [ 1.594819, 0.080713, -0.213986 ], - "quaternion": [ 0.942751, 0.314982, 0.105460, -0.029764 ], - "scale" : [ 1.000000, 1.000000, 1.000000 ], + "position" : [ 2.151757, 8.065320, 1.891882 ], + "rotation" : [ 1.594819, -0.080713, 0.213986 ], + "quaternion": [ 0.690920, 0.713888, 0.048328, 0.103242 ], + "scale" : [ 1.000000, 1.000000, 1.000000 ], "visible" : true, "castsShadow" : false, "meshCollider" : false @@ -171,10 +177,10 @@ var scene = { "geometry" : "geo_Monkey", "groups" : [ ], "materials" : [ "Material.002" ], - "position" : [ -0.712512, 2.115002, -8.097841 ], - "rotation" : [ 1.594819, 0.080713, -0.213986 ], - "quaternion": [ 0.942751, 0.314982, 0.105460, -0.029764 ], - "scale" : [ 1.000000, 1.000000, 1.000000 ], + "position" : [ -0.712512, 8.097841, 2.115002 ], + "rotation" : [ 1.594819, -0.080713, 0.213986 ], + "quaternion": [ 0.690920, 0.713888, 0.048328, 0.103242 ], + "scale" : [ 1.000000, 1.000000, 1.000000 ], "visible" : true, "castsShadow" : false, "meshCollider" : false @@ -184,10 +190,10 @@ var scene = { "geometry" : "geo_Cube", "groups" : [ ], "materials" : [ "Material" ], - "position" : [ -1.000975, 1.319482, -8.755547 ], - "rotation" : [ 0.000000, 0.000000, -0.000000 ], + "position" : [ -1.000975, 8.755547, 1.319482 ], + "rotation" : [ 0.000000, -0.000000, 0.000000 ], "quaternion": [ 1.000000, 0.000000, 0.000000, 0.000000 ], - "scale" : [ 6.130000, 1.690000, 0.070000 ], + "scale" : [ 6.130000, 0.070000, 1.690000 ], "visible" : true, "castsShadow" : false, "meshCollider" : false @@ -197,10 +203,10 @@ var scene = { "geometry" : "geo_Cube", "groups" : [ ], "materials" : [ "Material" ], - "position" : [ 2.484517, 2.724846, 7.486932 ], - "rotation" : [ 0.220417, -0.075224, 0.181029 ], - "quaternion": [ 0.988791, 0.112836, 0.027288, -0.093898 ], - "scale" : [ 0.350000, 3.310000, 0.890000 ], + "position" : [ 2.484517, -7.486932, 2.724846 ], + "rotation" : [ 0.220417, 0.075224, -0.181029 ], + "quaternion": [ 0.988790, 0.112836, 0.027288, -0.093898 ], + "scale" : [ 0.350000, 0.890000, 3.309999 ], "visible" : true, "castsShadow" : false, "meshCollider" : false @@ -210,10 +216,10 @@ var scene = { "geometry" : "geo_Monkey", "groups" : [ ], "materials" : [ "Material.002" ], - "position" : [ 7.724935, 1.694883, -7.123103 ], - "rotation" : [ 1.835590, 0.083161, -2.048913 ], - "quaternion": [ -0.587711, 0.550951, 0.566613, 0.173203 ], - "scale" : [ 1.000000, 1.000000, 1.000000 ], + "position" : [ 7.724935, 7.123103, 1.694883 ], + "rotation" : [ 1.835590, -0.083161, 2.048913 ], + "quaternion": [ 0.287189, 0.433893, 0.664936, 0.535835 ], + "scale" : [ 1.000000, 1.000000, 1.000000 ], "visible" : true, "castsShadow" : false, "meshCollider" : false @@ -223,10 +229,10 @@ var scene = { "geometry" : "geo_Monkey", "groups" : [ ], "materials" : [ "Material.002" ], - "position" : [ -6.334642, 0.566791, -6.636147 ], - "rotation" : [ 1.327136, -0.032561, -4.135900 ], - "quaternion": [ -0.587711, 0.550951, 0.566613, 0.173203 ], - "scale" : [ 1.000000, 1.000000, 1.000000 ], + "position" : [ -6.334642, 6.636147, 0.566791 ], + "rotation" : [ 1.327136, 0.032561, -2.147285 ], + "quaternion": [ 0.366859, 0.304988, -0.535181, -0.697122 ], + "scale" : [ 1.000000, 1.000000, 1.000000 ], "visible" : true, "castsShadow" : false, "meshCollider" : false @@ -236,10 +242,10 @@ var scene = { "geometry" : "geo_Monkey", "groups" : [ ], "materials" : [ "Material.002" ], - "position" : [ -5.384042, 0.444915, 6.194087 ], - "rotation" : [ 0.991213, 0.181430, -5.246078 ], - "quaternion": [ -0.587711, 0.550951, 0.566613, 0.173203 ], - "scale" : [ 1.000000, 1.000000, 1.000000 ], + "position" : [ -5.384042, -6.194087, 0.444915 ], + "rotation" : [ 0.991213, -0.181430, -1.037108 ], + "quaternion": [ 0.782246, 0.371851, -0.303947, -0.396780 ], + "scale" : [ 1.000000, 1.000000, 1.000000 ], "visible" : true, "castsShadow" : false, "meshCollider" : false @@ -249,10 +255,10 @@ var scene = { "geometry" : "geo_Monkey", "groups" : [ ], "materials" : [ "Material.002" ], - "position" : [ 3.147747, 1.014840, 4.230884 ], - "rotation" : [ 1.719311, -0.307044, -3.355401 ], - "quaternion": [ -0.587711, 0.550951, 0.566613, 0.173203 ], - "scale" : [ 1.000000, 1.000000, 1.000000 ], + "position" : [ 3.147747, -4.230884, 1.014840 ], + "rotation" : [ -1.422281, 2.834549, 0.213809 ], + "quaternion": [ 0.046369, -0.179128, 0.733783, 0.653701 ], + "scale" : [ 1.000000, 1.000000, 1.000000 ], "visible" : true, "castsShadow" : false, "meshCollider" : false @@ -262,10 +268,10 @@ var scene = { "geometry" : "geo_Monkey", "groups" : [ ], "materials" : [ "Material.002" ], - "position" : [ -2.668043, 3.008879, 2.153389 ], - "rotation" : [ 1.881970, 0.457870, 4.066133 ], - "quaternion": [ 0.942751, 0.314982, 0.105460, -0.029764 ], - "scale" : [ 1.000000, 1.000000, 1.000000 ], + "position" : [ -2.668043, -2.153389, 3.008879 ], + "rotation" : [ 1.881970, -0.457870, 2.217052 ], + "quaternion": [ 0.091675, 0.470648, 0.644833, 0.595211 ], + "scale" : [ 1.000000, 1.000000, 1.000000 ], "visible" : true, "castsShadow" : false, "meshCollider" : false @@ -275,10 +281,10 @@ var scene = { "geometry" : "geo_Cube", "groups" : [ ], "materials" : [ "Material" ], - "position" : [ -3.031251, 0.702044, 1.943665 ], - "rotation" : [ -1.300741, -1.330343, 3.282723 ], - "quaternion": [ 1.000000, 0.000000, 0.000000, 0.000000 ], - "scale" : [ 1.781142, 0.231142, 0.361142 ], + "position" : [ -3.031251, -1.943665, 0.702044 ], + "rotation" : [ 1.840851, 1.811250, -0.141131 ], + "quaternion": [ 0.328619, 0.523567, 0.440581, -0.650981 ], + "scale" : [ 1.781142, 0.361142, 0.231142 ], "visible" : true, "castsShadow" : false, "meshCollider" : false @@ -288,10 +294,10 @@ var scene = { "geometry" : "geo_Monkey", "groups" : [ ], "materials" : [ "Material.002" ], - "position" : [ 1.245307, 0.620196, -0.137285 ], - "rotation" : [ 2.339869, -0.286025, -1.394760 ], - "quaternion": [ -0.587711, 0.550951, 0.566613, 0.173203 ], - "scale" : [ 1.000000, 1.000000, 1.000000 ], + "position" : [ 1.245307, 0.137285, 0.620196 ], + "rotation" : [ 2.339869, 0.286025, 1.394760 ], + "quaternion": [ 0.380330, 0.662839, 0.627894, 0.147451 ], + "scale" : [ 1.000000, 1.000000, 1.000000 ], "visible" : true, "castsShadow" : false, "meshCollider" : false @@ -301,10 +307,10 @@ var scene = { "geometry" : "geo_Monkey", "groups" : [ ], "materials" : [ "Material.002" ], - "position" : [ -0.282500, 1.813606, -4.272932 ], - "rotation" : [ 0.646062, -0.219349, -0.010569 ], + "position" : [ -0.282500, 4.272932, 1.813606 ], + "rotation" : [ 0.646062, 0.219349, 0.010569 ], "quaternion": [ 0.942751, 0.314982, 0.105460, -0.029764 ], - "scale" : [ 1.000000, 1.000000, 1.000000 ], + "scale" : [ 1.000000, 1.000000, 1.000000 ], "visible" : true, "castsShadow" : false, "meshCollider" : false @@ -314,10 +320,10 @@ var scene = { "geometry" : "geo_Cube", "groups" : [ ], "materials" : [ "Material" ], - "position" : [ 0.042212, 5.536832, -0.199037 ], - "rotation" : [ 0.000000, 0.000000, -0.000000 ], + "position" : [ 0.042212, 0.199037, 5.536832 ], + "rotation" : [ 0.000000, -0.000000, 0.000000 ], "quaternion": [ 1.000000, 0.000000, 0.000000, 0.000000 ], - "scale" : [ 1.000000, 1.000000, 1.000000 ], + "scale" : [ 1.000000, 1.000000, 1.000000 ], "visible" : true, "castsShadow" : false, "meshCollider" : false @@ -327,10 +333,10 @@ var scene = { "geometry" : "geo_Cube", "groups" : [ ], "materials" : [ "Material" ], - "position" : [ -0.395497, 1.009696, -3.944532 ], - "rotation" : [ 0.000000, 0.000000, -0.000000 ], + "position" : [ -0.395497, 3.944532, 1.009696 ], + "rotation" : [ 0.000000, -0.000000, 0.000000 ], "quaternion": [ 1.000000, 0.000000, 0.000000, 0.000000 ], - "scale" : [ 1.000000, 1.000000, 1.000000 ], + "scale" : [ 1.000000, 1.000000, 1.000000 ], "visible" : true, "castsShadow" : false, "meshCollider" : false @@ -340,10 +346,10 @@ var scene = { "geometry" : "geo_Plane", "groups" : [ ], "materials" : [ "Material.001" ], - "position" : [ 0.000000, 0.000000, 0.118260 ], - "rotation" : [ 0.000000, 0.000000, -0.000000 ], + "position" : [ 0.000000, -0.118260, 0.000000 ], + "rotation" : [ 0.000000, -0.000000, 0.000000 ], "quaternion": [ 1.000000, 0.000000, 0.000000, 0.000000 ], - "scale" : [ 7.922787, 7.922787, 7.922787 ], + "scale" : [ 7.922787, 7.922787, 7.922787 ], "visible" : true, "castsShadow" : false, "meshCollider" : false @@ -353,10 +359,10 @@ var scene = { "geometry" : "geo_Cube", "groups" : [ ], "materials" : [ "Material" ], - "position" : [ 3.651978, 1.071144, 0.000000 ], - "rotation" : [ 0.220417, -0.075224, 0.181029 ], - "quaternion": [ 0.988791, 0.112836, 0.027288, -0.093898 ], - "scale" : [ 1.000000, 1.000000, 1.000000 ], + "position" : [ 3.651978, -0.000000, 1.071144 ], + "rotation" : [ 0.220417, 0.075224, -0.181029 ], + "quaternion": [ 0.988790, 0.112836, 0.027288, -0.093898 ], + "scale" : [ 1.000000, 1.000000, 1.000000 ], "visible" : true, "castsShadow" : false, "meshCollider" : false @@ -418,15 +424,22 @@ var scene = { "lights" : { - "default_light": { - "type" : "directional", - "direction" : [ 0.000000, 1.000000, 1.000000 ], - "color" : 16777215, - "intensity" : 0.80 - } + "default_light": { + "type" : "directional", + "direction" : [ 0.000000, 1.000000, 1.000000 ], + "color" : 16777215, + "intensity" : 0.80 + } }, +"transform" : +{ + "position" : [ 0.000000, 0.000000, 0.000000 ], + "rotation" : [ -1.570796, 0.000000, 0.000000 ], + "scale" : [ 1.000000, 1.000000, 1.000000 ], +}, + "defaults" : { "bgcolor" : [ 0.000000, 0.000000, 0.000000 ], @@ -437,4 +450,4 @@ var scene = { } postMessage( scene ); - +close(); diff --git a/examples/obj/camaro/CamaroNoUv_bin.js b/examples/obj/camaro/CamaroNoUv_bin.js index 0fbb42b7..27f5acfb 100644 --- a/examples/obj/camaro/CamaroNoUv_bin.js +++ b/examples/obj/camaro/CamaroNoUv_bin.js @@ -1,133 +1,136 @@ // Converted from: ../../examples/obj/camaro/CamaroNoUv.obj // vertices: 53139 -// faces: 93251 +// faces: 93251 // materials: 9 // // Generated with OBJ -> Three.js converter -// http://github.com/alteredq/three.js/blob/master/utils/exporters/convert_obj_threejs_slim.py +// http://github.com/alteredq/three.js/blob/master/utils/exporters/convert_obj_three.py var model = { - 'materials': [ { - "a_dbg_color" : 0xeeeeee, - "a_dbg_index" : 0, - "a_dbg_name" : "Body", - "col_ambient" : [0.0, 0.0, 0.0], - "col_diffuse" : [0.22700000000000001, 0.40799999999999997, 0.46300000000000002], - "col_specular" : [2.0, 2.0, 2.0], + + "version" : 1, + + "materials": [ { + "DbgColor" : 15658734, + "DbgIndex" : 0, + "DbgName" : "Body", + "colorAmbient" : [0.0, 0.0, 0.0], + "colorDiffuse" : [0.22700000000000001, 0.40799999999999997, 0.46300000000000002], + "colorSpecular" : [2.0, 2.0, 2.0], "illumination" : 2, - "optical_density" : 1.0, - "specular_coef" : 782.352941, + "opticalDensity" : 1.0, + "specularCoef" : 782.352941, "transparency" : 1.0 }, { - "a_dbg_color" : 0xee0000, - "a_dbg_index" : 1, - "a_dbg_name" : "mirror", - "col_ambient" : [0.0, 0.0, 0.0], - "col_diffuse" : [0.29999999999999999, 0.29999999999999999, 0.29999999999999999], - "col_specular" : [2.0, 2.0, 2.0], + "DbgColor" : 15597568, + "DbgIndex" : 1, + "DbgName" : "mirror", + "colorAmbient" : [0.0, 0.0, 0.0], + "colorDiffuse" : [0.29999999999999999, 0.29999999999999999, 0.29999999999999999], + "colorSpecular" : [2.0, 2.0, 2.0], "illumination" : 2, - "optical_density" : 1.0, - "specular_coef" : 782.352941, + "opticalDensity" : 1.0, + "specularCoef" : 782.352941, "transparency" : 1.0 }, { - "a_dbg_color" : 0x00ee00, - "a_dbg_index" : 2, - "a_dbg_name" : "black", - "col_ambient" : [0.0, 0.0, 0.0], - "col_diffuse" : [0.10199999999999999, 0.10199999999999999, 0.10199999999999999], - "col_specular" : [0.20000000000000001, 0.20000000000000001, 0.20000000000000001], + "DbgColor" : 60928, + "DbgIndex" : 2, + "DbgName" : "black", + "colorAmbient" : [0.0, 0.0, 0.0], + "colorDiffuse" : [0.10199999999999999, 0.10199999999999999, 0.10199999999999999], + "colorSpecular" : [0.20000000000000001, 0.20000000000000001, 0.20000000000000001], "illumination" : 2, - "optical_density" : 1.0, - "specular_coef" : 7.843137, + "opticalDensity" : 1.0, + "specularCoef" : 7.843137, "transparency" : 1.0 }, { - "a_dbg_color" : 0x0000ee, - "a_dbg_index" : 3, - "a_dbg_name" : "mizo", - "col_ambient" : [0.0, 0.0, 0.0], - "col_diffuse" : [0.0, 0.0, 0.0], - "col_specular" : [0.0, 0.0, 0.0], + "DbgColor" : 238, + "DbgIndex" : 3, + "DbgName" : "mizo", + "colorAmbient" : [0.0, 0.0, 0.0], + "colorDiffuse" : [0.0, 0.0, 0.0], + "colorSpecular" : [0.0, 0.0, 0.0], "illumination" : 1, - "optical_density" : 1.0, - "specular_coef" : 0.0, + "opticalDensity" : 1.0, + "specularCoef" : 0.0, "transparency" : 1.0 }, { - "a_dbg_color" : 0xeeee00, - "a_dbg_index" : 4, - "a_dbg_name" : "glass", - "col_ambient" : [0.0, 0.0, 0.0], - "col_diffuse" : [0.20000000000000001, 0.31, 0.30599999999999999], - "col_specular" : [2.0, 2.0, 2.0], + "DbgColor" : 15658496, + "DbgIndex" : 4, + "DbgName" : "glass", + "colorAmbient" : [0.0, 0.0, 0.0], + "colorDiffuse" : [0.20000000000000001, 0.31, 0.30599999999999999], + "colorSpecular" : [2.0, 2.0, 2.0], "illumination" : 2, - "optical_density" : 1.0, - "specular_coef" : 782.352941, + "opticalDensity" : 1.0, + "specularCoef" : 782.352941, "transparency" : 0.34 }, { - "a_dbg_color" : 0x00eeee, - "a_dbg_index" : 5, - "a_dbg_name" : "Interieur", - "col_ambient" : [0.0, 0.0, 0.0], - "col_diffuse" : [0.10199999999999999, 0.10199999999999999, 0.10199999999999999], - "col_specular" : [0.44, 0.44, 0.44], + "DbgColor" : 61166, + "DbgIndex" : 5, + "DbgName" : "Interieur", + "colorAmbient" : [0.0, 0.0, 0.0], + "colorDiffuse" : [0.10199999999999999, 0.10199999999999999, 0.10199999999999999], + "colorSpecular" : [0.44, 0.44, 0.44], "illumination" : 2, - "optical_density" : 1.0, - "specular_coef" : 98.039216, + "opticalDensity" : 1.0, + "specularCoef" : 98.039216, "transparency" : 1.0 }, { - "a_dbg_color" : 0xee00ee, - "a_dbg_index" : 6, - "a_dbg_name" : "tire", - "col_ambient" : [0.0, 0.0, 0.0], - "col_diffuse" : [0.27100000000000002, 0.27100000000000002, 0.26300000000000001], - "col_specular" : [0.10000000000000001, 0.10000000000000001, 0.10000000000000001], + "DbgColor" : 15597806, + "DbgIndex" : 6, + "DbgName" : "tire", + "colorAmbient" : [0.0, 0.0, 0.0], + "colorDiffuse" : [0.27100000000000002, 0.27100000000000002, 0.26300000000000001], + "colorSpecular" : [0.10000000000000001, 0.10000000000000001, 0.10000000000000001], "illumination" : 2, - "optical_density" : 1.0, - "specular_coef" : 17.647059, + "opticalDensity" : 1.0, + "specularCoef" : 17.647059, "transparency" : 1.0 }, { - "a_dbg_color" : 0x392456, - "a_dbg_index" : 7, - "a_dbg_name" : "tireling", - "col_ambient" : [0.0, 0.0, 0.0], - "col_diffuse" : [0.5, 0.5, 0.5], - "col_specular" : [0.20000000000000001, 0.20000000000000001, 0.20000000000000001], + "DbgColor" : 3744854, + "DbgIndex" : 7, + "DbgName" : "tireling", + "colorAmbient" : [0.0, 0.0, 0.0], + "colorDiffuse" : [0.5, 0.5, 0.5], + "colorSpecular" : [0.20000000000000001, 0.20000000000000001, 0.20000000000000001], "illumination" : 2, - "optical_density" : 1.0, - "specular_coef" : 17.647059, + "opticalDensity" : 1.0, + "specularCoef" : 17.647059, "transparency" : 1.0 }, { - "a_dbg_color" : 0x466852, - "a_dbg_index" : 8, - "a_dbg_name" : "black2", - "col_ambient" : [0.0, 0.0, 0.0], - "col_diffuse" : [0.0, 0.0, 0.0], - "col_specular" : [0.0, 0.0, 0.0], + "DbgColor" : 4614226, + "DbgIndex" : 8, + "DbgName" : "black2", + "colorAmbient" : [0.0, 0.0, 0.0], + "colorDiffuse" : [0.0, 0.0, 0.0], + "colorSpecular" : [0.0, 0.0, 0.0], "illumination" : 1, - "optical_density" : 1.0, - "specular_coef" : 0.0, + "opticalDensity" : 1.0, + "specularCoef" : 0.0, "transparency" : 1.0 }], - 'buffers': 'CamaroNoUv_bin.bin', + "buffers": "CamaroNoUv_bin.bin" - 'end': (new Date).getTime() - } +}; postMessage( model ); +close(); diff --git a/examples/obj/cubecolors/cube_fvc.blend b/examples/obj/cubecolors/cube_fvc.blend index e690d784..26a027c3 100644 Binary files a/examples/obj/cubecolors/cube_fvc.blend and b/examples/obj/cubecolors/cube_fvc.blend differ diff --git a/examples/obj/cubecolors/cube_fvc.js b/examples/obj/cubecolors/cube_fvc.js index a6f6c132..638e44a1 100644 --- a/examples/obj/cubecolors/cube_fvc.js +++ b/examples/obj/cubecolors/cube_fvc.js @@ -8,6 +8,7 @@ * uvs: 0 * colors: 22 * materials: 1 + * edges: 0 * */ @@ -15,6 +16,8 @@ var model = { "version" : 2, + "scale" : 1.000000, + "materials": [ { "DbgColor" : 15658734, "DbgIndex" : 0, @@ -22,13 +25,12 @@ var model = { "colorAmbient" : [0.0, 0.0, 0.0], "colorDiffuse" : [0.800000011920929, 0.800000011920929, 0.800000011920929], "colorSpecular" : [0.5, 0.5, 0.5], - "shading" : "Phong", "specularCoef" : 50, "transparency" : 1.0, "vertexColors" : true }], - "vertices": [1.000000,-1.000000,-1.000000,1.000000,-1.000000,1.000000,-1.000000,-1.000000,1.000000,-1.000000,-1.000000,-1.000000,1.000000,1.000000,-1.000000,0.999999,1.000000,1.000000,-1.000000,1.000000,0.999999,-1.000000,1.000000,-1.000000], + "vertices": [1.000000,-1.000000,-1.000000,1.000000,-1.000000,1.000000,-1.000000,-1.000000,1.000000,-1.000000,-1.000000,-1.000000,1.000000,1.000000,-1.000000,0.999999,1.000000,1.000001,-1.000000,1.000000,1.000000,-1.000000,1.000000,-1.000000], "morphTargets": [], @@ -38,8 +40,11 @@ var model = { "uvs": [[]], - "faces": [131,0,1,2,3,0,0,1,2,3,131,4,7,6,5,0,4,5,6,7,131,0,4,5,1,0,0,8,9,10,131,1,5,6,2,0,0,11,12,13,131,2,6,7,3,0,14,15,16,17,131,4,0,3,7,0,18,19,20,21] + "faces": [131,0,1,2,3,0,0,1,2,3,131,4,7,6,5,0,4,5,6,7,131,0,4,5,1,0,0,8,9,10,131,1,5,6,2,0,0,11,12,13,131,2,6,7,3,0,14,15,16,17,131,4,0,3,7,0,18,19,20,21], + + "edges" : [] }; postMessage( model ); +close(); diff --git a/examples/obj/cubecolors/cubecolors.blend b/examples/obj/cubecolors/cubecolors.blend index c46e779c..1103ffc3 100644 Binary files a/examples/obj/cubecolors/cubecolors.blend and b/examples/obj/cubecolors/cubecolors.blend differ diff --git a/examples/obj/cubecolors/cubecolors.js b/examples/obj/cubecolors/cubecolors.js index 703247ed..5ce4ee9e 100644 --- a/examples/obj/cubecolors/cubecolors.js +++ b/examples/obj/cubecolors/cubecolors.js @@ -8,6 +8,7 @@ * uvs: 0 * colors: 1315 * materials: 1 + * edges: 0 * */ @@ -15,6 +16,8 @@ var model = { "version" : 2, + "scale" : 1.000000, + "materials": [ { "DbgColor" : 15658734, "DbgIndex" : 0, @@ -22,13 +25,12 @@ var model = { "colorAmbient" : [0.0, 0.0, 0.0], "colorDiffuse" : [1.0, 1.0, 1.0], "colorSpecular" : [0.0, 0.0, 0.0], - "shading" : "Lambert", "specularCoef" : 50, "transparency" : 1.0, "vertexColors" : true }], - "vertices": [-0.000000,-1.000000,-0.000000,0.125000,-1.000000,-0.000000,0.250000,-1.000000,-0.000000,0.375000,-1.000000,-0.000000,0.500000,-1.000000,-0.000000,0.625000,-1.000000,-0.000000,0.750000,-1.000000,-0.000000,0.875000,-1.000000,-0.000000,-0.000000,-1.000000,0.125000,-0.000000,-1.000000,0.250000,-0.000000,-1.000000,0.375000,-0.000000,-1.000000,0.500000,-0.000000,-1.000000,0.625000,-0.000000,-1.000000,0.750000,-0.000000,-1.000000,0.875000,-0.125000,-1.000000,-0.000000,-0.250000,-1.000000,-0.000000,-0.375000,-1.000000,-0.000000,-0.500000,-1.000000,-0.000000,-0.625000,-1.000000,-0.000000,-0.750000,-1.000000,-0.000000,-0.875000,-1.000000,-0.000000,0.000000,-1.000000,-0.125000,0.000000,-1.000000,-0.250000,0.000000,-1.000000,-0.375000,0.000000,-1.000000,-0.500000,0.000000,-1.000000,-0.625000,0.000000,-1.000000,-0.750000,0.000000,-1.000000,-0.875000,0.125000,-1.000000,-0.125000,0.250000,-1.000000,-0.125000,0.375000,-1.000000,-0.125000,0.500000,-1.000000,-0.125000,0.625000,-1.000000,-0.125000,0.750000,-1.000000,-0.125000,0.875000,-1.000000,-0.125000,0.125000,-1.000000,-0.250000,0.250000,-1.000000,-0.250000,0.375000,-1.000000,-0.250000,0.500000,-1.000000,-0.250000,0.625000,-1.000000,-0.250000,0.750000,-1.000000,-0.250000,0.875000,-1.000000,-0.250000,0.125000,-1.000000,-0.375000,0.250000,-1.000000,-0.375000,0.375000,-1.000000,-0.375000,0.500000,-1.000000,-0.375000,0.625000,-1.000000,-0.375000,0.750000,-1.000000,-0.375000,0.875000,-1.000000,-0.375000,0.125000,-1.000000,-0.500000,0.250000,-1.000000,-0.500000,0.375000,-1.000000,-0.500000,0.500000,-1.000000,-0.500000,0.625000,-1.000000,-0.500000,0.750000,-1.000000,-0.500000,0.875000,-1.000000,-0.500000,0.125000,-1.000000,-0.625000,0.250000,-1.000000,-0.625000,0.375000,-1.000000,-0.625000,0.500000,-1.000000,-0.625000,0.625000,-1.000000,-0.625000,0.750000,-1.000000,-0.625000,0.875000,-1.000000,-0.625000,0.125000,-1.000000,-0.750000,0.250000,-1.000000,-0.750000,0.375000,-1.000000,-0.750000,0.500000,-1.000000,-0.750000,0.625000,-1.000000,-0.750000,0.750000,-1.000000,-0.750000,0.875000,-1.000000,-0.750000,0.125000,-1.000000,-0.875000,0.250000,-1.000000,-0.875000,0.375000,-1.000000,-0.875000,0.500000,-1.000000,-0.875000,0.625000,-1.000000,-0.875000,0.750000,-1.000000,-0.875000,0.875000,-1.000000,-0.875000,0.125000,-1.000000,0.125000,0.125000,-1.000000,0.250000,0.125000,-1.000000,0.375000,0.125000,-1.000000,0.500000,0.125000,-1.000000,0.625000,0.125000,-1.000000,0.750000,0.125000,-1.000000,0.875000,0.250000,-1.000000,0.125000,0.250000,-1.000000,0.250000,0.250000,-1.000000,0.375000,0.250000,-1.000000,0.500000,0.250000,-1.000000,0.625000,0.250000,-1.000000,0.750000,0.250000,-1.000000,0.875000,0.375000,-1.000000,0.125000,0.375000,-1.000000,0.250000,0.375000,-1.000000,0.375000,0.375000,-1.000000,0.500000,0.375000,-1.000000,0.625000,0.375000,-1.000000,0.750000,0.375000,-1.000000,0.875000,0.500000,-1.000000,0.125000,0.500000,-1.000000,0.250000,0.500000,-1.000000,0.375000,0.500000,-1.000000,0.500000,0.500000,-1.000000,0.625000,0.500000,-1.000000,0.750000,0.500000,-1.000000,0.875000,0.625000,-1.000000,0.125000,0.625000,-1.000000,0.250000,0.625000,-1.000000,0.375000,0.625000,-1.000000,0.500000,0.625000,-1.000000,0.625000,0.625000,-1.000000,0.750000,0.625000,-1.000000,0.875000,0.750000,-1.000000,0.125000,0.750000,-1.000000,0.250000,0.750000,-1.000000,0.375000,0.750000,-1.000000,0.500000,0.750000,-1.000000,0.625000,0.750000,-1.000000,0.750000,0.750000,-1.000000,0.875000,0.875000,-1.000000,0.125000,0.875000,-1.000000,0.250000,0.875000,-1.000000,0.375000,0.875000,-1.000000,0.500000,0.875000,-1.000000,0.625000,0.875000,-1.000000,0.750000,0.875000,-1.000000,0.875000,-0.125000,-1.000000,0.125000,-0.250000,-1.000000,0.125000,-0.375000,-1.000000,0.125000,-0.500000,-1.000000,0.125000,-0.625000,-1.000000,0.125000,-0.750000,-1.000000,0.125000,-0.875000,-1.000000,0.125000,-0.125000,-1.000000,0.250000,-0.250000,-1.000000,0.250000,-0.375000,-1.000000,0.250000,-0.500000,-1.000000,0.250000,-0.625000,-1.000000,0.250000,-0.750000,-1.000000,0.250000,-0.875000,-1.000000,0.250000,-0.125000,-1.000000,0.375000,-0.250000,-1.000000,0.375000,-0.375000,-1.000000,0.375000,-0.500000,-1.000000,0.375000,-0.625000,-1.000000,0.375000,-0.750000,-1.000000,0.375000,-0.875000,-1.000000,0.375000,-0.125000,-1.000000,0.500000,-0.250000,-1.000000,0.500000,-0.375000,-1.000000,0.500000,-0.500000,-1.000000,0.500000,-0.625000,-1.000000,0.500000,-0.750000,-1.000000,0.500000,-0.875000,-1.000000,0.500000,-0.125000,-1.000000,0.625000,-0.250000,-1.000000,0.625000,-0.375000,-1.000000,0.625000,-0.500000,-1.000000,0.625000,-0.625000,-1.000000,0.625000,-0.750000,-1.000000,0.625000,-0.875000,-1.000000,0.625000,-0.125000,-1.000000,0.750000,-0.250000,-1.000000,0.750000,-0.375000,-1.000000,0.750000,-0.500000,-1.000000,0.750000,-0.625000,-1.000000,0.750000,-0.750000,-1.000000,0.750000,-0.875000,-1.000000,0.750000,-0.125000,-1.000000,0.875000,-0.250000,-1.000000,0.875000,-0.375000,-1.000000,0.875000,-0.500000,-1.000000,0.875000,-0.625000,-1.000000,0.875000,-0.750000,-1.000000,0.875000,-0.875000,-1.000000,0.875000,-0.125000,-1.000000,-0.125000,-0.125000,-1.000000,-0.250000,-0.125000,-1.000000,-0.375000,-0.125000,-1.000000,-0.500000,-0.125000,-1.000000,-0.625000,-0.125000,-1.000000,-0.750000,-0.125000,-1.000000,-0.875000,-0.250000,-1.000000,-0.125000,-0.250000,-1.000000,-0.250000,-0.250000,-1.000000,-0.375000,-0.250000,-1.000000,-0.500000,-0.250000,-1.000000,-0.625000,-0.250000,-1.000000,-0.750000,-0.250000,-1.000000,-0.875000,-0.375000,-1.000000,-0.125000,-0.375000,-1.000000,-0.250000,-0.375000,-1.000000,-0.375000,-0.375000,-1.000000,-0.500000,-0.375000,-1.000000,-0.625000,-0.375000,-1.000000,-0.750000,-0.375000,-1.000000,-0.875000,-0.500000,-1.000000,-0.125000,-0.500000,-1.000000,-0.250000,-0.500000,-1.000000,-0.375000,-0.500000,-1.000000,-0.500000,-0.500000,-1.000000,-0.625000,-0.500000,-1.000000,-0.750000,-0.500000,-1.000000,-0.875000,-0.625000,-1.000000,-0.125000,-0.625000,-1.000000,-0.250000,-0.625000,-1.000000,-0.375000,-0.625000,-1.000000,-0.500000,-0.625000,-1.000000,-0.625000,-0.625000,-1.000000,-0.750000,-0.625000,-1.000000,-0.875000,-0.750000,-1.000000,-0.125000,-0.750000,-1.000000,-0.250000,-0.750000,-1.000000,-0.375000,-0.750000,-1.000000,-0.500000,-0.750000,-1.000000,-0.625000,-0.750000,-1.000000,-0.750000,-0.750000,-1.000000,-0.875000,-0.875000,-1.000000,-0.125000,-0.875000,-1.000000,-0.250000,-0.875000,-1.000000,-0.375000,-0.875000,-1.000000,-0.500000,-0.875000,-1.000000,-0.625000,-0.875000,-1.000000,-0.750000,-0.875000,-1.000000,-0.875000,-0.000000,1.000000,0.000000,-0.000000,1.000000,-0.125000,-0.000000,1.000000,-0.250000,-0.000000,1.000000,-0.375000,0.000000,1.000000,-0.500000,0.000000,1.000000,-0.625000,0.000000,1.000000,-0.750000,0.000000,1.000000,-0.875000,-0.125000,1.000000,-0.000000,-0.250000,1.000000,-0.000000,-0.375000,1.000000,-0.000000,-0.500000,1.000000,-0.000000,-0.625000,1.000000,-0.000000,-0.750000,1.000000,-0.000000,-0.875000,1.000000,-0.000000,-0.000000,1.000000,0.125000,-0.000000,1.000000,0.250000,-0.000000,1.000000,0.375000,-0.000000,1.000000,0.500000,-0.000000,1.000000,0.625000,-0.000000,1.000000,0.750000,-0.000001,1.000000,0.875000,0.125000,1.000000,0.000000,0.250000,1.000000,0.000000,0.375000,1.000000,0.000000,0.500000,1.000000,0.000000,0.625000,1.000000,0.000000,0.750000,1.000000,0.000000,0.875000,1.000000,0.000000,0.125000,1.000000,-0.125000,0.125000,1.000000,-0.250000,0.125000,1.000000,-0.375000,0.125000,1.000000,-0.500000,0.125000,1.000000,-0.625000,0.125000,1.000000,-0.750000,0.125000,1.000000,-0.875000,0.250000,1.000000,-0.125000,0.250000,1.000000,-0.250000,0.250000,1.000000,-0.375000,0.250000,1.000000,-0.500000,0.250000,1.000000,-0.625000,0.250000,1.000000,-0.750000,0.250000,1.000000,-0.875000,0.375000,1.000000,-0.125000,0.375000,1.000000,-0.250000,0.375000,1.000000,-0.375000,0.375000,1.000000,-0.500000,0.375000,1.000000,-0.625000,0.375000,1.000000,-0.750000,0.375000,1.000000,-0.875000,0.500000,1.000000,-0.125000,0.500000,1.000000,-0.250000,0.500000,1.000000,-0.375000,0.500000,1.000000,-0.500000,0.500000,1.000000,-0.625000,0.500000,1.000000,-0.750000,0.500000,1.000000,-0.875000,0.625000,1.000000,-0.125000,0.625000,1.000000,-0.250000,0.625000,1.000000,-0.375000,0.625000,1.000000,-0.500000,0.625000,1.000000,-0.625000,0.625000,1.000000,-0.750000,0.625000,1.000000,-0.875000,0.750000,1.000000,-0.125000,0.750000,1.000000,-0.250000,0.750000,1.000000,-0.375000,0.750000,1.000000,-0.500000,0.750000,1.000000,-0.625000,0.750000,1.000000,-0.750000,0.750000,1.000000,-0.875000,0.875000,1.000000,-0.125000,0.875000,1.000000,-0.250000,0.875000,1.000000,-0.375000,0.875000,1.000000,-0.500000,0.875000,1.000000,-0.625000,0.875000,1.000000,-0.750000,0.875000,1.000000,-0.875000,-0.125000,1.000000,-0.125000,-0.250000,1.000000,-0.125000,-0.375000,1.000000,-0.125000,-0.500000,1.000000,-0.125000,-0.625000,1.000000,-0.125000,-0.750000,1.000000,-0.125000,-0.875000,1.000000,-0.125000,-0.125000,1.000000,-0.250000,-0.250000,1.000000,-0.250000,-0.375000,1.000000,-0.250000,-0.500000,1.000000,-0.250000,-0.625000,1.000000,-0.250000,-0.750000,1.000000,-0.250000,-0.875000,1.000000,-0.250000,-0.125000,1.000000,-0.375000,-0.250000,1.000000,-0.375000,-0.375000,1.000000,-0.375000,-0.500000,1.000000,-0.375000,-0.625000,1.000000,-0.375000,-0.750000,1.000000,-0.375000,-0.875000,1.000000,-0.375000,-0.125000,1.000000,-0.500000,-0.250000,1.000000,-0.500000,-0.375000,1.000000,-0.500000,-0.500000,1.000000,-0.500000,-0.625000,1.000000,-0.500000,-0.750000,1.000000,-0.500000,-0.875000,1.000000,-0.500000,-0.125000,1.000000,-0.625000,-0.250000,1.000000,-0.625000,-0.375000,1.000000,-0.625000,-0.500000,1.000000,-0.625000,-0.625000,1.000000,-0.625000,-0.750000,1.000000,-0.625000,-0.875000,1.000000,-0.625000,-0.125000,1.000000,-0.750000,-0.250000,1.000000,-0.750000,-0.375000,1.000000,-0.750000,-0.500000,1.000000,-0.750000,-0.625000,1.000000,-0.750000,-0.750000,1.000000,-0.750000,-0.875000,1.000000,-0.750000,-0.125000,1.000000,-0.875000,-0.250000,1.000000,-0.875000,-0.375000,1.000000,-0.875000,-0.500000,1.000000,-0.875000,-0.625000,1.000000,-0.875000,-0.750000,1.000000,-0.875000,-0.875000,1.000000,-0.875000,-0.125000,1.000000,0.125000,-0.125000,1.000000,0.250000,-0.125000,1.000000,0.375000,-0.125000,1.000000,0.500000,-0.125000,1.000000,0.625000,-0.125000,1.000000,0.750000,-0.125001,1.000000,0.875000,-0.250000,1.000000,0.125000,-0.250000,1.000000,0.250000,-0.250000,1.000000,0.375000,-0.250000,1.000000,0.500000,-0.250000,1.000000,0.625000,-0.250000,1.000000,0.750000,-0.250000,1.000000,0.875000,-0.375000,1.000000,0.125000,-0.375000,1.000000,0.250000,-0.375000,1.000000,0.375000,-0.375000,1.000000,0.500000,-0.375000,1.000000,0.625000,-0.375000,1.000000,0.750000,-0.375000,1.000000,0.875000,-0.500000,1.000000,0.125000,-0.500000,1.000000,0.250000,-0.500000,1.000000,0.375000,-0.500000,1.000000,0.500000,-0.500000,1.000000,0.625000,-0.500000,1.000000,0.750000,-0.500000,1.000000,0.875000,-0.625000,1.000000,0.125000,-0.625000,1.000000,0.250000,-0.625000,1.000000,0.375000,-0.625000,1.000000,0.500000,-0.625000,1.000000,0.625000,-0.625000,1.000000,0.750000,-0.625000,1.000000,0.875000,-0.750000,1.000000,0.125000,-0.750000,1.000000,0.250000,-0.750000,1.000000,0.375000,-0.750000,1.000000,0.500000,-0.750000,1.000000,0.625000,-0.750000,1.000000,0.750000,-0.750000,1.000000,0.875000,-0.875000,1.000000,0.125000,-0.875000,1.000000,0.250000,-0.875000,1.000000,0.375000,-0.875000,1.000000,0.500000,-0.875000,1.000000,0.625000,-0.875000,1.000000,0.750000,-0.875000,1.000000,0.875000,0.125000,1.000000,0.125000,0.250000,1.000000,0.125000,0.375000,1.000000,0.125000,0.500000,1.000000,0.125000,0.625000,1.000000,0.125000,0.750000,1.000000,0.125000,0.875000,1.000000,0.125000,0.125000,1.000000,0.250000,0.250000,1.000000,0.250000,0.375000,1.000000,0.250000,0.500000,1.000000,0.250000,0.625000,1.000000,0.250000,0.750000,1.000000,0.250000,0.875000,1.000000,0.250000,0.125000,1.000000,0.375000,0.250000,1.000000,0.375000,0.375000,1.000000,0.375000,0.500000,1.000000,0.375000,0.625000,1.000000,0.375000,0.750000,1.000000,0.375000,0.875000,1.000000,0.375000,0.125000,1.000000,0.500000,0.250000,1.000000,0.500000,0.375000,1.000000,0.500000,0.500000,1.000000,0.500000,0.625000,1.000000,0.500000,0.750000,1.000000,0.500000,0.875000,1.000000,0.500000,0.125000,1.000000,0.625000,0.250000,1.000000,0.625000,0.375000,1.000000,0.625000,0.500000,1.000000,0.625000,0.625000,1.000000,0.625000,0.750000,1.000000,0.625000,0.875000,1.000000,0.625000,0.125000,1.000000,0.750000,0.249999,1.000000,0.750000,0.374999,1.000000,0.750000,0.499999,1.000000,0.750000,0.624999,1.000000,0.750000,0.749999,1.000000,0.750000,0.874999,1.000000,0.750000,0.124999,1.000000,0.875000,0.249999,1.000000,0.875000,0.374999,1.000000,0.875000,0.499999,1.000000,0.875000,0.624999,1.000000,0.875000,0.749999,1.000000,0.875000,0.874999,1.000000,0.875000,1.000000,0.000000,0.000000,1.000000,-0.000000,-0.125000,1.000000,-0.000000,-0.250000,1.000000,-0.000000,-0.375000,1.000000,-0.000000,-0.500000,1.000000,-0.000000,-0.625000,1.000000,-0.000000,-0.750000,1.000000,-0.000000,-0.875000,1.000000,0.125000,0.000000,1.000000,0.250000,0.000000,1.000000,0.375000,0.000000,1.000000,0.500000,0.000000,1.000000,0.625000,0.000000,1.000000,0.750000,0.000000,1.000000,0.875000,0.000000,1.000000,0.000000,0.125000,1.000000,0.000000,0.250000,1.000000,0.000000,0.375000,1.000000,0.000000,0.500000,1.000000,0.000000,0.625000,1.000000,0.000000,0.750000,1.000000,0.000000,0.875000,1.000000,-0.125000,0.000000,1.000000,-0.250000,0.000000,1.000000,-0.375000,0.000000,1.000000,-0.500000,0.000000,1.000000,-0.625000,0.000000,1.000000,-0.750000,0.000000,1.000000,-0.875000,-0.000000,1.000000,-0.125000,-0.125000,1.000000,-0.125000,-0.250000,1.000000,-0.125000,-0.375000,1.000000,-0.125000,-0.500000,1.000000,-0.125000,-0.625000,1.000000,-0.125000,-0.750000,1.000000,-0.125000,-0.875000,1.000000,-0.250000,-0.125000,1.000000,-0.250000,-0.250000,1.000000,-0.250000,-0.375000,1.000000,-0.250000,-0.500000,1.000000,-0.250000,-0.625000,1.000000,-0.250000,-0.750000,1.000000,-0.250000,-0.875000,1.000000,-0.375000,-0.125000,1.000000,-0.375000,-0.250000,1.000000,-0.375000,-0.375000,1.000000,-0.375000,-0.500000,1.000000,-0.375000,-0.625000,1.000000,-0.375000,-0.750000,1.000000,-0.375000,-0.875000,1.000000,-0.500000,-0.125000,1.000000,-0.500000,-0.250000,1.000000,-0.500000,-0.375000,1.000000,-0.500000,-0.500000,1.000000,-0.500000,-0.625000,1.000000,-0.500000,-0.750000,1.000000,-0.500000,-0.875000,1.000000,-0.625000,-0.125000,1.000000,-0.625000,-0.250000,1.000000,-0.625000,-0.375000,1.000000,-0.625000,-0.500000,1.000000,-0.625000,-0.625000,1.000000,-0.625000,-0.750000,1.000000,-0.625000,-0.875000,1.000000,-0.750000,-0.125000,1.000000,-0.750000,-0.250000,1.000000,-0.750000,-0.375000,1.000000,-0.750000,-0.500000,1.000000,-0.750000,-0.625000,1.000000,-0.750000,-0.750000,1.000000,-0.750000,-0.875000,1.000000,-0.875000,-0.125000,1.000000,-0.875000,-0.250000,1.000000,-0.875000,-0.375000,1.000000,-0.875000,-0.500000,1.000000,-0.875000,-0.625000,1.000000,-0.875000,-0.750000,1.000000,-0.875000,-0.875000,1.000000,0.125000,-0.125000,1.000000,0.250000,-0.125000,1.000000,0.375000,-0.125000,1.000000,0.500000,-0.125000,1.000000,0.625000,-0.125000,1.000000,0.750000,-0.125000,1.000000,0.875000,-0.125000,1.000000,0.125000,-0.250000,1.000000,0.250000,-0.250000,1.000000,0.375000,-0.250000,1.000000,0.500000,-0.250000,1.000000,0.625000,-0.250000,1.000000,0.750000,-0.250000,1.000000,0.875000,-0.250000,1.000000,0.125000,-0.375000,1.000000,0.250000,-0.375000,1.000000,0.375000,-0.375000,1.000000,0.500000,-0.375000,1.000000,0.625000,-0.375000,1.000000,0.750000,-0.375000,1.000000,0.875000,-0.375000,1.000000,0.125000,-0.500000,1.000000,0.250000,-0.500000,1.000000,0.375000,-0.500000,1.000000,0.500000,-0.500000,1.000000,0.625000,-0.500000,1.000000,0.750000,-0.500000,1.000000,0.875000,-0.500000,1.000000,0.125000,-0.625000,1.000000,0.250000,-0.625000,1.000000,0.375000,-0.625000,1.000000,0.500000,-0.625000,1.000000,0.625000,-0.625000,1.000000,0.750000,-0.625000,1.000000,0.875000,-0.625000,1.000000,0.125000,-0.750000,1.000000,0.250000,-0.750000,1.000000,0.375000,-0.750000,1.000000,0.500000,-0.750000,1.000000,0.625000,-0.750000,1.000000,0.750000,-0.750000,1.000000,0.875000,-0.750000,1.000000,0.125000,-0.875000,1.000000,0.250000,-0.875000,1.000000,0.375000,-0.875000,1.000000,0.500000,-0.875000,1.000000,0.625000,-0.875000,1.000000,0.750000,-0.875000,1.000000,0.875000,-0.875000,1.000000,0.125000,0.125000,1.000000,0.125000,0.250000,1.000000,0.125000,0.375000,1.000000,0.125000,0.500000,1.000000,0.125000,0.625000,1.000000,0.125000,0.750000,1.000000,0.125000,0.875000,1.000000,0.250000,0.125000,1.000000,0.250000,0.250000,1.000000,0.250000,0.375000,1.000000,0.250000,0.500000,1.000000,0.250000,0.625000,1.000000,0.250000,0.750000,1.000000,0.250000,0.875000,1.000000,0.375000,0.125000,1.000000,0.375000,0.250000,1.000000,0.375000,0.375000,1.000000,0.375000,0.500000,1.000000,0.375000,0.625000,1.000000,0.375000,0.750000,1.000000,0.375000,0.875000,1.000000,0.500000,0.125000,1.000000,0.500000,0.250000,1.000000,0.500000,0.375000,1.000000,0.500000,0.500000,1.000000,0.500000,0.625000,1.000000,0.500000,0.750000,0.999999,0.500000,0.875000,1.000000,0.625000,0.125000,1.000000,0.625000,0.250000,1.000000,0.625000,0.375000,1.000000,0.625000,0.500000,1.000000,0.625000,0.625000,1.000000,0.625000,0.750000,0.999999,0.625000,0.875000,1.000000,0.750000,0.125000,1.000000,0.750000,0.250000,1.000000,0.750000,0.375000,1.000000,0.750000,0.500000,1.000000,0.750000,0.625000,0.999999,0.750000,0.750000,0.999999,0.750000,0.875000,1.000000,0.875000,0.125000,1.000000,0.875000,0.250000,1.000000,0.875000,0.375000,1.000000,0.875000,0.500000,1.000000,0.875000,0.625000,0.999999,0.875000,0.750000,0.999999,0.875000,0.875000,1.000000,-0.125000,0.125000,1.000000,-0.250000,0.125000,1.000000,-0.375000,0.125000,1.000000,-0.500000,0.125000,1.000000,-0.625000,0.125000,1.000000,-0.750000,0.125000,1.000000,-0.875000,0.125000,1.000000,-0.125000,0.250000,1.000000,-0.250000,0.250000,1.000000,-0.375000,0.250000,1.000000,-0.500000,0.250000,1.000000,-0.625000,0.250000,1.000000,-0.750000,0.250000,1.000000,-0.875000,0.250000,1.000000,-0.125000,0.375000,1.000000,-0.250000,0.375000,1.000000,-0.375000,0.375000,1.000000,-0.500000,0.375000,1.000000,-0.625000,0.375000,1.000000,-0.750000,0.375000,1.000000,-0.875000,0.375000,1.000000,-0.125000,0.500000,1.000000,-0.250000,0.500000,1.000000,-0.375000,0.500000,1.000000,-0.500000,0.500000,1.000000,-0.625000,0.500000,1.000000,-0.750000,0.500000,1.000000,-0.875000,0.500000,1.000000,-0.125000,0.625000,1.000000,-0.250000,0.625000,1.000000,-0.375000,0.625000,1.000000,-0.500000,0.625000,1.000000,-0.625000,0.625000,1.000000,-0.750000,0.625000,1.000000,-0.875000,0.625000,1.000000,-0.125000,0.750000,1.000000,-0.250000,0.750000,1.000000,-0.375000,0.750000,1.000000,-0.500000,0.750000,1.000000,-0.625000,0.750000,1.000000,-0.750000,0.750000,1.000000,-0.875000,0.750000,1.000000,-0.125000,0.875000,1.000000,-0.250000,0.875000,1.000000,-0.375000,0.875000,1.000000,-0.500000,0.875000,1.000000,-0.625000,0.875000,1.000000,-0.750000,0.875000,1.000000,-0.875000,0.875000,-0.000000,0.000000,1.000000,0.125000,0.000000,1.000000,0.250000,0.000000,1.000000,0.375000,0.000000,1.000000,0.500000,0.000000,1.000000,0.625000,0.000000,1.000000,0.750000,0.000000,1.000000,0.875000,0.000000,1.000000,-0.000000,0.125000,1.000000,-0.000000,0.250000,1.000000,-0.000000,0.375000,1.000000,-0.000000,0.500000,1.000000,-0.000000,0.625000,1.000000,-0.000001,0.750000,1.000000,-0.000001,0.875000,1.000000,-0.125000,0.000000,1.000000,-0.250000,0.000000,1.000000,-0.375000,0.000000,1.000000,-0.500000,0.000000,1.000000,-0.625000,0.000000,1.000000,-0.750000,0.000000,1.000000,-0.875000,0.000000,1.000000,-0.000000,-0.125000,1.000000,-0.000000,-0.250000,1.000000,-0.000000,-0.375000,1.000000,-0.000000,-0.500000,1.000000,-0.000000,-0.625000,1.000000,-0.000000,-0.750000,1.000000,-0.000000,-0.875000,1.000000,0.125000,-0.125000,1.000000,0.250000,-0.125000,1.000000,0.375000,-0.125000,1.000000,0.500000,-0.125000,1.000000,0.625000,-0.125000,1.000000,0.750000,-0.125000,1.000000,0.875000,-0.125000,1.000000,0.125000,-0.250000,1.000000,0.250000,-0.250000,1.000000,0.375000,-0.250000,1.000000,0.500000,-0.250000,1.000000,0.625000,-0.250000,1.000000,0.750000,-0.250000,1.000000,0.875000,-0.250000,1.000000,0.125000,-0.375000,1.000000,0.250000,-0.375000,1.000000,0.375000,-0.375000,1.000000,0.500000,-0.375000,1.000000,0.625000,-0.375000,1.000000,0.750000,-0.375000,1.000000,0.875000,-0.375000,1.000000,0.125000,-0.500000,1.000000,0.250000,-0.500000,1.000000,0.375000,-0.500000,1.000000,0.500000,-0.500000,1.000000,0.625000,-0.500000,1.000000,0.750000,-0.500000,1.000000,0.875000,-0.500000,1.000000,0.125000,-0.625000,1.000000,0.250000,-0.625000,1.000000,0.375000,-0.625000,1.000000,0.500000,-0.625000,1.000000,0.625000,-0.625000,1.000000,0.750000,-0.625000,1.000000,0.875000,-0.625000,1.000000,0.125000,-0.750000,1.000000,0.250000,-0.750000,1.000000,0.375000,-0.750000,1.000000,0.500000,-0.750000,1.000000,0.625000,-0.750000,1.000000,0.750000,-0.750000,1.000000,0.875000,-0.750000,1.000000,0.125000,-0.875000,1.000000,0.250000,-0.875000,1.000000,0.375000,-0.875000,1.000000,0.500000,-0.875000,1.000000,0.625000,-0.875000,1.000000,0.750000,-0.875000,1.000000,0.875000,-0.875000,1.000000,0.125000,0.125000,1.000000,0.125000,0.250000,1.000000,0.125000,0.375000,1.000000,0.125000,0.500000,1.000000,0.124999,0.625000,1.000000,0.124999,0.750000,1.000000,0.124999,0.875000,1.000000,0.250000,0.125000,1.000000,0.250000,0.250000,1.000000,0.250000,0.375000,1.000000,0.250000,0.500000,1.000000,0.249999,0.625000,1.000000,0.249999,0.750000,1.000000,0.249999,0.875000,1.000000,0.375000,0.125000,1.000000,0.375000,0.250000,1.000000,0.375000,0.375000,1.000000,0.374999,0.500000,1.000000,0.374999,0.625000,1.000000,0.374999,0.750000,1.000000,0.374999,0.875000,1.000000,0.500000,0.125000,1.000000,0.500000,0.250000,1.000000,0.500000,0.375000,1.000000,0.499999,0.500000,1.000000,0.499999,0.625000,1.000000,0.499999,0.750000,1.000000,0.499999,0.875000,1.000000,0.625000,0.125000,1.000000,0.625000,0.250000,1.000000,0.625000,0.375000,1.000000,0.624999,0.500000,1.000000,0.624999,0.625000,1.000000,0.624999,0.750000,1.000000,0.624999,0.875000,1.000000,0.750000,0.125000,1.000000,0.750000,0.250000,1.000000,0.750000,0.375000,1.000000,0.749999,0.500000,1.000000,0.749999,0.625000,1.000000,0.749999,0.750000,1.000000,0.749999,0.875000,1.000000,0.875000,0.125000,1.000000,0.875000,0.250000,1.000000,0.875000,0.375000,1.000000,0.874999,0.500000,1.000000,0.874999,0.625000,1.000000,0.874999,0.750000,1.000000,0.874999,0.875000,1.000000,-0.125000,0.125000,1.000000,-0.250000,0.125000,1.000000,-0.375000,0.125000,1.000000,-0.500000,0.125000,1.000000,-0.625000,0.125000,1.000000,-0.750000,0.125000,1.000000,-0.875000,0.125000,1.000000,-0.125000,0.250000,1.000000,-0.250000,0.250000,1.000000,-0.375000,0.250000,1.000000,-0.500000,0.250000,1.000000,-0.625000,0.250000,1.000000,-0.750000,0.250000,1.000000,-0.875000,0.250000,1.000000,-0.125000,0.375000,1.000000,-0.250000,0.375000,1.000000,-0.375000,0.375000,1.000000,-0.500000,0.375000,1.000000,-0.625000,0.375000,1.000000,-0.750000,0.375000,1.000000,-0.875000,0.375000,1.000000,-0.125000,0.500000,1.000000,-0.250000,0.500000,1.000000,-0.375000,0.500000,1.000000,-0.500000,0.500000,1.000000,-0.625000,0.500000,1.000000,-0.750000,0.500000,1.000000,-0.875000,0.500000,1.000000,-0.125000,0.625000,1.000000,-0.250000,0.625000,1.000000,-0.375000,0.625000,1.000000,-0.500000,0.625000,1.000000,-0.625000,0.625000,1.000000,-0.750000,0.625000,1.000000,-0.875000,0.625000,1.000000,-0.125000,0.750000,1.000000,-0.250000,0.750000,1.000000,-0.375000,0.750000,1.000000,-0.500000,0.750000,1.000000,-0.625000,0.750000,1.000000,-0.750000,0.750000,1.000000,-0.875000,0.750000,1.000000,-0.125001,0.875000,1.000000,-0.250001,0.875000,1.000000,-0.375000,0.875000,1.000000,-0.500000,0.875000,1.000000,-0.625000,0.875000,1.000000,-0.750000,0.875000,1.000000,-0.875000,0.875000,1.000000,-0.125000,-0.125000,1.000000,-0.125000,-0.250000,1.000000,-0.125000,-0.375000,1.000000,-0.125000,-0.500000,1.000000,-0.125000,-0.625000,1.000000,-0.125000,-0.750000,1.000000,-0.125000,-0.875000,1.000000,-0.250000,-0.125000,1.000000,-0.250000,-0.250000,1.000000,-0.250000,-0.375000,1.000000,-0.250000,-0.500000,1.000000,-0.250000,-0.625000,1.000000,-0.250000,-0.750000,1.000000,-0.250000,-0.875000,1.000000,-0.375000,-0.125000,1.000000,-0.375000,-0.250000,1.000000,-0.375000,-0.375000,1.000000,-0.375000,-0.500000,1.000000,-0.375000,-0.625000,1.000000,-0.375000,-0.750000,1.000000,-0.375000,-0.875000,1.000000,-0.500000,-0.125000,1.000000,-0.500000,-0.250000,1.000000,-0.500000,-0.375000,1.000000,-0.500000,-0.500000,1.000000,-0.500000,-0.625000,1.000000,-0.500000,-0.750000,1.000000,-0.500000,-0.875000,1.000000,-0.625000,-0.125000,1.000000,-0.625000,-0.250000,1.000000,-0.625000,-0.375000,1.000000,-0.625000,-0.500000,1.000000,-0.625000,-0.625000,1.000000,-0.625000,-0.750000,1.000000,-0.625000,-0.875000,1.000000,-0.750000,-0.125000,1.000000,-0.750000,-0.250000,1.000000,-0.750000,-0.375000,1.000000,-0.750000,-0.500000,1.000000,-0.750000,-0.625000,1.000000,-0.750000,-0.750000,1.000000,-0.750000,-0.875000,1.000000,-0.875000,-0.125000,1.000000,-0.875000,-0.250000,1.000000,-0.875000,-0.375000,1.000000,-0.875000,-0.500000,1.000000,-0.875000,-0.625000,1.000000,-0.875000,-0.750000,1.000000,-0.875000,-0.875000,1.000000,-1.000000,-0.000000,-0.000000,-1.000000,0.000000,0.125000,-1.000000,0.000000,0.250000,-1.000000,0.000000,0.375000,-1.000000,0.000000,0.500000,-1.000000,0.000000,0.625000,-1.000000,0.000000,0.750000,-1.000000,0.000000,0.875000,-1.000000,0.125000,-0.000000,-1.000000,0.250000,-0.000000,-1.000000,0.375000,-0.000000,-1.000000,0.500000,-0.000000,-1.000000,0.625000,-0.000000,-1.000000,0.750000,-0.000000,-1.000000,0.875000,-0.000000,-1.000000,-0.000000,-0.125000,-1.000000,-0.000000,-0.250000,-1.000000,-0.000000,-0.375000,-1.000000,-0.000000,-0.500000,-1.000000,-0.000000,-0.625000,-1.000000,-0.000000,-0.750000,-1.000000,-0.000000,-0.875000,-1.000000,-0.125000,-0.000000,-1.000000,-0.250000,-0.000000,-1.000000,-0.375000,-0.000000,-1.000000,-0.500000,-0.000000,-1.000000,-0.625000,-0.000000,-1.000000,-0.750000,-0.000000,-1.000000,-0.875000,-0.000000,-1.000000,-0.125000,0.125000,-1.000000,-0.125000,0.250000,-1.000000,-0.125000,0.375000,-1.000000,-0.125000,0.500000,-1.000000,-0.125000,0.625000,-1.000000,-0.125000,0.750000,-1.000000,-0.125000,0.875000,-1.000000,-0.250000,0.125000,-1.000000,-0.250000,0.250000,-1.000000,-0.250000,0.375000,-1.000000,-0.250000,0.500000,-1.000000,-0.250000,0.625000,-1.000000,-0.250000,0.750000,-1.000000,-0.250000,0.875000,-1.000000,-0.375000,0.125000,-1.000000,-0.375000,0.250000,-1.000000,-0.375000,0.375000,-1.000000,-0.375000,0.500000,-1.000000,-0.375000,0.625000,-1.000000,-0.375000,0.750000,-1.000000,-0.375000,0.875000,-1.000000,-0.500000,0.125000,-1.000000,-0.500000,0.250000,-1.000000,-0.500000,0.375000,-1.000000,-0.500000,0.500000,-1.000000,-0.500000,0.625000,-1.000000,-0.500000,0.750000,-1.000000,-0.500000,0.875000,-1.000000,-0.625000,0.125000,-1.000000,-0.625000,0.250000,-1.000000,-0.625000,0.375000,-1.000000,-0.625000,0.500000,-1.000000,-0.625000,0.625000,-1.000000,-0.625000,0.750000,-1.000000,-0.625000,0.875000,-1.000000,-0.750000,0.125000,-1.000000,-0.750000,0.250000,-1.000000,-0.750000,0.375000,-1.000000,-0.750000,0.500000,-1.000000,-0.750000,0.625000,-1.000000,-0.750000,0.750000,-1.000000,-0.750000,0.875000,-1.000000,-0.875000,0.125000,-1.000000,-0.875000,0.250000,-1.000000,-0.875000,0.375000,-1.000000,-0.875000,0.500000,-1.000000,-0.875000,0.625000,-1.000000,-0.875000,0.750000,-1.000000,-0.875000,0.875000,-1.000000,0.125000,0.125000,-1.000000,0.250000,0.125000,-1.000000,0.375000,0.125000,-1.000000,0.500000,0.125000,-1.000000,0.625000,0.125000,-1.000000,0.750000,0.125000,-1.000000,0.875000,0.125000,-1.000000,0.125000,0.250000,-1.000000,0.250000,0.250000,-1.000000,0.375000,0.250000,-1.000000,0.500000,0.250000,-1.000000,0.625000,0.250000,-1.000000,0.750000,0.250000,-1.000000,0.875000,0.250000,-1.000000,0.125000,0.375000,-1.000000,0.250000,0.375000,-1.000000,0.375000,0.375000,-1.000000,0.500000,0.375000,-1.000000,0.625000,0.375000,-1.000000,0.750000,0.375000,-1.000000,0.875000,0.375000,-1.000000,0.125000,0.500000,-1.000000,0.250000,0.500000,-1.000000,0.375000,0.500000,-1.000000,0.500000,0.500000,-1.000000,0.625000,0.500000,-1.000000,0.750000,0.500000,-1.000000,0.875000,0.500000,-1.000000,0.125000,0.625000,-1.000000,0.250000,0.625000,-1.000000,0.375000,0.625000,-1.000000,0.500000,0.625000,-1.000000,0.625000,0.625000,-1.000000,0.750000,0.625000,-1.000000,0.875000,0.625000,-1.000000,0.125000,0.750000,-1.000000,0.250000,0.750000,-1.000000,0.375000,0.750000,-1.000000,0.500000,0.750000,-1.000000,0.625000,0.750000,-1.000000,0.750000,0.750000,-1.000000,0.875000,0.750000,-1.000000,0.125000,0.875000,-1.000000,0.250000,0.875000,-1.000000,0.375000,0.875000,-1.000000,0.500000,0.875000,-1.000000,0.625000,0.875000,-1.000000,0.750000,0.874999,-1.000000,0.875000,0.874999,-1.000000,0.125000,-0.125000,-1.000000,0.125000,-0.250000,-1.000000,0.125000,-0.375000,-1.000000,0.125000,-0.500000,-1.000000,0.125000,-0.625000,-1.000000,0.125000,-0.750000,-1.000000,0.125000,-0.875000,-1.000000,0.250000,-0.125000,-1.000000,0.250000,-0.250000,-1.000000,0.250000,-0.375000,-1.000000,0.250000,-0.500000,-1.000000,0.250000,-0.625000,-1.000000,0.250000,-0.750000,-1.000000,0.250000,-0.875000,-1.000000,0.375000,-0.125000,-1.000000,0.375000,-0.250000,-1.000000,0.375000,-0.375000,-1.000000,0.375000,-0.500000,-1.000000,0.375000,-0.625000,-1.000000,0.375000,-0.750000,-1.000000,0.375000,-0.875000,-1.000000,0.500000,-0.125000,-1.000000,0.500000,-0.250000,-1.000000,0.500000,-0.375000,-1.000000,0.500000,-0.500000,-1.000000,0.500000,-0.625000,-1.000000,0.500000,-0.750000,-1.000000,0.500000,-0.875000,-1.000000,0.625000,-0.125000,-1.000000,0.625000,-0.250000,-1.000000,0.625000,-0.375000,-1.000000,0.625000,-0.500000,-1.000000,0.625000,-0.625000,-1.000000,0.625000,-0.750000,-1.000000,0.625000,-0.875000,-1.000000,0.750000,-0.125000,-1.000000,0.750000,-0.250000,-1.000000,0.750000,-0.375000,-1.000000,0.750000,-0.500000,-1.000000,0.750000,-0.625000,-1.000000,0.750000,-0.750000,-1.000000,0.750000,-0.875000,-1.000000,0.875000,-0.125000,-1.000000,0.875000,-0.250000,-1.000000,0.875000,-0.375000,-1.000000,0.875000,-0.500000,-1.000000,0.875000,-0.625000,-1.000000,0.875000,-0.750000,-1.000000,0.875000,-0.875000,-1.000000,-0.125000,-0.125000,-1.000000,-0.250000,-0.125000,-1.000000,-0.375000,-0.125000,-1.000000,-0.500000,-0.125000,-1.000000,-0.625000,-0.125000,-1.000000,-0.750000,-0.125000,-1.000000,-0.875000,-0.125000,-1.000000,-0.125000,-0.250000,-1.000000,-0.250000,-0.250000,-1.000000,-0.375000,-0.250000,-1.000000,-0.500000,-0.250000,-1.000000,-0.625000,-0.250000,-1.000000,-0.750000,-0.250000,-1.000000,-0.875000,-0.250000,-1.000000,-0.125000,-0.375000,-1.000000,-0.250000,-0.375000,-1.000000,-0.375000,-0.375000,-1.000000,-0.500000,-0.375000,-1.000000,-0.625000,-0.375000,-1.000000,-0.750000,-0.375000,-1.000000,-0.875000,-0.375000,-1.000000,-0.125000,-0.500000,-1.000000,-0.250000,-0.500000,-1.000000,-0.375000,-0.500000,-1.000000,-0.500000,-0.500000,-1.000000,-0.625000,-0.500000,-1.000000,-0.750000,-0.500000,-1.000000,-0.875000,-0.500000,-1.000000,-0.125000,-0.625000,-1.000000,-0.250000,-0.625000,-1.000000,-0.375000,-0.625000,-1.000000,-0.500000,-0.625000,-1.000000,-0.625000,-0.625000,-1.000000,-0.750000,-0.625000,-1.000000,-0.875000,-0.625000,-1.000000,-0.125000,-0.750000,-1.000000,-0.250000,-0.750000,-1.000000,-0.375000,-0.750000,-1.000000,-0.500000,-0.750000,-1.000000,-0.625000,-0.750000,-1.000000,-0.750000,-0.750000,-1.000000,-0.875000,-0.750000,-1.000000,-0.125000,-0.875000,-1.000000,-0.250000,-0.875000,-1.000000,-0.375000,-0.875000,-1.000000,-0.500000,-0.875000,-1.000000,-0.625000,-0.875000,-1.000000,-0.750000,-0.875000,-1.000000,-0.875000,-0.875000,0.000000,-0.000000,-1.000000,0.125000,-0.000000,-1.000000,0.250000,-0.000000,-1.000000,0.375000,-0.000000,-1.000000,0.500000,-0.000000,-1.000000,0.625000,-0.000000,-1.000000,0.750000,-0.000000,-1.000000,0.875000,-0.000000,-1.000000,0.000000,-0.125000,-1.000000,0.000000,-0.250000,-1.000000,0.000000,-0.375000,-1.000000,0.000000,-0.500000,-1.000000,0.000000,-0.625000,-1.000000,0.000000,-0.750000,-1.000000,0.000000,-0.875000,-1.000000,-0.125000,-0.000000,-1.000000,-0.250000,-0.000000,-1.000000,-0.375000,-0.000000,-1.000000,-0.500000,-0.000000,-1.000000,-0.625000,-0.000000,-1.000000,-0.750000,-0.000000,-1.000000,-0.875000,-0.000000,-1.000000,0.000000,0.125000,-1.000000,0.000000,0.250000,-1.000000,0.000000,0.375000,-1.000000,0.000000,0.500000,-1.000000,0.000000,0.625000,-1.000000,0.000000,0.750000,-1.000000,0.000000,0.875000,-1.000000,0.125000,0.125000,-1.000000,0.250000,0.125000,-1.000000,0.375000,0.125000,-1.000000,0.500000,0.125000,-1.000000,0.625000,0.125000,-1.000000,0.750000,0.125000,-1.000000,0.875000,0.125000,-1.000000,0.125000,0.250000,-1.000000,0.250000,0.250000,-1.000000,0.375000,0.250000,-1.000000,0.500000,0.250000,-1.000000,0.625000,0.250000,-1.000000,0.750000,0.250000,-1.000000,0.875000,0.250000,-1.000000,0.125000,0.375000,-1.000000,0.250000,0.375000,-1.000000,0.375000,0.375000,-1.000000,0.500000,0.375000,-1.000000,0.625000,0.375000,-1.000000,0.750000,0.375000,-1.000000,0.875000,0.375000,-1.000000,0.125000,0.500000,-1.000000,0.250000,0.500000,-1.000000,0.375000,0.500000,-1.000000,0.500000,0.500000,-1.000000,0.625000,0.500000,-1.000000,0.750000,0.500000,-1.000000,0.875000,0.500000,-1.000000,0.125000,0.625000,-1.000000,0.250000,0.625000,-1.000000,0.375000,0.625000,-1.000000,0.500000,0.625000,-1.000000,0.625000,0.625000,-1.000000,0.750000,0.625000,-1.000000,0.875000,0.625000,-1.000000,0.125000,0.750000,-1.000000,0.250000,0.750000,-1.000000,0.375000,0.750000,-1.000000,0.500000,0.750000,-1.000000,0.625000,0.750000,-1.000000,0.750000,0.750000,-1.000000,0.875000,0.750000,-1.000000,0.125000,0.875000,-1.000000,0.250000,0.875000,-1.000000,0.375000,0.875000,-1.000000,0.500000,0.875000,-1.000000,0.625000,0.875000,-1.000000,0.750000,0.875000,-1.000000,0.875000,0.875000,-1.000000,0.125000,-0.125000,-1.000000,0.125000,-0.250000,-1.000000,0.125000,-0.375000,-1.000000,0.125000,-0.500000,-1.000000,0.125000,-0.625000,-1.000000,0.125000,-0.750000,-1.000000,0.125000,-0.875000,-1.000000,0.250000,-0.125000,-1.000000,0.250000,-0.250000,-1.000000,0.250000,-0.375000,-1.000000,0.250000,-0.500000,-1.000000,0.250000,-0.625000,-1.000000,0.250000,-0.750000,-1.000000,0.250000,-0.875000,-1.000000,0.375000,-0.125000,-1.000000,0.375000,-0.250000,-1.000000,0.375000,-0.375000,-1.000000,0.375000,-0.500000,-1.000000,0.375000,-0.625000,-1.000000,0.375000,-0.750000,-1.000000,0.375000,-0.875000,-1.000000,0.500000,-0.125000,-1.000000,0.500000,-0.250000,-1.000000,0.500000,-0.375000,-1.000000,0.500000,-0.500000,-1.000000,0.500000,-0.625000,-1.000000,0.500000,-0.750000,-1.000000,0.500000,-0.875000,-1.000000,0.625000,-0.125000,-1.000000,0.625000,-0.250000,-1.000000,0.625000,-0.375000,-1.000000,0.625000,-0.500000,-1.000000,0.625000,-0.625000,-1.000000,0.625000,-0.750000,-1.000000,0.625000,-0.875000,-1.000000,0.750000,-0.125000,-1.000000,0.750000,-0.250000,-1.000000,0.750000,-0.375000,-1.000000,0.750000,-0.500000,-1.000000,0.750000,-0.625000,-1.000000,0.750000,-0.750000,-1.000000,0.750000,-0.875000,-1.000000,0.875000,-0.125000,-1.000000,0.875000,-0.250000,-1.000000,0.875000,-0.375000,-1.000000,0.875000,-0.500000,-1.000000,0.875000,-0.625000,-1.000000,0.875000,-0.750000,-1.000000,0.875000,-0.875000,-1.000000,-0.125000,-0.125000,-1.000000,-0.250000,-0.125000,-1.000000,-0.375000,-0.125000,-1.000000,-0.500000,-0.125000,-1.000000,-0.625000,-0.125000,-1.000000,-0.750000,-0.125000,-1.000000,-0.875000,-0.125000,-1.000000,-0.125000,-0.250000,-1.000000,-0.250000,-0.250000,-1.000000,-0.375000,-0.250000,-1.000000,-0.500000,-0.250000,-1.000000,-0.625000,-0.250000,-1.000000,-0.750000,-0.250000,-1.000000,-0.875000,-0.250000,-1.000000,-0.125000,-0.375000,-1.000000,-0.250000,-0.375000,-1.000000,-0.375000,-0.375000,-1.000000,-0.500000,-0.375000,-1.000000,-0.625000,-0.375000,-1.000000,-0.750000,-0.375000,-1.000000,-0.875000,-0.375000,-1.000000,-0.125000,-0.500000,-1.000000,-0.250000,-0.500000,-1.000000,-0.375000,-0.500000,-1.000000,-0.500000,-0.500000,-1.000000,-0.625000,-0.500000,-1.000000,-0.750000,-0.500000,-1.000000,-0.875000,-0.500000,-1.000000,-0.125000,-0.625000,-1.000000,-0.250000,-0.625000,-1.000000,-0.375000,-0.625000,-1.000000,-0.500000,-0.625000,-1.000000,-0.625000,-0.625000,-1.000000,-0.750000,-0.625000,-1.000000,-0.875000,-0.625000,-1.000000,-0.125000,-0.750000,-1.000000,-0.250000,-0.750000,-1.000000,-0.375000,-0.750000,-1.000000,-0.500000,-0.750000,-1.000000,-0.625000,-0.750000,-1.000000,-0.750000,-0.750000,-1.000000,-0.875000,-0.750000,-1.000000,-0.125000,-0.875000,-1.000000,-0.250000,-0.875000,-1.000000,-0.375000,-0.875000,-1.000000,-0.500000,-0.875000,-1.000000,-0.625000,-0.875000,-1.000000,-0.750000,-0.875000,-1.000000,-0.875000,-0.875000,-1.000000,-0.125000,0.125000,-1.000000,-0.125000,0.250000,-1.000000,-0.125000,0.375000,-1.000000,-0.125000,0.500000,-1.000000,-0.125000,0.625000,-1.000000,-0.125000,0.750000,-1.000000,-0.125000,0.875000,-1.000000,-0.250000,0.125000,-1.000000,-0.250000,0.250000,-1.000000,-0.250000,0.375000,-1.000000,-0.250000,0.500000,-1.000000,-0.250000,0.625000,-1.000000,-0.250000,0.750000,-1.000000,-0.250000,0.875000,-1.000000,-0.375000,0.125000,-1.000000,-0.375000,0.250000,-1.000000,-0.375000,0.375000,-1.000000,-0.375000,0.500000,-1.000000,-0.375000,0.625000,-1.000000,-0.375000,0.750000,-1.000000,-0.375000,0.875000,-1.000000,-0.500000,0.125000,-1.000000,-0.500000,0.250000,-1.000000,-0.500000,0.375000,-1.000000,-0.500000,0.500000,-1.000000,-0.500000,0.625000,-1.000000,-0.500000,0.750000,-1.000000,-0.500000,0.875000,-1.000000,-0.625000,0.125000,-1.000000,-0.625000,0.250000,-1.000000,-0.625000,0.375000,-1.000000,-0.625000,0.500000,-1.000000,-0.625000,0.625000,-1.000000,-0.625000,0.750000,-1.000000,-0.625000,0.875000,-1.000000,-0.750000,0.125000,-1.000000,-0.750000,0.250000,-1.000000,-0.750000,0.375000,-1.000000,-0.750000,0.500000,-1.000000,-0.750000,0.625000,-1.000000,-0.750000,0.750000,-1.000000,-0.750000,0.875000,-1.000000,-0.875000,0.125000,-1.000000,-0.875000,0.250000,-1.000000,-0.875000,0.375000,-1.000000,-0.875000,0.500000,-1.000000,-0.875000,0.625000,-1.000000,-0.875000,0.750000,-1.000000,-0.875000,0.875000,-1.000000,1.000000,-1.000000,-0.875000,1.000000,-1.000000,-0.750000,1.000000,-1.000000,-0.625000,1.000000,-1.000000,-0.500000,1.000000,-1.000000,-0.375000,1.000000,-1.000000,-0.250000,1.000000,-1.000000,-0.125000,1.000000,-1.000000,-0.000000,1.000000,-1.000000,0.125000,1.000000,-1.000000,0.250000,1.000000,-1.000000,0.375000,1.000000,-1.000000,0.500000,1.000000,-1.000000,0.625000,1.000000,-1.000000,0.750000,1.000000,-1.000000,0.875000,0.875000,-1.000000,-1.000000,0.750000,-1.000000,-1.000000,0.625000,-1.000000,-1.000000,0.500000,-1.000000,-1.000000,0.375000,-1.000000,-1.000000,0.250000,-1.000000,-1.000000,0.125000,-1.000000,-1.000000,0.000000,-1.000000,-1.000000,-0.125000,-1.000000,-1.000000,-0.250000,-1.000000,-1.000000,-0.375000,-1.000000,-1.000000,-0.500000,-1.000000,-1.000000,-0.625000,-1.000000,-1.000000,-0.750000,-1.000000,-1.000000,-0.875000,-1.000000,-1.000000,1.000000,-0.875000,-1.000000,1.000000,-0.750000,-1.000000,1.000000,-0.625000,-1.000000,1.000000,-0.500000,-1.000000,1.000000,-0.375000,-1.000000,1.000000,-0.250000,-1.000000,1.000000,-0.125000,-1.000000,1.000000,-0.000000,-1.000000,1.000000,0.125000,-1.000000,1.000000,0.250000,-1.000000,1.000000,0.375000,-1.000000,1.000000,0.500000,-1.000000,1.000000,0.625000,-1.000000,1.000000,0.750000,-1.000000,1.000000,0.875000,-1.000000,0.875000,-1.000000,1.000000,0.750000,-1.000000,1.000000,0.625000,-1.000000,1.000000,0.500000,-1.000000,1.000000,0.375000,-1.000000,1.000000,0.250000,-1.000000,1.000000,0.125000,-1.000000,1.000000,-0.000000,-1.000000,1.000000,-0.125000,-1.000000,1.000000,-0.250000,-1.000000,1.000000,-0.375000,-1.000000,1.000000,-0.500000,-1.000000,1.000000,-0.625000,-1.000000,1.000000,-0.750000,-1.000000,1.000000,-0.875000,-1.000000,1.000000,1.000000,-0.875000,1.000000,1.000000,-0.750000,1.000000,1.000000,-0.625000,1.000000,1.000000,-0.500000,1.000000,1.000000,-0.375000,1.000000,1.000000,-0.250000,1.000000,1.000000,-0.125000,1.000000,1.000000,0.000000,1.000000,1.000000,0.125000,1.000000,1.000000,0.250000,1.000000,1.000000,0.375000,1.000000,0.999999,0.500000,1.000000,0.999999,0.625000,1.000000,0.999999,0.750000,1.000000,0.999999,0.875000,1.000000,-1.000000,-1.000000,0.875000,-1.000000,-1.000000,0.750000,-1.000000,-1.000000,0.625000,-1.000000,-1.000000,0.500000,-1.000000,-1.000000,0.375000,-1.000000,-1.000000,0.250000,-1.000000,-1.000000,0.125000,-1.000000,-1.000000,-0.000000,-1.000000,-1.000000,-0.125000,-1.000000,-1.000000,-0.250000,-1.000000,-1.000000,-0.375000,-1.000000,-1.000000,-0.500000,-1.000000,-1.000000,-0.625000,-1.000000,-1.000000,-0.750000,-1.000000,-1.000000,-0.875000,-1.000000,-0.875000,1.000000,-1.000000,-0.750000,1.000000,-1.000000,-0.625000,1.000000,-1.000000,-0.500000,1.000000,-1.000000,-0.375000,1.000000,-1.000000,-0.250000,1.000000,-1.000000,-0.125000,1.000000,-1.000000,0.000000,1.000000,-1.000000,0.125000,1.000000,-1.000000,0.250000,1.000000,-1.000000,0.375000,1.000000,-1.000000,0.500000,1.000000,-1.000000,0.625000,1.000000,-1.000000,0.750000,0.999999,-1.000000,0.875000,0.999999,-1.000000,-0.875000,-1.000000,-1.000000,-0.750000,-1.000000,-1.000000,-0.625000,-1.000000,-1.000000,-0.500000,-1.000000,-1.000000,-0.375000,-1.000000,-1.000000,-0.250000,-1.000000,-1.000000,-0.125000,-1.000000,-1.000000,-0.000000,-1.000000,-1.000000,0.125000,-1.000000,-1.000000,0.250000,-1.000000,-1.000000,0.375000,-1.000000,-1.000000,0.500000,-1.000000,-1.000000,0.625000,-1.000000,-1.000000,0.750000,-1.000000,-1.000000,0.875000,-1.000000,1.000000,1.000000,-0.875000,1.000000,1.000000,-0.750000,1.000000,1.000000,-0.625000,1.000000,1.000000,-0.500000,1.000000,1.000000,-0.375000,1.000000,1.000000,-0.250000,1.000000,1.000000,-0.125000,1.000000,1.000000,0.000000,1.000000,1.000000,0.125000,1.000000,1.000000,0.250000,1.000000,1.000000,0.375000,1.000000,1.000000,0.500000,1.000000,1.000000,0.625000,0.999999,1.000000,0.750000,0.999999,1.000000,0.875000,0.875000,1.000000,-1.000000,0.750000,1.000000,-1.000000,0.625000,1.000000,-1.000000,0.500000,1.000000,-1.000000,0.375000,1.000000,-1.000000,0.250000,1.000000,-1.000000,0.125000,1.000000,-1.000000,0.000000,1.000000,-1.000000,-0.125000,1.000000,-1.000000,-0.250000,1.000000,-1.000000,-0.375000,1.000000,-1.000000,-0.500000,1.000000,-1.000000,-0.625000,1.000000,-1.000000,-0.750000,1.000000,-1.000000,-0.875000,1.000000,-1.000000,0.874999,1.000000,1.000000,0.749999,1.000000,1.000000,0.624999,1.000000,1.000000,0.499999,1.000000,1.000000,0.374999,1.000000,1.000000,0.249999,1.000000,1.000000,0.124999,1.000000,1.000000,-0.000001,1.000000,1.000000,-0.125001,1.000000,1.000000,-0.250001,1.000000,1.000000,-0.375001,1.000000,1.000000,-0.500000,1.000000,1.000000,-0.625000,1.000000,1.000000,-0.750000,1.000000,1.000000,-0.875000,1.000000,1.000000,-1.000000,1.000000,0.874999,-1.000000,1.000000,0.749999,-1.000000,1.000000,0.625000,-1.000000,1.000000,0.500000,-1.000000,1.000000,0.375000,-1.000000,1.000000,0.250000,-1.000000,1.000000,0.125000,-1.000000,1.000000,-0.000000,-1.000000,1.000000,-0.125000,-1.000000,1.000000,-0.250000,-1.000000,1.000000,-0.375000,-1.000000,1.000000,-0.500000,-1.000000,1.000000,-0.625000,-1.000000,1.000000,-0.750000,-1.000000,1.000000,-0.875000,1.000000,-1.000000,-1.000000,1.000000,-1.000000,1.000000,-1.000000,-1.000000,1.000000,-1.000000,-1.000000,-1.000000,1.000000,1.000000,-1.000000,0.999999,1.000000,1.000000,-1.000000,1.000000,0.999999,-1.000000,1.000000,-1.000000], + "vertices": [0.000000,-1.000000,-0.000000,0.125000,-1.000000,-0.000000,0.250000,-1.000000,-0.000000,0.375000,-1.000000,-0.000000,0.500000,-1.000000,0.000000,0.625000,-1.000000,0.000000,0.750000,-1.000000,0.000000,0.875000,-1.000000,0.000000,0.000000,-1.000000,0.125000,0.000000,-1.000000,0.250000,0.000000,-1.000000,0.375000,-0.000000,-1.000000,0.500000,-0.000000,-1.000000,0.625000,-0.000000,-1.000000,0.750000,-0.000000,-1.000000,0.875000,-0.125000,-1.000000,-0.000000,-0.250000,-1.000000,-0.000000,-0.375000,-1.000000,-0.000000,-0.500000,-1.000000,-0.000000,-0.625000,-1.000000,-0.000000,-0.750000,-1.000000,-0.000000,-0.875000,-1.000000,-0.000000,0.000000,-1.000000,-0.125000,0.000000,-1.000000,-0.250000,0.000000,-1.000000,-0.375000,0.000000,-1.000000,-0.500000,0.000000,-1.000000,-0.625000,0.000000,-1.000000,-0.750000,0.000000,-1.000000,-0.875000,0.125000,-1.000000,-0.125000,0.250000,-1.000000,-0.125000,0.375000,-1.000000,-0.125000,0.500000,-1.000000,-0.125000,0.625000,-1.000000,-0.125000,0.750000,-1.000000,-0.125000,0.875000,-1.000000,-0.125000,0.125000,-1.000000,-0.250000,0.250000,-1.000000,-0.250000,0.375000,-1.000000,-0.250000,0.500000,-1.000000,-0.250000,0.625000,-1.000000,-0.250000,0.750000,-1.000000,-0.250000,0.875000,-1.000000,-0.250000,0.125000,-1.000000,-0.375000,0.250000,-1.000000,-0.375000,0.375000,-1.000000,-0.375000,0.500000,-1.000000,-0.375000,0.625000,-1.000000,-0.375000,0.750000,-1.000000,-0.375000,0.875000,-1.000000,-0.375000,0.125000,-1.000000,-0.500000,0.250000,-1.000000,-0.500000,0.375000,-1.000000,-0.500000,0.500000,-1.000000,-0.500000,0.625000,-1.000000,-0.500000,0.750000,-1.000000,-0.500000,0.875000,-1.000000,-0.500000,0.125000,-1.000000,-0.625000,0.250000,-1.000000,-0.625000,0.375000,-1.000000,-0.625000,0.500000,-1.000000,-0.625000,0.625000,-1.000000,-0.625000,0.750000,-1.000000,-0.625000,0.875000,-1.000000,-0.625000,0.125000,-1.000000,-0.750000,0.250000,-1.000000,-0.750000,0.375000,-1.000000,-0.750000,0.500000,-1.000000,-0.750000,0.625000,-1.000000,-0.750000,0.750000,-1.000000,-0.750000,0.875000,-1.000000,-0.750000,0.125000,-1.000000,-0.875000,0.250000,-1.000000,-0.875000,0.375000,-1.000000,-0.875000,0.500000,-1.000000,-0.875000,0.625000,-1.000000,-0.875000,0.750000,-1.000000,-0.875000,0.875000,-1.000000,-0.875000,0.125000,-1.000000,0.125000,0.125000,-1.000000,0.250000,0.125000,-1.000000,0.375000,0.125000,-1.000000,0.500000,0.125000,-1.000000,0.625000,0.125000,-1.000000,0.750000,0.125000,-1.000000,0.875000,0.250000,-1.000000,0.125000,0.250000,-1.000000,0.250000,0.250000,-1.000000,0.375000,0.250000,-1.000000,0.500000,0.250000,-1.000000,0.625000,0.250000,-1.000000,0.750000,0.250000,-1.000000,0.875000,0.375000,-1.000000,0.125000,0.375000,-1.000000,0.250000,0.375000,-1.000000,0.375000,0.375000,-1.000000,0.500000,0.375000,-1.000000,0.625000,0.375000,-1.000000,0.750000,0.375000,-1.000000,0.875000,0.500000,-1.000000,0.125000,0.500000,-1.000000,0.250000,0.500000,-1.000000,0.375000,0.500000,-1.000000,0.500000,0.500000,-1.000000,0.625000,0.500000,-1.000000,0.750000,0.500000,-1.000000,0.875000,0.625000,-1.000000,0.125000,0.625000,-1.000000,0.250000,0.625000,-1.000000,0.375000,0.625000,-1.000000,0.500000,0.625000,-1.000000,0.625000,0.625000,-1.000000,0.750000,0.625000,-1.000000,0.875000,0.750000,-1.000000,0.125000,0.750000,-1.000000,0.250000,0.750000,-1.000000,0.375000,0.750000,-1.000000,0.500000,0.750000,-1.000000,0.625000,0.750000,-1.000000,0.750000,0.750000,-1.000000,0.875000,0.875000,-1.000000,0.125000,0.875000,-1.000000,0.250000,0.875000,-1.000000,0.375000,0.875000,-1.000000,0.500000,0.875000,-1.000000,0.625000,0.875000,-1.000000,0.750000,0.875000,-1.000000,0.875000,-0.125000,-1.000000,0.125000,-0.250000,-1.000000,0.125000,-0.375000,-1.000000,0.125000,-0.500000,-1.000000,0.125000,-0.625000,-1.000000,0.125000,-0.750000,-1.000000,0.125000,-0.875000,-1.000000,0.125000,-0.125000,-1.000000,0.250000,-0.250000,-1.000000,0.250000,-0.375000,-1.000000,0.250000,-0.500000,-1.000000,0.250000,-0.625000,-1.000000,0.250000,-0.750000,-1.000000,0.250000,-0.875000,-1.000000,0.250000,-0.125000,-1.000000,0.375000,-0.250000,-1.000000,0.375000,-0.375000,-1.000000,0.375000,-0.500000,-1.000000,0.375000,-0.625000,-1.000000,0.375000,-0.750000,-1.000000,0.375000,-0.875000,-1.000000,0.375000,-0.125000,-1.000000,0.500000,-0.250000,-1.000000,0.500000,-0.375000,-1.000000,0.500000,-0.500000,-1.000000,0.500000,-0.625000,-1.000000,0.500000,-0.750000,-1.000000,0.500000,-0.875000,-1.000000,0.500000,-0.125000,-1.000000,0.625000,-0.250000,-1.000000,0.625000,-0.375000,-1.000000,0.625000,-0.500000,-1.000000,0.625000,-0.625000,-1.000000,0.625000,-0.750000,-1.000000,0.625000,-0.875000,-1.000000,0.625000,-0.125000,-1.000000,0.750000,-0.250000,-1.000000,0.750000,-0.375000,-1.000000,0.750000,-0.500000,-1.000000,0.750000,-0.625000,-1.000000,0.750000,-0.750000,-1.000000,0.750000,-0.875000,-1.000000,0.750000,-0.125000,-1.000000,0.875000,-0.250000,-1.000000,0.875000,-0.375000,-1.000000,0.875000,-0.500000,-1.000000,0.875000,-0.625000,-1.000000,0.875000,-0.750000,-1.000000,0.875000,-0.875000,-1.000000,0.875000,-0.125000,-1.000000,-0.125000,-0.125000,-1.000000,-0.250000,-0.125000,-1.000000,-0.375000,-0.125000,-1.000000,-0.500000,-0.125000,-1.000000,-0.625000,-0.125000,-1.000000,-0.750000,-0.125000,-1.000000,-0.875000,-0.250000,-1.000000,-0.125000,-0.250000,-1.000000,-0.250000,-0.250000,-1.000000,-0.375000,-0.250000,-1.000000,-0.500000,-0.250000,-1.000000,-0.625000,-0.250000,-1.000000,-0.750000,-0.250000,-1.000000,-0.875000,-0.375000,-1.000000,-0.125000,-0.375000,-1.000000,-0.250000,-0.375000,-1.000000,-0.375000,-0.375000,-1.000000,-0.500000,-0.375000,-1.000000,-0.625000,-0.375000,-1.000000,-0.750000,-0.375000,-1.000000,-0.875000,-0.500000,-1.000000,-0.125000,-0.500000,-1.000000,-0.250000,-0.500000,-1.000000,-0.375000,-0.500000,-1.000000,-0.500000,-0.500000,-1.000000,-0.625000,-0.500000,-1.000000,-0.750000,-0.500000,-1.000000,-0.875000,-0.625000,-1.000000,-0.125000,-0.625000,-1.000000,-0.250000,-0.625000,-1.000000,-0.375000,-0.625000,-1.000000,-0.500000,-0.625000,-1.000000,-0.625000,-0.625000,-1.000000,-0.750000,-0.625000,-1.000000,-0.875000,-0.750000,-1.000000,-0.125000,-0.750000,-1.000000,-0.250000,-0.750000,-1.000000,-0.375000,-0.750000,-1.000000,-0.500000,-0.750000,-1.000000,-0.625000,-0.750000,-1.000000,-0.750000,-0.750000,-1.000000,-0.875000,-0.875000,-1.000000,-0.125000,-0.875000,-1.000000,-0.250000,-0.875000,-1.000000,-0.375000,-0.875000,-1.000000,-0.500000,-0.875000,-1.000000,-0.625000,-0.875000,-1.000000,-0.750000,-0.875000,-1.000000,-0.875000,-0.000000,1.000000,0.000000,-0.000000,1.000000,-0.125000,-0.000000,1.000000,-0.250000,0.000000,1.000000,-0.375000,0.000000,1.000000,-0.500000,0.000000,1.000000,-0.625000,0.000000,1.000000,-0.750000,0.000000,1.000000,-0.875000,-0.125000,1.000000,0.000000,-0.250000,1.000000,0.000000,-0.375000,1.000000,0.000000,-0.500000,1.000000,-0.000000,-0.625000,1.000000,-0.000000,-0.750000,1.000000,-0.000000,-0.875000,1.000000,-0.000000,-0.000000,1.000000,0.125000,-0.000000,1.000000,0.250000,-0.000000,1.000000,0.375000,-0.000000,1.000000,0.500000,-0.000000,1.000000,0.625000,-0.000000,1.000000,0.750000,-0.000000,1.000000,0.875000,0.125000,1.000000,0.000000,0.250000,1.000000,0.000000,0.375000,1.000000,0.000000,0.500000,1.000000,0.000000,0.625000,1.000000,0.000000,0.750000,1.000000,0.000000,0.875000,1.000000,0.000000,0.125000,1.000000,-0.125000,0.125000,1.000000,-0.250000,0.125000,1.000000,-0.375000,0.125000,1.000000,-0.500000,0.125000,1.000000,-0.625000,0.125000,1.000000,-0.750000,0.125000,1.000000,-0.875000,0.250000,1.000000,-0.125000,0.250000,1.000000,-0.250000,0.250000,1.000000,-0.375000,0.250000,1.000000,-0.500000,0.250000,1.000000,-0.625000,0.250000,1.000000,-0.750000,0.250000,1.000000,-0.875000,0.375000,1.000000,-0.125000,0.375000,1.000000,-0.250000,0.375000,1.000000,-0.375000,0.375000,1.000000,-0.500000,0.375000,1.000000,-0.625000,0.375000,1.000000,-0.750000,0.375000,1.000000,-0.875000,0.500000,1.000000,-0.125000,0.500000,1.000000,-0.250000,0.500000,1.000000,-0.375000,0.500000,1.000000,-0.500000,0.500000,1.000000,-0.625000,0.500000,1.000000,-0.750000,0.500000,1.000000,-0.875000,0.625000,1.000000,-0.125000,0.625000,1.000000,-0.250000,0.625000,1.000000,-0.375000,0.625000,1.000000,-0.500000,0.625000,1.000000,-0.625000,0.625000,1.000000,-0.750000,0.625000,1.000000,-0.875000,0.750000,1.000000,-0.125000,0.750000,1.000000,-0.250000,0.750000,1.000000,-0.375000,0.750000,1.000000,-0.500000,0.750000,1.000000,-0.625000,0.750000,1.000000,-0.750000,0.750000,1.000000,-0.875000,0.875000,1.000000,-0.125000,0.875000,1.000000,-0.250000,0.875000,1.000000,-0.375000,0.875000,1.000000,-0.500000,0.875000,1.000000,-0.625000,0.875000,1.000000,-0.750000,0.875000,1.000000,-0.875000,-0.125000,1.000000,-0.125000,-0.250000,1.000000,-0.125000,-0.375000,1.000000,-0.125000,-0.500000,1.000000,-0.125000,-0.625000,1.000000,-0.125000,-0.750000,1.000000,-0.125000,-0.875000,1.000000,-0.125000,-0.125000,1.000000,-0.250000,-0.250000,1.000000,-0.250000,-0.375000,1.000000,-0.250000,-0.500000,1.000000,-0.250000,-0.625000,1.000000,-0.250000,-0.750000,1.000000,-0.250000,-0.875000,1.000000,-0.250000,-0.125000,1.000000,-0.375000,-0.250000,1.000000,-0.375000,-0.375000,1.000000,-0.375000,-0.500000,1.000000,-0.375000,-0.625000,1.000000,-0.375000,-0.750000,1.000000,-0.375000,-0.875000,1.000000,-0.375000,-0.125000,1.000000,-0.500000,-0.250000,1.000000,-0.500000,-0.375000,1.000000,-0.500000,-0.500000,1.000000,-0.500000,-0.625000,1.000000,-0.500000,-0.750000,1.000000,-0.500000,-0.875000,1.000000,-0.500000,-0.125000,1.000000,-0.625000,-0.250000,1.000000,-0.625000,-0.375000,1.000000,-0.625000,-0.500000,1.000000,-0.625000,-0.625000,1.000000,-0.625000,-0.750000,1.000000,-0.625000,-0.875000,1.000000,-0.625000,-0.125000,1.000000,-0.750000,-0.250000,1.000000,-0.750000,-0.375000,1.000000,-0.750000,-0.500000,1.000000,-0.750000,-0.625000,1.000000,-0.750000,-0.750000,1.000000,-0.750000,-0.875000,1.000000,-0.750000,-0.125000,1.000000,-0.875000,-0.250000,1.000000,-0.875000,-0.375000,1.000000,-0.875000,-0.500000,1.000000,-0.875000,-0.625000,1.000000,-0.875000,-0.750000,1.000000,-0.875000,-0.875000,1.000000,-0.875000,-0.125000,1.000000,0.125000,-0.125000,1.000000,0.250000,-0.125000,1.000000,0.375000,-0.125000,1.000000,0.500000,-0.125000,1.000000,0.625000,-0.125000,1.000000,0.750000,-0.125000,1.000000,0.875000,-0.250000,1.000000,0.125000,-0.250000,1.000000,0.250000,-0.250000,1.000000,0.375000,-0.250000,1.000000,0.500000,-0.250000,1.000000,0.625000,-0.250000,1.000000,0.750000,-0.250000,1.000000,0.875000,-0.375000,1.000000,0.125000,-0.375000,1.000000,0.250000,-0.375000,1.000000,0.375000,-0.375000,1.000000,0.500000,-0.375000,1.000000,0.625000,-0.375000,1.000000,0.750000,-0.375000,1.000000,0.875000,-0.500000,1.000000,0.125000,-0.500000,1.000000,0.250000,-0.500000,1.000000,0.375000,-0.500000,1.000000,0.500000,-0.500000,1.000000,0.625000,-0.500000,1.000000,0.750000,-0.500000,1.000000,0.875000,-0.625000,1.000000,0.125000,-0.625000,1.000000,0.250000,-0.625000,1.000000,0.375000,-0.625000,1.000000,0.500000,-0.625000,1.000000,0.625000,-0.625000,1.000000,0.750000,-0.625000,1.000000,0.875000,-0.750000,1.000000,0.125000,-0.750000,1.000000,0.250000,-0.750000,1.000000,0.375000,-0.750000,1.000000,0.500000,-0.750000,1.000000,0.625000,-0.750000,1.000000,0.750000,-0.750000,1.000000,0.875000,-0.875000,1.000000,0.125000,-0.875000,1.000000,0.250000,-0.875000,1.000000,0.375000,-0.875000,1.000000,0.500000,-0.875000,1.000000,0.625000,-0.875000,1.000000,0.750000,-0.875000,1.000000,0.875000,0.125000,1.000000,0.125000,0.250000,1.000000,0.125000,0.375000,1.000000,0.125000,0.500000,1.000000,0.125000,0.625000,1.000000,0.125000,0.750000,1.000000,0.125000,0.875000,1.000000,0.125000,0.125000,1.000000,0.250000,0.250000,1.000000,0.250000,0.375000,1.000000,0.250000,0.500000,1.000000,0.250000,0.625000,1.000000,0.250000,0.750000,1.000000,0.250000,0.875000,1.000000,0.250001,0.125000,1.000000,0.375000,0.250000,1.000000,0.375000,0.375000,1.000000,0.375000,0.500000,1.000000,0.375000,0.625000,1.000000,0.375000,0.750000,1.000000,0.375000,0.875000,1.000000,0.375001,0.125000,1.000000,0.500000,0.250000,1.000000,0.500000,0.375000,1.000000,0.500000,0.500000,1.000000,0.500000,0.625000,1.000000,0.500000,0.750000,1.000000,0.500000,0.875000,1.000000,0.500000,0.125000,1.000000,0.625000,0.250000,1.000000,0.625000,0.375000,1.000000,0.625000,0.500000,1.000000,0.625000,0.625000,1.000000,0.625000,0.750000,1.000000,0.625000,0.875000,1.000000,0.625000,0.125000,1.000000,0.750000,0.250000,1.000000,0.750000,0.375000,1.000000,0.750000,0.500000,1.000000,0.750000,0.625000,1.000000,0.750000,0.750000,1.000000,0.750000,0.875000,1.000000,0.750000,0.125000,1.000000,0.875000,0.250000,1.000000,0.875000,0.374999,1.000000,0.875000,0.499999,1.000000,0.875000,0.624999,1.000000,0.875000,0.749999,1.000000,0.875000,0.874999,1.000000,0.875000,1.000000,0.000000,0.000000,1.000000,-0.000000,-0.125000,1.000000,-0.000000,-0.250000,1.000000,-0.000000,-0.375000,1.000000,-0.000000,-0.500000,1.000000,-0.000000,-0.625000,1.000000,-0.000000,-0.750000,1.000000,-0.000000,-0.875000,1.000000,0.125000,0.000000,1.000000,0.250000,0.000000,1.000000,0.375000,0.000000,1.000000,0.500000,0.000000,1.000000,0.625000,0.000000,1.000000,0.750000,0.000000,1.000000,0.875000,0.000000,1.000000,0.000000,0.125000,1.000000,0.000000,0.250000,1.000000,0.000000,0.375000,1.000000,0.000000,0.500000,1.000000,0.000000,0.625000,1.000000,0.000000,0.750000,1.000000,0.000000,0.875000,1.000000,-0.125000,0.000000,1.000000,-0.250000,0.000000,1.000000,-0.375000,0.000000,1.000000,-0.500000,0.000000,1.000000,-0.625000,0.000000,1.000000,-0.750000,0.000000,1.000000,-0.875000,0.000000,1.000000,-0.125000,-0.125000,1.000000,-0.125000,-0.250000,1.000000,-0.125000,-0.375000,1.000000,-0.125000,-0.500000,1.000000,-0.125000,-0.625000,1.000000,-0.125000,-0.750000,1.000000,-0.125000,-0.875000,1.000000,-0.250000,-0.125000,1.000000,-0.250000,-0.250000,1.000000,-0.250000,-0.375000,1.000000,-0.250000,-0.500000,1.000000,-0.250000,-0.625000,1.000000,-0.250000,-0.750000,1.000000,-0.250000,-0.875000,1.000000,-0.375000,-0.125000,1.000000,-0.375000,-0.250000,1.000000,-0.375000,-0.375000,1.000000,-0.375000,-0.500000,1.000000,-0.375000,-0.625000,1.000000,-0.375000,-0.750000,1.000000,-0.375000,-0.875000,1.000000,-0.500000,-0.125000,1.000000,-0.500000,-0.250000,1.000000,-0.500000,-0.375000,1.000000,-0.500000,-0.500000,1.000000,-0.500000,-0.625000,1.000000,-0.500000,-0.750000,1.000000,-0.500000,-0.875000,1.000000,-0.625000,-0.125000,1.000000,-0.625000,-0.250000,1.000000,-0.625000,-0.375000,1.000000,-0.625000,-0.500000,1.000000,-0.625000,-0.625000,1.000000,-0.625000,-0.750000,1.000000,-0.625000,-0.875000,1.000000,-0.750000,-0.125000,1.000000,-0.750000,-0.250000,1.000000,-0.750000,-0.375000,1.000000,-0.750000,-0.500000,1.000000,-0.750000,-0.625000,1.000000,-0.750000,-0.750000,1.000000,-0.750000,-0.875000,1.000000,-0.875000,-0.125000,1.000000,-0.875000,-0.250000,1.000000,-0.875000,-0.375000,1.000000,-0.875000,-0.500000,1.000000,-0.875000,-0.625000,1.000000,-0.875000,-0.750000,1.000000,-0.875000,-0.875000,1.000000,0.125000,-0.125000,1.000000,0.250000,-0.125000,1.000000,0.375000,-0.125000,1.000000,0.500000,-0.125000,1.000000,0.625000,-0.125000,1.000000,0.750000,-0.125000,1.000000,0.875000,-0.125000,1.000000,0.125000,-0.250000,1.000000,0.250000,-0.250000,1.000000,0.375000,-0.250000,1.000000,0.500000,-0.250000,1.000000,0.625000,-0.250000,1.000000,0.750000,-0.250000,1.000000,0.875000,-0.250000,1.000000,0.125000,-0.375000,1.000000,0.250000,-0.375000,1.000000,0.375000,-0.375000,1.000000,0.500000,-0.375000,1.000000,0.625000,-0.375000,1.000000,0.750000,-0.375000,1.000000,0.875000,-0.375000,1.000000,0.125000,-0.500000,1.000000,0.250000,-0.500000,1.000000,0.375000,-0.500000,1.000000,0.500000,-0.500000,1.000000,0.625000,-0.500000,1.000000,0.750000,-0.500000,1.000000,0.875000,-0.500000,1.000000,0.125000,-0.625000,1.000000,0.250000,-0.625000,1.000000,0.375000,-0.625000,1.000000,0.500000,-0.625000,1.000000,0.625000,-0.625000,1.000000,0.750000,-0.625000,1.000000,0.875000,-0.625000,1.000000,0.125000,-0.750000,1.000000,0.250000,-0.750000,1.000000,0.375000,-0.750000,1.000000,0.500000,-0.750000,1.000000,0.625000,-0.750000,1.000000,0.750000,-0.750000,1.000000,0.875000,-0.750000,1.000000,0.125000,-0.875000,1.000000,0.250000,-0.875000,1.000000,0.375000,-0.875000,1.000000,0.500000,-0.875000,1.000000,0.625000,-0.875000,1.000000,0.750000,-0.875000,1.000000,0.875000,-0.875000,1.000000,0.125000,0.125000,1.000000,0.125000,0.250000,1.000000,0.125000,0.375000,1.000000,0.125000,0.500000,1.000000,0.125000,0.625000,1.000000,0.125000,0.750000,1.000000,0.125000,0.875000,1.000000,0.250000,0.125000,1.000000,0.250000,0.250000,1.000000,0.250000,0.375000,1.000000,0.250000,0.500000,1.000000,0.250000,0.625000,1.000000,0.250000,0.750000,1.000000,0.250000,0.875000,1.000000,0.375000,0.125000,1.000000,0.375000,0.250000,1.000000,0.375000,0.375000,1.000000,0.375000,0.500000,1.000000,0.375000,0.625000,1.000000,0.375000,0.750000,1.000000,0.375000,0.875000,1.000000,0.500000,0.125000,1.000000,0.500000,0.250000,1.000000,0.500000,0.375000,1.000000,0.500000,0.500000,1.000000,0.500000,0.625000,1.000000,0.500000,0.750000,1.000000,0.500000,0.875000,1.000000,0.625000,0.125000,1.000000,0.625000,0.250000,1.000000,0.625000,0.375000,1.000000,0.625000,0.500000,1.000000,0.625000,0.625000,1.000000,0.625000,0.750000,1.000000,0.625000,0.875000,1.000000,0.750000,0.125000,1.000000,0.750000,0.250000,1.000000,0.750000,0.375001,1.000000,0.750000,0.500000,1.000000,0.750000,0.625000,1.000000,0.750000,0.750000,0.999999,0.750000,0.875000,1.000000,0.875000,0.125000,1.000000,0.875000,0.250001,1.000000,0.875000,0.375001,1.000000,0.875000,0.500001,1.000000,0.875000,0.625001,1.000000,0.875000,0.750001,0.999999,0.875000,0.875000,1.000000,-0.125000,0.125000,1.000000,-0.250000,0.125000,1.000000,-0.375000,0.125000,1.000000,-0.500000,0.125000,1.000000,-0.625000,0.125000,1.000000,-0.750000,0.125000,1.000000,-0.875000,0.125000,1.000000,-0.125000,0.250000,1.000000,-0.250000,0.250000,1.000000,-0.375000,0.250000,1.000000,-0.500000,0.250000,1.000000,-0.625000,0.250000,1.000000,-0.750000,0.250000,1.000000,-0.875000,0.250000,1.000000,-0.125000,0.375000,1.000000,-0.250000,0.375000,1.000000,-0.375000,0.375000,1.000000,-0.500000,0.375000,1.000000,-0.625000,0.375000,1.000000,-0.750000,0.375000,1.000000,-0.875000,0.375000,1.000000,-0.125000,0.500000,1.000000,-0.250000,0.500000,1.000000,-0.375000,0.500000,1.000000,-0.500000,0.500000,1.000000,-0.625000,0.500000,1.000000,-0.750000,0.500000,1.000000,-0.875000,0.500000,1.000000,-0.125000,0.625000,1.000000,-0.250000,0.625000,1.000000,-0.375000,0.625000,1.000000,-0.500000,0.625000,1.000000,-0.625000,0.625000,1.000000,-0.750000,0.625000,1.000000,-0.875000,0.625000,1.000000,-0.125000,0.750000,1.000000,-0.250000,0.750000,1.000000,-0.375000,0.750000,1.000000,-0.500000,0.750000,1.000000,-0.625000,0.750000,1.000000,-0.750000,0.750000,1.000000,-0.875000,0.750000,1.000000,-0.125000,0.875000,1.000000,-0.250000,0.875000,1.000000,-0.375000,0.875000,1.000000,-0.500000,0.875000,1.000000,-0.625000,0.875000,1.000000,-0.750000,0.875000,1.000000,-0.875000,0.875000,-0.000000,0.000000,1.000000,0.125000,0.000000,1.000000,0.250000,0.000000,1.000000,0.375000,0.000000,1.000000,0.500000,0.000000,1.000000,0.625000,0.000000,1.000000,0.750000,0.000000,1.000000,0.875000,0.000000,1.000000,-0.000000,0.125000,1.000000,-0.000000,0.250000,1.000000,-0.000000,0.375000,1.000000,-0.000000,0.500000,1.000000,-0.000000,0.625000,1.000000,-0.000000,0.750000,1.000000,-0.000000,0.875000,1.000000,-0.125000,0.000000,1.000000,-0.250000,0.000000,1.000000,-0.375000,0.000000,1.000000,-0.500000,0.000000,1.000000,-0.625000,0.000000,1.000000,-0.750000,0.000000,1.000000,-0.875000,0.000000,1.000000,-0.000000,-0.125000,1.000000,-0.000000,-0.250000,1.000000,-0.000000,-0.375000,1.000000,-0.000000,-0.500000,1.000000,-0.000000,-0.625000,1.000000,-0.000000,-0.750000,1.000000,-0.000000,-0.875000,1.000000,0.125000,-0.125000,1.000000,0.250000,-0.125000,1.000000,0.375000,-0.125000,1.000000,0.500000,-0.125000,1.000000,0.625000,-0.125000,1.000000,0.750000,-0.125000,1.000000,0.875000,-0.125000,1.000000,0.125000,-0.250000,1.000000,0.250000,-0.250000,1.000000,0.375000,-0.250000,1.000000,0.500000,-0.250000,1.000000,0.625000,-0.250000,1.000000,0.750000,-0.250000,1.000000,0.875000,-0.250000,1.000000,0.125000,-0.375000,1.000000,0.250000,-0.375000,1.000000,0.375000,-0.375000,1.000000,0.500000,-0.375000,1.000000,0.625000,-0.375000,1.000000,0.750000,-0.375000,1.000000,0.875000,-0.375000,1.000000,0.125000,-0.500000,1.000000,0.250000,-0.500000,1.000000,0.375000,-0.500000,1.000000,0.500000,-0.500000,1.000000,0.625000,-0.500000,1.000000,0.750000,-0.500000,1.000000,0.875000,-0.500000,1.000000,0.125000,-0.625000,1.000000,0.250000,-0.625000,1.000000,0.375000,-0.625000,1.000000,0.500000,-0.625000,1.000000,0.625000,-0.625000,1.000000,0.750000,-0.625000,1.000000,0.875000,-0.625000,1.000000,0.125000,-0.750000,1.000000,0.250000,-0.750000,1.000000,0.375000,-0.750000,1.000000,0.500000,-0.750000,1.000000,0.625000,-0.750000,1.000000,0.750000,-0.750000,1.000000,0.875000,-0.750000,1.000000,0.125000,-0.875000,1.000000,0.250000,-0.875000,1.000000,0.375000,-0.875000,1.000000,0.500000,-0.875000,1.000000,0.625000,-0.875000,1.000000,0.750000,-0.875000,1.000000,0.875000,-0.875000,1.000000,0.125000,0.125000,1.000000,0.125000,0.250000,1.000000,0.125000,0.375000,1.000000,0.125000,0.500000,1.000000,0.125000,0.625000,1.000000,0.125000,0.750000,1.000000,0.125000,0.875000,1.000000,0.250000,0.125000,1.000000,0.250000,0.250000,1.000000,0.250000,0.375000,1.000000,0.250000,0.500000,1.000000,0.250000,0.625000,1.000000,0.250000,0.750000,1.000000,0.249999,0.875000,1.000000,0.375000,0.125000,1.000000,0.375000,0.250000,1.000000,0.375000,0.375000,1.000000,0.375000,0.500000,1.000000,0.375000,0.625000,1.000000,0.374999,0.750000,1.000000,0.374999,0.875000,1.000000,0.500000,0.125000,1.000000,0.500000,0.250000,1.000000,0.500000,0.375000,1.000000,0.500000,0.500000,1.000000,0.500000,0.625000,1.000000,0.499999,0.750000,1.000000,0.499999,0.875000,1.000000,0.625000,0.125000,1.000000,0.625000,0.250000,1.000000,0.625000,0.375000,1.000000,0.625000,0.500000,1.000000,0.625000,0.625000,1.000000,0.624999,0.750000,1.000000,0.624999,0.875000,1.000000,0.750000,0.125000,1.000000,0.750000,0.250000,1.000000,0.750000,0.375000,1.000000,0.750000,0.500000,1.000000,0.750000,0.625000,1.000000,0.749999,0.750000,1.000000,0.749999,0.875000,1.000000,0.875000,0.125000,1.000000,0.875000,0.250000,1.000000,0.875000,0.375000,1.000000,0.875000,0.500000,1.000000,0.874999,0.625000,1.000000,0.874999,0.750000,1.000000,0.874999,0.875000,1.000000,-0.125000,0.125000,1.000000,-0.250000,0.125000,1.000000,-0.375000,0.125000,1.000000,-0.500000,0.125000,1.000000,-0.625000,0.125000,1.000000,-0.750000,0.125000,1.000000,-0.875000,0.125000,1.000000,-0.125000,0.250000,1.000000,-0.250000,0.250000,1.000000,-0.375000,0.250000,1.000000,-0.500000,0.250000,1.000000,-0.625000,0.250000,1.000000,-0.750000,0.250000,1.000000,-0.875000,0.250000,1.000000,-0.125000,0.375000,1.000000,-0.250000,0.375000,1.000000,-0.375000,0.375000,1.000000,-0.500000,0.375000,1.000000,-0.625000,0.375000,1.000000,-0.750000,0.375000,1.000000,-0.875000,0.375000,1.000000,-0.125000,0.500000,1.000000,-0.250000,0.500000,1.000000,-0.375000,0.500000,1.000000,-0.500000,0.500000,1.000000,-0.625000,0.500000,1.000000,-0.750000,0.500000,1.000000,-0.875000,0.500000,1.000000,-0.125000,0.625000,1.000000,-0.250000,0.625000,1.000000,-0.375000,0.625000,1.000000,-0.500000,0.625000,1.000000,-0.625000,0.625000,1.000000,-0.750000,0.625000,1.000000,-0.875000,0.625000,1.000000,-0.125000,0.750000,1.000000,-0.250000,0.750000,1.000000,-0.375000,0.750000,1.000000,-0.500000,0.750000,1.000000,-0.625000,0.750000,1.000000,-0.750000,0.750000,1.000000,-0.875000,0.750000,1.000000,-0.125000,0.875000,1.000000,-0.250000,0.875000,1.000000,-0.375000,0.875000,1.000000,-0.500000,0.875000,1.000000,-0.625000,0.875000,1.000000,-0.750000,0.875000,1.000000,-0.875000,0.875000,1.000000,-0.125000,-0.125000,1.000000,-0.125000,-0.250000,1.000000,-0.125000,-0.375000,1.000000,-0.125000,-0.500000,1.000000,-0.125000,-0.625000,1.000000,-0.125000,-0.750000,1.000000,-0.125000,-0.875000,1.000000,-0.250000,-0.125000,1.000000,-0.250000,-0.250000,1.000000,-0.250000,-0.375000,1.000000,-0.250000,-0.500000,1.000000,-0.250000,-0.625000,1.000000,-0.250000,-0.750000,1.000000,-0.250000,-0.875000,1.000000,-0.375000,-0.125000,1.000000,-0.375000,-0.250000,1.000000,-0.375000,-0.375000,1.000000,-0.375000,-0.500000,1.000000,-0.375000,-0.625000,1.000000,-0.375000,-0.750000,1.000000,-0.375000,-0.875000,1.000000,-0.500000,-0.125000,1.000000,-0.500000,-0.250000,1.000000,-0.500000,-0.375000,1.000000,-0.500000,-0.500000,1.000000,-0.500000,-0.625000,1.000000,-0.500000,-0.750000,1.000000,-0.500000,-0.875000,1.000000,-0.625000,-0.125000,1.000000,-0.625000,-0.250000,1.000000,-0.625000,-0.375000,1.000000,-0.625000,-0.500000,1.000000,-0.625000,-0.625000,1.000000,-0.625000,-0.750000,1.000000,-0.625000,-0.875000,1.000000,-0.750000,-0.125000,1.000000,-0.750000,-0.250000,1.000000,-0.750000,-0.375000,1.000000,-0.750000,-0.500000,1.000000,-0.750000,-0.625000,1.000000,-0.750000,-0.750000,1.000000,-0.750000,-0.875000,1.000000,-0.875000,-0.125000,1.000000,-0.875000,-0.250000,1.000000,-0.875000,-0.375000,1.000000,-0.875000,-0.500000,1.000000,-0.875000,-0.625000,1.000000,-0.875000,-0.750000,1.000000,-0.875000,-0.875000,1.000000,-1.000000,-0.000000,-0.000000,-1.000000,0.000000,0.125000,-1.000000,0.000000,0.250000,-1.000000,0.000000,0.375000,-1.000000,0.000000,0.500000,-1.000000,0.000000,0.625000,-1.000000,0.000000,0.750000,-1.000000,0.000000,0.875000,-1.000000,0.125000,-0.000000,-1.000000,0.250000,-0.000000,-1.000000,0.375000,-0.000000,-1.000000,0.500000,-0.000000,-1.000000,0.625000,-0.000000,-1.000000,0.750000,-0.000000,-1.000000,0.875000,-0.000000,-1.000000,-0.000000,-0.125000,-1.000000,-0.000000,-0.250000,-1.000000,-0.000000,-0.375000,-1.000000,-0.000000,-0.500000,-1.000000,-0.000000,-0.625000,-1.000000,-0.000000,-0.750000,-1.000000,-0.000000,-0.875000,-1.000000,-0.125000,-0.000000,-1.000000,-0.250000,-0.000000,-1.000000,-0.375000,-0.000000,-1.000000,-0.500000,-0.000000,-1.000000,-0.625000,-0.000000,-1.000000,-0.750000,-0.000000,-1.000000,-0.875000,-0.000000,-1.000000,-0.125000,0.125000,-1.000000,-0.125000,0.250000,-1.000000,-0.125000,0.375000,-1.000000,-0.125000,0.500000,-1.000000,-0.125000,0.625000,-1.000000,-0.125000,0.750000,-1.000000,-0.125000,0.875000,-1.000000,-0.250000,0.125000,-1.000000,-0.250000,0.250000,-1.000000,-0.250000,0.375000,-1.000000,-0.250000,0.500000,-1.000000,-0.250000,0.625000,-1.000000,-0.250000,0.750000,-1.000000,-0.250000,0.875000,-1.000000,-0.375000,0.125000,-1.000000,-0.375000,0.250000,-1.000000,-0.375000,0.375000,-1.000000,-0.375000,0.500000,-1.000000,-0.375000,0.625000,-1.000000,-0.375000,0.750000,-1.000000,-0.375000,0.875000,-1.000000,-0.500000,0.125000,-1.000000,-0.500000,0.250000,-1.000000,-0.500000,0.375000,-1.000000,-0.500000,0.500000,-1.000000,-0.500000,0.625000,-1.000000,-0.500000,0.750000,-1.000000,-0.500000,0.875000,-1.000000,-0.625000,0.125000,-1.000000,-0.625000,0.250000,-1.000000,-0.625000,0.375000,-1.000000,-0.625000,0.500000,-1.000000,-0.625000,0.625000,-1.000000,-0.625000,0.750000,-1.000000,-0.625000,0.875000,-1.000000,-0.750000,0.125000,-1.000000,-0.750000,0.250000,-1.000000,-0.750000,0.375000,-1.000000,-0.750000,0.500000,-1.000000,-0.750000,0.625000,-1.000000,-0.750000,0.750000,-1.000000,-0.750000,0.875000,-1.000000,-0.875000,0.125000,-1.000000,-0.875000,0.250000,-1.000000,-0.875000,0.375000,-1.000000,-0.875000,0.500000,-1.000000,-0.875000,0.625000,-1.000000,-0.875000,0.750000,-1.000000,-0.875000,0.875000,-1.000000,0.125000,0.125000,-1.000000,0.250000,0.125000,-1.000000,0.375000,0.125000,-1.000000,0.500000,0.125000,-1.000000,0.625000,0.125000,-1.000000,0.750000,0.125000,-1.000000,0.875000,0.125000,-1.000000,0.125000,0.250000,-1.000000,0.250000,0.250000,-1.000000,0.375000,0.250000,-1.000000,0.500000,0.250000,-1.000000,0.625000,0.250000,-1.000000,0.750000,0.250000,-1.000000,0.875000,0.250000,-1.000000,0.125000,0.375000,-1.000000,0.250000,0.375000,-1.000000,0.375000,0.375000,-1.000000,0.500000,0.375000,-1.000000,0.625000,0.375000,-1.000000,0.750000,0.375000,-1.000000,0.875000,0.375000,-1.000000,0.125000,0.500000,-1.000000,0.250000,0.500000,-1.000000,0.375000,0.500000,-1.000000,0.500000,0.500000,-1.000000,0.625000,0.500000,-1.000000,0.750000,0.500000,-1.000000,0.875000,0.500000,-1.000000,0.125000,0.625000,-1.000000,0.250000,0.625000,-1.000000,0.375000,0.625000,-1.000000,0.500000,0.625000,-1.000000,0.625000,0.625000,-1.000000,0.750000,0.625000,-1.000000,0.875000,0.625000,-1.000000,0.125000,0.750000,-1.000000,0.250000,0.750000,-1.000000,0.375000,0.750000,-1.000000,0.500000,0.750000,-1.000000,0.625000,0.750000,-1.000000,0.750000,0.750000,-1.000000,0.875000,0.750000,-1.000000,0.125000,0.875000,-1.000000,0.250000,0.875000,-1.000000,0.375000,0.875000,-1.000000,0.500000,0.875000,-1.000000,0.625000,0.875000,-1.000000,0.750000,0.875000,-1.000000,0.875000,0.875000,-1.000000,0.125000,-0.125000,-1.000000,0.125000,-0.250000,-1.000000,0.125000,-0.375000,-1.000000,0.125000,-0.500000,-1.000000,0.125000,-0.625000,-1.000000,0.125000,-0.750000,-1.000000,0.125000,-0.875000,-1.000000,0.250000,-0.125000,-1.000000,0.250000,-0.250000,-1.000000,0.250000,-0.375000,-1.000000,0.250000,-0.500000,-1.000000,0.250000,-0.625000,-1.000000,0.250000,-0.750000,-1.000000,0.250000,-0.875000,-1.000000,0.375000,-0.125000,-1.000000,0.375000,-0.250000,-1.000000,0.375000,-0.375000,-1.000000,0.375000,-0.500000,-1.000000,0.375000,-0.625000,-1.000000,0.375000,-0.750000,-1.000000,0.375000,-0.875000,-1.000000,0.500000,-0.125000,-1.000000,0.500000,-0.250000,-1.000000,0.500000,-0.375000,-1.000000,0.500000,-0.500000,-1.000000,0.500000,-0.625000,-1.000000,0.500000,-0.750000,-1.000000,0.500000,-0.875000,-1.000000,0.625000,-0.125000,-1.000000,0.625000,-0.250000,-1.000000,0.625000,-0.375000,-1.000000,0.625000,-0.500000,-1.000000,0.625000,-0.625000,-1.000000,0.625000,-0.750000,-1.000000,0.625000,-0.875000,-1.000000,0.750000,-0.125000,-1.000000,0.750000,-0.250000,-1.000000,0.750000,-0.375000,-1.000000,0.750000,-0.500000,-1.000000,0.750000,-0.625000,-1.000000,0.750000,-0.750000,-1.000000,0.750000,-0.875000,-1.000000,0.875000,-0.125000,-1.000000,0.875000,-0.250000,-1.000000,0.875000,-0.375000,-1.000000,0.875000,-0.500000,-1.000000,0.875000,-0.625000,-1.000000,0.875000,-0.750000,-1.000000,0.875000,-0.875000,-1.000000,-0.125000,-0.125000,-1.000000,-0.250000,-0.125000,-1.000000,-0.375000,-0.125000,-1.000000,-0.500000,-0.125000,-1.000000,-0.625000,-0.125000,-1.000000,-0.750000,-0.125000,-1.000000,-0.875000,-0.125000,-1.000000,-0.125000,-0.250000,-1.000000,-0.250000,-0.250000,-1.000000,-0.375000,-0.250000,-1.000000,-0.500000,-0.250000,-1.000000,-0.625000,-0.250000,-1.000000,-0.750000,-0.250000,-1.000000,-0.875000,-0.250000,-1.000000,-0.125000,-0.375000,-1.000000,-0.250000,-0.375000,-1.000000,-0.375000,-0.375000,-1.000000,-0.500000,-0.375000,-1.000000,-0.625000,-0.375000,-1.000000,-0.750000,-0.375000,-1.000000,-0.875000,-0.375000,-1.000000,-0.125000,-0.500000,-1.000000,-0.250000,-0.500000,-1.000000,-0.375000,-0.500000,-1.000000,-0.500000,-0.500000,-1.000000,-0.625000,-0.500000,-1.000000,-0.750000,-0.500000,-1.000000,-0.875000,-0.500000,-1.000000,-0.125000,-0.625000,-1.000000,-0.250000,-0.625000,-1.000000,-0.375000,-0.625000,-1.000000,-0.500000,-0.625000,-1.000000,-0.625000,-0.625000,-1.000000,-0.750000,-0.625000,-1.000000,-0.875000,-0.625000,-1.000000,-0.125000,-0.750000,-1.000000,-0.250000,-0.750000,-1.000000,-0.375000,-0.750000,-1.000000,-0.500000,-0.750000,-1.000000,-0.625000,-0.750000,-1.000000,-0.750000,-0.750000,-1.000000,-0.875000,-0.750000,-1.000000,-0.125000,-0.875000,-1.000000,-0.250000,-0.875000,-1.000000,-0.375000,-0.875000,-1.000000,-0.500000,-0.875000,-1.000000,-0.625000,-0.875000,-1.000000,-0.750000,-0.875000,-1.000000,-0.875000,-0.875000,0.000000,-0.000000,-1.000000,0.125000,-0.000000,-1.000000,0.250000,-0.000000,-1.000000,0.375000,-0.000000,-1.000000,0.500000,-0.000000,-1.000000,0.625000,-0.000000,-1.000000,0.750000,-0.000000,-1.000000,0.875000,-0.000000,-1.000000,0.000000,-0.125000,-1.000000,0.000000,-0.250000,-1.000000,0.000000,-0.375000,-1.000000,0.000000,-0.500000,-1.000000,0.000000,-0.625000,-1.000000,0.000000,-0.750000,-1.000000,0.000000,-0.875000,-1.000000,-0.125000,-0.000000,-1.000000,-0.250000,-0.000000,-1.000000,-0.375000,-0.000000,-1.000000,-0.500000,-0.000000,-1.000000,-0.625000,-0.000000,-1.000000,-0.750000,-0.000000,-1.000000,-0.875000,-0.000000,-1.000000,0.000000,0.125000,-1.000000,0.000000,0.250000,-1.000000,0.000000,0.375000,-1.000000,0.000000,0.500000,-1.000000,0.000000,0.625000,-1.000000,0.000000,0.750000,-1.000000,0.000000,0.875000,-1.000000,0.125000,0.125000,-1.000000,0.250000,0.125000,-1.000000,0.375000,0.125000,-1.000000,0.500000,0.125000,-1.000000,0.625000,0.125000,-1.000000,0.750000,0.125000,-1.000000,0.875000,0.125000,-1.000000,0.125000,0.250000,-1.000000,0.250000,0.250000,-1.000000,0.375000,0.250000,-1.000000,0.500000,0.250000,-1.000000,0.625000,0.250000,-1.000000,0.750000,0.250000,-1.000000,0.875000,0.250000,-1.000000,0.125000,0.375000,-1.000000,0.250000,0.375000,-1.000000,0.375000,0.375000,-1.000000,0.500000,0.375000,-1.000000,0.625000,0.375000,-1.000000,0.750000,0.375000,-1.000000,0.875000,0.375000,-1.000000,0.125000,0.500000,-1.000000,0.250000,0.500000,-1.000000,0.375000,0.500000,-1.000000,0.500000,0.500000,-1.000000,0.625000,0.500000,-1.000000,0.750000,0.500000,-1.000000,0.875000,0.500000,-1.000000,0.125000,0.625000,-1.000000,0.250000,0.625000,-1.000000,0.375000,0.625000,-1.000000,0.500000,0.625000,-1.000000,0.625000,0.625000,-1.000000,0.750000,0.625000,-1.000000,0.875000,0.625000,-1.000000,0.125000,0.750000,-1.000000,0.250000,0.750000,-1.000000,0.375000,0.750000,-1.000000,0.500000,0.750000,-1.000000,0.625000,0.750000,-1.000000,0.750000,0.750000,-1.000000,0.875000,0.750000,-1.000000,0.125000,0.875000,-1.000000,0.250000,0.875000,-1.000000,0.375000,0.875000,-1.000000,0.500000,0.875000,-1.000000,0.625000,0.875000,-1.000000,0.750000,0.875000,-1.000000,0.875000,0.875000,-1.000000,0.125000,-0.125000,-1.000000,0.125000,-0.250000,-1.000000,0.125000,-0.375000,-1.000000,0.125000,-0.500000,-1.000000,0.125000,-0.625000,-1.000000,0.125000,-0.750000,-1.000000,0.125000,-0.875000,-1.000000,0.250000,-0.125000,-1.000000,0.250000,-0.250000,-1.000000,0.250000,-0.375000,-1.000000,0.250000,-0.500000,-1.000000,0.250000,-0.625000,-1.000000,0.250000,-0.750000,-1.000000,0.250000,-0.875000,-1.000000,0.375000,-0.125000,-1.000000,0.375000,-0.250000,-1.000000,0.375000,-0.375000,-1.000000,0.375000,-0.500000,-1.000000,0.375000,-0.625000,-1.000000,0.375000,-0.750000,-1.000000,0.375000,-0.875000,-1.000000,0.500000,-0.125000,-1.000000,0.500000,-0.250000,-1.000000,0.500000,-0.375000,-1.000000,0.500000,-0.500000,-1.000000,0.500000,-0.625000,-1.000000,0.500000,-0.750000,-1.000000,0.500000,-0.875000,-1.000000,0.625000,-0.125000,-1.000000,0.625000,-0.250000,-1.000000,0.625000,-0.375000,-1.000000,0.625000,-0.500000,-1.000000,0.625000,-0.625000,-1.000000,0.625000,-0.750000,-1.000000,0.625000,-0.875000,-1.000000,0.750000,-0.125000,-1.000000,0.750000,-0.250000,-1.000000,0.750000,-0.375000,-1.000000,0.750000,-0.500000,-1.000000,0.750000,-0.625000,-1.000000,0.750000,-0.750000,-1.000000,0.750000,-0.875000,-1.000000,0.875000,-0.125000,-1.000000,0.875000,-0.250000,-1.000000,0.875000,-0.375000,-1.000000,0.875000,-0.500000,-1.000000,0.875000,-0.625000,-1.000000,0.875000,-0.750000,-1.000000,0.875000,-0.875000,-1.000000,-0.125000,-0.125000,-1.000000,-0.250000,-0.125000,-1.000000,-0.375000,-0.125000,-1.000000,-0.500000,-0.125000,-1.000000,-0.625000,-0.125000,-1.000000,-0.750000,-0.125000,-1.000000,-0.875000,-0.125000,-1.000000,-0.125000,-0.250000,-1.000000,-0.250000,-0.250000,-1.000000,-0.375000,-0.250000,-1.000000,-0.500000,-0.250000,-1.000000,-0.625000,-0.250000,-1.000000,-0.750000,-0.250000,-1.000000,-0.875000,-0.250000,-1.000000,-0.125000,-0.375000,-1.000000,-0.250000,-0.375000,-1.000000,-0.375000,-0.375000,-1.000000,-0.500000,-0.375000,-1.000000,-0.625000,-0.375000,-1.000000,-0.750000,-0.375000,-1.000000,-0.875000,-0.375000,-1.000000,-0.125000,-0.500000,-1.000000,-0.250000,-0.500000,-1.000000,-0.375000,-0.500000,-1.000000,-0.500000,-0.500000,-1.000000,-0.625000,-0.500000,-1.000000,-0.750000,-0.500000,-1.000000,-0.875000,-0.500000,-1.000000,-0.125000,-0.625000,-1.000000,-0.250000,-0.625000,-1.000000,-0.375000,-0.625000,-1.000000,-0.500000,-0.625000,-1.000000,-0.625000,-0.625000,-1.000000,-0.750000,-0.625000,-1.000000,-0.875000,-0.625000,-1.000000,-0.125000,-0.750000,-1.000000,-0.250000,-0.750000,-1.000000,-0.375000,-0.750000,-1.000000,-0.500000,-0.750000,-1.000000,-0.625000,-0.750000,-1.000000,-0.750000,-0.750000,-1.000000,-0.875000,-0.750000,-1.000000,-0.125000,-0.875000,-1.000000,-0.250000,-0.875000,-1.000000,-0.375000,-0.875000,-1.000000,-0.500000,-0.875000,-1.000000,-0.625000,-0.875000,-1.000000,-0.750000,-0.875000,-1.000000,-0.875000,-0.875000,-1.000000,-0.125000,0.125000,-1.000000,-0.125000,0.250000,-1.000000,-0.125000,0.375000,-1.000000,-0.125000,0.500000,-1.000000,-0.125000,0.625000,-1.000000,-0.125000,0.750000,-1.000000,-0.125000,0.875000,-1.000000,-0.250000,0.125000,-1.000000,-0.250000,0.250000,-1.000000,-0.250000,0.375000,-1.000000,-0.250000,0.500000,-1.000000,-0.250000,0.625000,-1.000000,-0.250000,0.750000,-1.000000,-0.250000,0.875000,-1.000000,-0.375000,0.125000,-1.000000,-0.375000,0.250000,-1.000000,-0.375000,0.375000,-1.000000,-0.375000,0.500000,-1.000000,-0.375000,0.625000,-1.000000,-0.375000,0.750000,-1.000000,-0.375000,0.875000,-1.000000,-0.500000,0.125000,-1.000000,-0.500000,0.250000,-1.000000,-0.500000,0.375000,-1.000000,-0.500000,0.500000,-1.000000,-0.500000,0.625000,-1.000000,-0.500000,0.750000,-1.000000,-0.500000,0.875000,-1.000000,-0.625000,0.125000,-1.000000,-0.625000,0.250000,-1.000000,-0.625000,0.375000,-1.000000,-0.625000,0.500000,-1.000000,-0.625000,0.625000,-1.000000,-0.625000,0.750000,-1.000000,-0.625000,0.875000,-1.000000,-0.750000,0.125000,-1.000000,-0.750000,0.250000,-1.000000,-0.750000,0.375000,-1.000000,-0.750000,0.500000,-1.000000,-0.750000,0.625000,-1.000000,-0.750000,0.750000,-1.000000,-0.750000,0.875000,-1.000000,-0.875000,0.125000,-1.000000,-0.875000,0.250000,-1.000000,-0.875000,0.375000,-1.000000,-0.875000,0.500000,-1.000000,-0.875000,0.625000,-1.000000,-0.875000,0.750000,-1.000000,-0.875000,0.875000,-1.000000,1.000000,-1.000000,-0.875000,1.000000,-1.000000,-0.750000,1.000000,-1.000000,-0.625000,1.000000,-1.000000,-0.500000,1.000000,-1.000000,-0.375000,1.000000,-1.000000,-0.250000,1.000000,-1.000000,-0.125000,1.000000,-1.000000,0.000000,1.000000,-1.000000,0.125000,1.000000,-1.000000,0.250000,1.000000,-1.000000,0.375000,1.000000,-1.000000,0.500000,1.000000,-1.000000,0.625000,1.000000,-1.000000,0.750000,1.000000,-1.000000,0.875000,0.875000,-1.000000,-1.000000,0.750000,-1.000000,-1.000000,0.625000,-1.000000,-1.000000,0.500000,-1.000000,-1.000000,0.375000,-1.000000,-1.000000,0.250000,-1.000000,-1.000000,0.125000,-1.000000,-1.000000,0.000000,-1.000000,-1.000000,-0.125000,-1.000000,-1.000000,-0.250000,-1.000000,-1.000000,-0.375000,-1.000000,-1.000000,-0.500000,-1.000000,-1.000000,-0.625000,-1.000000,-1.000000,-0.750000,-1.000000,-1.000000,-0.875000,-1.000000,-1.000000,1.000000,-0.875000,-1.000000,1.000000,-0.750000,-1.000000,1.000000,-0.625000,-1.000000,1.000000,-0.500000,-1.000000,1.000000,-0.375000,-1.000000,1.000000,-0.250000,-1.000000,1.000000,-0.125000,-1.000000,1.000000,-0.000000,-1.000000,1.000000,0.125000,-1.000000,1.000000,0.250000,-1.000000,1.000000,0.375000,-1.000000,1.000000,0.500000,-1.000000,1.000000,0.625000,-1.000000,1.000000,0.750000,-1.000000,1.000000,0.875000,-1.000000,0.875000,-1.000000,1.000000,0.750000,-1.000000,1.000000,0.625000,-1.000000,1.000000,0.500000,-1.000000,1.000000,0.375000,-1.000000,1.000000,0.250000,-1.000000,1.000000,0.125000,-1.000000,1.000000,-0.000000,-1.000000,1.000000,-0.125000,-1.000000,1.000000,-0.250000,-1.000000,1.000000,-0.375000,-1.000000,1.000000,-0.500000,-1.000000,1.000000,-0.625000,-1.000000,1.000000,-0.750000,-1.000000,1.000000,-0.875000,-1.000000,1.000000,1.000000,-0.875000,1.000000,1.000000,-0.750000,1.000000,1.000000,-0.625000,1.000000,1.000000,-0.500000,1.000000,1.000000,-0.375000,1.000000,1.000000,-0.250000,1.000000,1.000000,-0.125000,1.000000,1.000000,0.000000,1.000000,1.000000,0.125000,1.000000,1.000000,0.250000,1.000000,1.000000,0.375000,1.000000,1.000000,0.500000,1.000000,0.999999,0.625000,1.000000,0.999999,0.750000,1.000000,0.999999,0.875000,1.000000,-1.000000,-1.000000,0.875000,-1.000000,-1.000000,0.750000,-1.000000,-1.000000,0.625000,-1.000000,-1.000000,0.500000,-1.000000,-1.000000,0.375000,-1.000000,-1.000000,0.250000,-1.000000,-1.000000,0.125000,-1.000000,-1.000000,-0.000000,-1.000000,-1.000000,-0.125000,-1.000000,-1.000000,-0.250000,-1.000000,-1.000000,-0.375000,-1.000000,-1.000000,-0.500000,-1.000000,-1.000000,-0.625000,-1.000000,-1.000000,-0.750000,-1.000000,-1.000000,-0.875000,-1.000000,-0.875000,1.000000,-1.000000,-0.750000,1.000000,-1.000000,-0.625000,1.000000,-1.000000,-0.500000,1.000000,-1.000000,-0.375000,1.000000,-1.000000,-0.250000,1.000000,-1.000000,-0.125000,1.000000,-1.000000,0.000000,1.000000,-1.000000,0.125000,1.000000,-1.000000,0.250000,1.000000,-1.000000,0.375000,1.000000,-1.000000,0.500000,1.000000,-1.000000,0.625000,1.000000,-1.000000,0.750000,1.000000,-1.000000,0.875000,1.000000,-1.000000,-0.875000,-1.000000,-1.000000,-0.750000,-1.000000,-1.000000,-0.625000,-1.000000,-1.000000,-0.500000,-1.000000,-1.000000,-0.375000,-1.000000,-1.000000,-0.250000,-1.000000,-1.000000,-0.125000,-1.000000,-1.000000,-0.000000,-1.000000,-1.000000,0.125000,-1.000000,-1.000000,0.250000,-1.000000,-1.000000,0.375000,-1.000000,-1.000000,0.500000,-1.000000,-1.000000,0.625000,-1.000000,-1.000000,0.750000,-1.000000,-1.000000,0.875000,-1.000000,1.000000,1.000000,-0.875000,1.000000,1.000000,-0.750000,1.000000,1.000000,-0.625000,1.000000,1.000000,-0.499999,1.000000,1.000000,-0.374999,1.000000,1.000000,-0.249999,1.000000,1.000000,-0.124999,1.000000,1.000000,0.000001,1.000000,1.000000,0.125001,1.000000,1.000000,0.250001,1.000000,1.000000,0.375001,1.000000,1.000000,0.500001,1.000000,1.000000,0.625001,1.000000,1.000000,0.750001,0.999999,1.000000,0.875001,0.875000,1.000000,-1.000000,0.750000,1.000000,-1.000000,0.625000,1.000000,-1.000000,0.500000,1.000000,-1.000000,0.375000,1.000000,-1.000000,0.250000,1.000000,-1.000000,0.125000,1.000000,-1.000000,0.000000,1.000000,-1.000000,-0.125000,1.000000,-1.000000,-0.250000,1.000000,-1.000000,-0.375000,1.000000,-1.000000,-0.500000,1.000000,-1.000000,-0.625000,1.000000,-1.000000,-0.750000,1.000000,-1.000000,-0.875000,1.000000,-1.000000,0.874999,1.000000,1.000000,0.749999,1.000000,1.000000,0.624999,1.000000,1.000000,0.499999,1.000000,1.000000,0.374999,1.000000,1.000000,0.249999,1.000000,1.000000,0.124999,1.000000,1.000000,-0.000001,1.000000,1.000000,-0.125000,1.000000,1.000000,-0.250000,1.000000,1.000000,-0.375000,1.000000,1.000000,-0.500000,1.000000,1.000000,-0.625000,1.000000,1.000000,-0.750000,1.000000,1.000000,-0.875000,1.000000,1.000000,-1.000000,1.000000,0.875000,-1.000000,1.000000,0.750000,-1.000000,1.000000,0.625000,-1.000000,1.000000,0.500000,-1.000000,1.000000,0.375000,-1.000000,1.000000,0.250000,-1.000000,1.000000,0.125000,-1.000000,1.000000,-0.000000,-1.000000,1.000000,-0.125000,-1.000000,1.000000,-0.250000,-1.000000,1.000000,-0.375000,-1.000000,1.000000,-0.500000,-1.000000,1.000000,-0.625000,-1.000000,1.000000,-0.750000,-1.000000,1.000000,-0.875000,1.000000,-1.000000,-1.000000,1.000000,-1.000000,1.000000,-1.000000,-1.000000,1.000000,-1.000000,-1.000000,-1.000000,1.000000,1.000000,-1.000000,0.999999,1.000000,1.000001,-1.000000,1.000000,1.000000,-1.000000,1.000000,-1.000000], "morphTargets": [], @@ -38,8 +40,11 @@ var model = { "uvs": [[]], - "faces": [131,0,22,29,1,0,0,1,1,0,131,1,29,30,2,0,0,1,1,0,131,2,30,31,3,0,0,1,1,0,131,3,31,32,4,0,0,1,2,0,131,4,32,33,5,0,0,2,3,4,131,5,33,34,6,0,4,3,5,6,131,6,34,35,7,0,6,5,7,7,131,7,35,1356,1357,0,7,7,8,9,131,22,23,36,29,0,1,10,11,1,131,29,36,37,30,0,1,11,12,1,131,30,37,38,31,0,1,12,13,1,131,31,38,39,32,0,1,13,14,2,131,32,39,40,33,0,2,14,15,3,131,33,40,41,34,0,3,15,16,5,131,34,41,42,35,0,5,16,17,7,131,35,42,1355,1356,0,7,17,18,8,131,23,24,43,36,0,10,19,19,11,131,36,43,44,37,0,11,19,19,12,131,37,44,45,38,0,12,19,19,13,131,38,45,46,39,0,13,19,20,14,131,39,46,47,40,0,14,20,20,15,131,40,47,48,41,0,15,20,21,16,131,41,48,49,42,0,16,21,22,17,131,42,49,1354,1355,0,17,22,23,18,131,24,25,50,43,0,19,24,24,19,131,43,50,51,44,0,19,24,24,19,131,44,51,52,45,0,19,24,25,19,131,45,52,53,46,0,19,25,26,20,131,46,53,54,47,0,20,26,27,20,131,47,54,55,48,0,20,27,28,21,131,48,55,56,49,0,21,28,29,22,131,49,56,1353,1354,0,22,29,30,23,131,25,26,57,50,0,24,31,32,24,131,50,57,58,51,0,24,32,33,24,131,51,58,59,52,0,24,33,34,25,131,52,59,60,53,0,25,34,35,26,131,53,60,61,54,0,26,35,36,27,131,54,61,62,55,0,27,36,37,28,131,55,62,63,56,0,28,37,38,29,131,56,63,1352,1353,0,29,38,39,30,131,26,27,64,57,0,31,40,41,32,131,57,64,65,58,0,32,41,42,33,131,58,65,66,59,0,33,42,43,34,131,59,66,67,60,0,34,43,44,35,131,60,67,68,61,0,35,44,45,36,131,61,68,69,62,0,36,45,46,37,131,62,69,70,63,0,37,46,47,38,131,63,70,1351,1352,0,38,47,48,39,131,27,28,71,64,0,40,49,50,41,131,64,71,72,65,0,41,50,51,42,131,65,72,73,66,0,42,51,52,43,131,66,73,74,67,0,43,52,53,44,131,67,74,75,68,0,44,53,54,45,131,68,75,76,69,0,45,54,55,46,131,69,76,77,70,0,46,55,56,47,131,70,77,1350,1351,0,47,56,57,48,131,28,1372,1371,71,0,49,58,58,50,131,71,1371,1370,72,0,50,58,58,51,131,72,1370,1369,73,0,51,58,59,52,131,73,1369,1368,74,0,52,59,60,53,131,74,1368,1367,75,0,53,60,61,54,131,75,1367,1366,76,0,54,61,62,55,131,76,1366,1365,77,0,55,62,63,56,131,77,1365,1530,1350,0,56,63,64,57,131,0,1,78,8,0,0,0,65,66,131,8,78,79,9,0,66,65,67,68,131,9,79,80,10,0,68,67,69,69,131,10,80,81,11,0,69,69,70,70,131,11,81,82,12,0,70,70,71,72,131,12,82,83,13,0,72,71,73,74,131,13,83,84,14,0,74,73,75,76,131,14,84,1401,1402,0,76,75,77,77,131,1,2,85,78,0,0,0,65,65,131,78,85,86,79,0,65,65,78,67,131,79,86,87,80,0,67,78,69,69,131,80,87,88,81,0,69,69,79,70,131,81,88,89,82,0,70,79,80,71,131,82,89,90,83,0,71,80,81,73,131,83,90,91,84,0,73,81,82,75,131,84,91,1400,1401,0,75,82,77,77,131,2,3,92,85,0,0,0,83,65,131,85,92,93,86,0,65,83,84,78,131,86,93,94,87,0,78,84,69,69,131,87,94,95,88,0,69,69,85,79,131,88,95,96,89,0,79,85,80,80,131,89,96,97,90,0,80,80,86,81,131,90,97,98,91,0,81,86,87,82,131,91,98,1399,1400,0,82,87,77,77,131,3,4,99,92,0,0,0,88,83,131,92,99,100,93,0,83,88,89,84,131,93,100,101,94,0,84,89,69,69,131,94,101,102,95,0,69,69,85,85,131,95,102,103,96,0,85,85,71,80,131,96,103,104,97,0,80,71,90,86,131,97,104,105,98,0,86,90,91,87,131,98,105,1398,1399,0,87,91,77,77,131,4,5,106,99,0,0,4,92,88,131,99,106,107,100,0,88,92,93,89,131,100,107,108,101,0,89,93,69,69,131,101,108,109,102,0,69,69,94,85,131,102,109,110,103,0,85,94,95,71,131,103,110,111,104,0,71,95,96,90,131,104,111,112,105,0,90,96,91,91,131,105,112,1397,1398,0,91,91,97,77,131,5,6,113,106,0,4,6,98,92,131,106,113,114,107,0,92,98,99,93,131,107,114,115,108,0,93,99,100,69,131,108,115,116,109,0,69,100,101,94,131,109,116,117,110,0,94,101,102,95,131,110,117,118,111,0,95,102,103,96,131,111,118,119,112,0,96,103,104,91,131,112,119,1396,1397,0,91,104,105,97,131,6,7,120,113,0,6,7,106,98,131,113,120,121,114,0,98,106,107,99,131,114,121,122,115,0,99,107,108,100,131,115,122,123,116,0,100,108,109,101,131,116,123,124,117,0,101,109,110,102,131,117,124,125,118,0,102,110,111,103,131,118,125,126,119,0,103,111,112,104,131,119,126,1395,1396,0,104,112,113,105,131,7,1357,1358,120,0,7,9,114,106,131,120,1358,1359,121,0,106,114,115,107,131,121,1359,1360,122,0,107,115,115,108,131,122,1360,1361,123,0,108,115,114,109,131,123,1361,1362,124,0,109,114,8,110,131,124,1362,1363,125,0,110,8,8,111,131,125,1363,1364,126,0,111,8,116,112,131,126,1364,1531,1395,0,112,116,117,113,131,0,8,127,15,0,0,66,118,0,131,15,127,128,16,0,0,118,119,0,131,16,128,129,17,0,0,119,120,0,131,17,129,130,18,0,0,120,120,0,131,18,130,131,19,0,0,120,121,0,131,19,131,132,20,0,0,121,122,123,131,20,132,133,21,0,123,122,124,125,131,21,133,1431,1432,0,125,124,126,127,131,8,9,134,127,0,66,68,68,118,131,127,134,135,128,0,118,68,68,119,131,128,135,136,129,0,119,68,128,120,131,129,136,137,130,0,120,128,84,120,131,130,137,138,131,0,120,84,129,121,131,131,138,139,132,0,121,129,130,122,131,132,139,140,133,0,122,130,131,124,131,133,140,1430,1431,0,124,131,132,126,131,9,10,141,134,0,68,69,69,68,131,134,141,142,135,0,68,69,69,68,131,135,142,143,136,0,68,69,69,128,131,136,143,144,137,0,128,69,69,84,131,137,144,145,138,0,84,69,133,129,131,138,145,146,139,0,129,133,134,130,131,139,146,147,140,0,130,134,135,131,131,140,147,1429,1430,0,131,135,136,132,131,10,11,148,141,0,69,70,69,69,131,141,148,149,142,0,69,69,69,69,131,142,149,150,143,0,69,69,137,69,131,143,150,151,144,0,69,137,138,69,131,144,151,152,145,0,69,138,139,133,131,145,152,153,146,0,133,139,140,134,131,146,153,154,147,0,134,140,141,135,131,147,154,1428,1429,0,135,141,142,136,131,11,12,155,148,0,70,72,143,69,131,148,155,156,149,0,69,143,144,69,131,149,156,157,150,0,69,144,145,137,131,150,157,158,151,0,137,145,146,138,131,151,158,159,152,0,138,146,147,139,131,152,159,160,153,0,139,147,148,140,131,153,160,161,154,0,140,148,149,141,131,154,161,1427,1428,0,141,149,150,142,131,12,13,162,155,0,72,74,81,143,131,155,162,163,156,0,143,81,151,144,131,156,163,164,157,0,144,151,152,145,131,157,164,165,158,0,145,152,153,146,131,158,165,166,159,0,146,153,154,147,131,159,166,167,160,0,147,154,155,148,131,160,167,168,161,0,148,155,156,149,131,161,168,1426,1427,0,149,156,97,150,131,13,14,169,162,0,74,76,157,81,131,162,169,170,163,0,81,157,158,151,131,163,170,171,164,0,151,158,159,152,131,164,171,172,165,0,152,159,160,153,131,165,172,173,166,0,153,160,160,154,131,166,173,174,167,0,154,160,161,155,131,167,174,175,168,0,155,161,162,156,131,168,175,1425,1426,0,156,162,163,97,131,14,1402,1403,169,0,76,77,77,157,131,169,1403,1404,170,0,157,77,164,158,131,170,1404,1405,171,0,158,164,165,159,131,171,1405,1406,172,0,159,165,161,160,131,172,1406,1407,173,0,160,161,165,160,131,173,1407,1408,174,0,160,165,166,161,131,174,1408,1409,175,0,161,166,163,162,131,175,1409,1532,1425,0,162,163,163,163,131,0,15,176,22,0,0,0,1,1,131,22,176,177,23,0,1,1,167,10,131,23,177,178,24,0,10,167,19,19,131,24,178,179,25,0,19,19,168,24,131,25,179,180,26,0,24,168,169,31,131,26,180,181,27,0,31,169,170,40,131,27,181,182,28,0,40,170,171,49,131,28,182,1373,1372,0,49,171,59,58,131,15,16,183,176,0,0,0,1,1,131,176,183,184,177,0,1,1,172,167,131,177,184,185,178,0,167,172,19,19,131,178,185,186,179,0,19,19,26,168,131,179,186,187,180,0,168,26,173,169,131,180,187,188,181,0,169,173,174,170,131,181,188,189,182,0,170,174,54,171,131,182,189,1374,1373,0,171,54,59,59,131,16,17,190,183,0,0,0,2,1,131,183,190,191,184,0,1,2,175,172,131,184,191,192,185,0,172,175,19,19,131,185,192,193,186,0,19,19,176,26,131,186,193,194,187,0,26,176,177,173,131,187,194,195,188,0,173,177,178,174,131,188,195,196,189,0,174,178,179,54,131,189,196,1375,1374,0,54,179,180,59,131,17,18,197,190,0,0,0,181,2,131,190,197,198,191,0,2,181,182,175,131,191,198,199,192,0,175,182,19,19,131,192,199,200,193,0,19,19,183,176,131,193,200,201,194,0,176,183,184,177,131,194,201,202,195,0,177,184,185,178,131,195,202,203,196,0,178,185,186,179,131,196,203,1376,1375,0,179,186,187,180,131,18,19,204,197,0,0,0,0,181,131,197,204,205,198,0,181,0,188,182,131,198,205,206,199,0,182,188,19,19,131,199,206,207,200,0,19,19,189,183,131,200,207,208,201,0,183,189,190,184,131,201,208,209,202,0,184,190,191,185,131,202,209,210,203,0,185,191,192,186,131,203,210,1377,1376,0,186,192,187,187,131,19,20,211,204,0,0,123,193,0,131,204,211,212,205,0,0,193,194,188,131,205,212,213,206,0,188,194,195,19,131,206,213,214,207,0,19,195,196,189,131,207,214,215,208,0,189,196,197,190,131,208,215,216,209,0,190,197,198,191,131,209,216,217,210,0,191,198,180,192,131,210,217,1378,1377,0,192,180,180,187,131,20,21,218,211,0,123,125,199,193,131,211,218,219,212,0,193,199,200,194,131,212,219,220,213,0,194,200,201,195,131,213,220,221,214,0,195,201,202,196,131,214,221,222,215,0,196,202,203,197,131,215,222,223,216,0,197,203,204,198,131,216,223,224,217,0,198,204,205,180,131,217,224,1379,1378,0,180,205,206,180,131,21,1432,1433,218,0,125,127,207,199,131,218,1433,1434,219,0,199,207,208,200,131,219,1434,1435,220,0,200,208,209,201,131,220,1435,1436,221,0,201,209,210,202,131,221,1436,1437,222,0,202,210,211,203,131,222,1437,1438,223,0,203,211,212,204,131,223,1438,1439,224,0,204,212,213,205,131,224,1439,1533,1379,0,205,213,205,206,131,225,247,254,226,0,214,215,216,217,131,226,254,255,227,0,217,216,218,219,131,227,255,256,228,0,219,218,220,221,131,228,256,257,229,0,221,220,222,223,131,229,257,258,230,0,223,222,224,225,131,230,258,259,231,0,225,224,226,227,131,231,259,260,232,0,227,226,228,229,131,232,260,1491,1492,0,229,228,230,231,131,247,248,261,254,0,215,232,233,216,131,254,261,262,255,0,216,233,234,218,131,255,262,263,256,0,218,234,235,220,131,256,263,264,257,0,220,235,236,222,131,257,264,265,258,0,222,236,237,224,131,258,265,266,259,0,224,237,238,226,131,259,266,267,260,0,226,238,239,228,131,260,267,1490,1491,0,228,239,240,230,131,248,249,268,261,0,232,241,242,233,131,261,268,269,262,0,233,242,243,234,131,262,269,270,263,0,234,243,244,235,131,263,270,271,264,0,235,244,245,236,131,264,271,272,265,0,236,245,246,237,131,265,272,273,266,0,237,246,247,238,131,266,273,274,267,0,238,247,248,239,131,267,274,1489,1490,0,239,248,249,240,131,249,250,275,268,0,241,250,251,242,131,268,275,276,269,0,242,251,252,243,131,269,276,277,270,0,243,252,253,244,131,270,277,278,271,0,244,253,254,245,131,271,278,279,272,0,245,254,255,246,131,272,279,280,273,0,246,255,256,247,131,273,280,281,274,0,247,256,257,248,131,274,281,1488,1489,0,248,257,258,249,131,250,251,282,275,0,250,259,260,251,131,275,282,283,276,0,251,260,261,252,131,276,283,284,277,0,252,261,262,253,131,277,284,285,278,0,253,262,263,254,131,278,285,286,279,0,254,263,264,255,131,279,286,287,280,0,255,264,265,256,131,280,287,288,281,0,256,265,266,257,131,281,288,1487,1488,0,257,266,267,258,131,251,252,289,282,0,259,268,269,260,131,282,289,290,283,0,260,269,270,261,131,283,290,291,284,0,261,270,271,262,131,284,291,292,285,0,262,271,272,263,131,285,292,293,286,0,263,272,273,264,131,286,293,294,287,0,264,273,274,265,131,287,294,295,288,0,265,274,275,266,131,288,295,1486,1487,0,266,275,276,267,131,252,253,296,289,0,268,277,278,269,131,289,296,297,290,0,269,278,279,270,131,290,297,298,291,0,270,279,280,271,131,291,298,299,292,0,271,280,281,272,131,292,299,300,293,0,272,281,282,273,131,293,300,301,294,0,273,282,283,274,131,294,301,302,295,0,274,283,284,275,131,295,302,1485,1486,0,275,284,285,276,131,253,1477,1476,296,0,277,286,287,278,131,296,1476,1475,297,0,278,287,164,279,131,297,1475,1474,298,0,279,164,77,280,131,298,1474,1473,299,0,280,77,77,281,131,299,1473,1472,300,0,281,77,166,282,131,300,1472,1471,301,0,282,166,166,283,131,301,1471,1470,302,0,283,166,288,284,131,302,1470,1534,1485,0,284,288,289,285,131,225,226,303,233,0,214,217,290,291,131,233,303,304,234,0,291,290,292,293,131,234,304,305,235,0,293,292,294,295,131,235,305,306,236,0,295,294,296,297,131,236,306,307,237,0,297,296,298,299,131,237,307,308,238,0,299,298,300,301,131,238,308,309,239,0,301,300,302,303,131,239,309,1523,1522,0,303,302,304,305,131,226,227,310,303,0,217,219,306,290,131,303,310,311,304,0,290,306,307,292,131,304,311,312,305,0,292,307,308,294,131,305,312,313,306,0,294,308,309,296,131,306,313,314,307,0,296,309,310,298,131,307,314,315,308,0,298,310,311,300,131,308,315,316,309,0,300,311,312,302,131,309,316,1524,1523,0,302,312,313,304,131,227,228,317,310,0,219,221,314,306,131,310,317,318,311,0,306,314,315,307,131,311,318,319,312,0,307,315,316,308,131,312,319,320,313,0,308,316,317,309,131,313,320,321,314,0,309,317,318,310,131,314,321,322,315,0,310,318,319,311,131,315,322,323,316,0,311,319,320,312,131,316,323,1525,1524,0,312,320,313,313,131,228,229,324,317,0,221,223,321,314,131,317,324,325,318,0,314,321,322,315,131,318,325,326,319,0,315,322,323,316,131,319,326,327,320,0,316,323,324,317,131,320,327,328,321,0,317,324,325,318,131,321,328,329,322,0,318,325,326,319,131,322,329,330,323,0,319,326,327,320,131,323,330,1526,1525,0,320,327,328,313,131,229,230,331,324,0,223,225,329,321,131,324,331,332,325,0,321,329,330,322,131,325,332,333,326,0,322,330,331,323,131,326,333,334,327,0,323,331,332,324,131,327,334,335,328,0,324,332,333,325,131,328,335,336,329,0,325,333,334,326,131,329,336,337,330,0,326,334,335,327,131,330,337,1527,1526,0,327,335,336,328,131,230,231,338,331,0,225,227,337,329,131,331,338,339,332,0,329,337,338,330,131,332,339,340,333,0,330,338,339,331,131,333,340,341,334,0,331,339,340,332,131,334,341,342,335,0,332,340,341,333,131,335,342,343,336,0,333,341,342,334,131,336,343,344,337,0,334,342,343,335,131,337,344,1528,1527,0,335,343,343,336,131,231,232,345,338,0,227,229,344,337,131,338,345,346,339,0,337,344,345,338,131,339,346,347,340,0,338,345,346,339,131,340,347,348,341,0,339,346,347,340,131,341,348,349,342,0,340,347,348,341,131,342,349,350,343,0,341,348,349,342,131,343,350,351,344,0,342,349,350,343,131,344,351,1529,1528,0,343,350,351,343,131,232,1492,1493,345,0,229,231,352,344,131,345,1493,1494,346,0,344,352,353,345,131,346,1494,1495,347,0,345,353,347,346,131,347,1495,1496,348,0,346,347,354,347,131,348,1496,1497,349,0,347,354,355,348,131,349,1497,1498,350,0,348,355,356,349,131,350,1498,1499,351,0,349,356,357,350,131,351,1499,1537,1529,0,350,357,358,351,131,225,233,352,240,0,214,291,359,360,131,240,352,353,241,0,360,359,361,362,131,241,353,354,242,0,362,361,363,364,131,242,354,355,243,0,364,363,365,366,131,243,355,356,244,0,366,365,367,368,131,244,356,357,245,0,368,367,369,370,131,245,357,358,246,0,370,369,371,372,131,246,358,1508,1507,0,372,371,373,374,131,233,234,359,352,0,291,293,375,359,131,352,359,360,353,0,359,375,376,361,131,353,360,361,354,0,361,376,377,363,131,354,361,362,355,0,363,377,378,365,131,355,362,363,356,0,365,378,379,367,131,356,363,364,357,0,367,379,380,369,131,357,364,365,358,0,369,380,381,371,131,358,365,1509,1508,0,371,381,382,373,131,234,235,366,359,0,293,295,383,375,131,359,366,367,360,0,375,383,384,376,131,360,367,368,361,0,376,384,385,377,131,361,368,369,362,0,377,385,386,378,131,362,369,370,363,0,378,386,387,379,131,363,370,371,364,0,379,387,388,380,131,364,371,372,365,0,380,388,389,381,131,365,372,1510,1509,0,381,389,382,382,131,235,236,373,366,0,295,297,390,383,131,366,373,374,367,0,383,390,391,384,131,367,374,375,368,0,384,391,392,385,131,368,375,376,369,0,385,392,393,386,131,369,376,377,370,0,386,393,394,387,131,370,377,378,371,0,387,394,395,388,131,371,378,379,372,0,388,395,396,389,131,372,379,1511,1510,0,389,396,382,382,131,236,237,380,373,0,297,299,397,390,131,373,380,381,374,0,390,397,398,391,131,374,381,382,375,0,391,398,399,392,131,375,382,383,376,0,392,399,400,393,131,376,383,384,377,0,393,400,401,394,131,377,384,385,378,0,394,401,402,395,131,378,385,386,379,0,395,402,403,396,131,379,386,1512,1511,0,396,403,404,382,131,237,238,387,380,0,299,301,405,397,131,380,387,388,381,0,397,405,406,398,131,381,388,389,382,0,398,406,407,399,131,382,389,390,383,0,399,407,408,400,131,383,390,391,384,0,400,408,409,401,131,384,391,392,385,0,401,409,410,402,131,385,392,393,386,0,402,410,411,403,131,386,393,1513,1512,0,403,411,412,404,131,238,239,394,387,0,301,303,413,405,131,387,394,395,388,0,405,413,414,406,131,388,395,396,389,0,406,414,415,407,131,389,396,397,390,0,407,415,416,408,131,390,397,398,391,0,408,416,417,409,131,391,398,399,392,0,409,417,418,410,131,392,399,400,393,0,410,418,419,411,131,393,400,1514,1513,0,411,419,420,412,131,239,1522,1521,394,0,303,305,421,413,131,394,1521,1520,395,0,413,421,422,414,131,395,1520,1519,396,0,414,422,423,415,131,396,1519,1518,397,0,415,423,424,416,131,397,1518,1517,398,0,416,424,425,417,131,398,1517,1516,399,0,417,425,426,418,131,399,1516,1515,400,0,418,426,427,419,131,400,1515,1536,1514,0,419,427,163,420,131,225,240,401,247,0,214,360,428,215,131,247,401,402,248,0,215,428,429,232,131,248,402,403,249,0,232,429,430,241,131,249,403,404,250,0,241,430,431,250,131,250,404,405,251,0,250,431,432,259,131,251,405,406,252,0,259,432,433,268,131,252,406,407,253,0,268,433,434,277,131,253,407,1478,1477,0,277,434,287,286,131,240,241,408,401,0,360,362,435,428,131,401,408,409,402,0,428,435,436,429,131,402,409,410,403,0,429,436,437,430,131,403,410,411,404,0,430,437,438,431,131,404,411,412,405,0,431,438,439,432,131,405,412,413,406,0,432,439,440,433,131,406,413,414,407,0,433,440,441,434,131,407,414,1479,1478,0,434,441,442,287,131,241,242,415,408,0,362,364,443,435,131,408,415,416,409,0,435,443,444,436,131,409,416,417,410,0,436,444,445,437,131,410,417,418,411,0,437,445,446,438,131,411,418,419,412,0,438,446,447,439,131,412,419,420,413,0,439,447,448,440,131,413,420,421,414,0,440,448,449,441,131,414,421,1480,1479,0,441,449,450,442,131,242,243,422,415,0,364,366,451,443,131,415,422,423,416,0,443,451,452,444,131,416,423,424,417,0,444,452,453,445,131,417,424,425,418,0,445,453,454,446,131,418,425,426,419,0,446,454,455,447,131,419,426,427,420,0,447,455,456,448,131,420,427,428,421,0,448,456,457,449,131,421,428,1481,1480,0,449,457,458,450,131,243,244,429,422,0,366,368,459,451,131,422,429,430,423,0,451,459,460,452,131,423,430,431,424,0,452,460,461,453,131,424,431,432,425,0,453,461,462,454,131,425,432,433,426,0,454,462,463,455,131,426,433,434,427,0,455,463,464,456,131,427,434,435,428,0,456,464,465,457,131,428,435,1482,1481,0,457,465,466,458,131,244,245,436,429,0,368,370,467,459,131,429,436,437,430,0,459,467,468,460,131,430,437,438,431,0,460,468,469,461,131,431,438,439,432,0,461,469,470,462,131,432,439,440,433,0,462,470,471,463,131,433,440,441,434,0,463,471,472,464,131,434,441,442,435,0,464,472,473,465,131,435,442,1483,1482,0,465,473,474,466,131,245,246,443,436,0,370,372,475,467,131,436,443,444,437,0,467,475,476,468,131,437,444,445,438,0,468,476,477,469,131,438,445,446,439,0,469,477,478,470,131,439,446,447,440,0,470,478,479,471,131,440,447,448,441,0,471,479,480,472,131,441,448,449,442,0,472,480,481,473,131,442,449,1484,1483,0,473,481,482,474,131,246,1507,1506,443,0,372,374,483,475,131,443,1506,1505,444,0,475,483,483,476,131,444,1505,1504,445,0,476,483,136,477,131,445,1504,1503,446,0,477,136,484,478,131,446,1503,1502,447,0,478,484,136,479,131,447,1502,1501,448,0,479,136,485,480,131,448,1501,1500,449,0,480,485,486,481,131,449,1500,1535,1484,0,481,486,487,482,131,450,472,479,451,0,488,489,490,491,131,451,479,480,452,0,491,490,492,493,131,452,480,481,453,0,493,492,494,495,131,453,481,482,454,0,495,494,496,497,131,454,482,483,455,0,497,496,498,499,131,455,483,484,456,0,499,498,500,501,131,456,484,485,457,0,501,500,502,503,131,457,485,1386,1387,0,503,502,504,505,131,472,473,486,479,0,489,506,507,490,131,479,486,487,480,0,490,507,508,492,131,480,487,488,481,0,492,508,509,494,131,481,488,489,482,0,494,509,510,496,131,482,489,490,483,0,496,510,511,498,131,483,490,491,484,0,498,511,512,500,131,484,491,492,485,0,500,512,513,502,131,485,492,1385,1386,0,502,513,514,504,131,473,474,493,486,0,506,515,516,507,131,486,493,494,487,0,507,516,517,508,131,487,494,495,488,0,508,517,518,509,131,488,495,496,489,0,509,518,519,510,131,489,496,497,490,0,510,519,520,511,131,490,497,498,491,0,511,520,521,512,131,491,498,499,492,0,512,521,522,513,131,492,499,1384,1385,0,513,522,523,514,131,474,475,500,493,0,515,524,525,516,131,493,500,501,494,0,516,525,526,517,131,494,501,502,495,0,517,526,527,518,131,495,502,503,496,0,518,527,528,519,131,496,503,504,497,0,519,528,529,520,131,497,504,505,498,0,520,529,530,521,131,498,505,506,499,0,521,530,531,522,131,499,506,1383,1384,0,522,531,532,523,131,475,476,507,500,0,524,533,534,525,131,500,507,508,501,0,525,534,535,526,131,501,508,509,502,0,526,535,536,527,131,502,509,510,503,0,527,536,537,528,131,503,510,511,504,0,528,537,538,529,131,504,511,512,505,0,529,538,539,530,131,505,512,513,506,0,530,539,540,531,131,506,513,1382,1383,0,531,540,541,532,131,476,477,514,507,0,533,542,543,534,131,507,514,515,508,0,534,543,543,535,131,508,515,516,509,0,535,543,544,536,131,509,516,517,510,0,536,544,544,537,131,510,517,518,511,0,537,544,544,538,131,511,518,519,512,0,538,544,545,539,131,512,519,520,513,0,539,545,546,540,131,513,520,1381,1382,0,540,546,213,541,131,477,478,521,514,0,542,547,547,543,131,514,521,522,515,0,543,547,547,543,131,515,522,523,516,0,543,547,547,544,131,516,523,524,517,0,544,547,547,544,131,517,524,525,518,0,544,547,547,544,131,518,525,526,519,0,544,547,547,545,131,519,526,527,520,0,545,547,547,546,131,520,527,1380,1381,0,546,547,547,213,131,478,1357,1356,521,0,547,548,549,547,131,521,1356,1355,522,0,547,549,550,547,131,522,1355,1354,523,0,547,550,551,547,131,523,1354,1353,524,0,547,551,549,547,131,524,1353,1352,525,0,547,549,548,547,131,525,1352,1351,526,0,547,548,552,547,131,526,1351,1350,527,0,547,552,552,547,131,527,1350,1530,1380,0,547,552,552,547,131,450,451,528,458,0,488,491,553,554,131,458,528,529,459,0,554,553,555,556,131,459,529,530,460,0,556,555,557,558,131,460,530,531,461,0,558,557,559,560,131,461,531,532,462,0,560,559,561,562,131,462,532,533,463,0,562,561,563,564,131,463,533,534,464,0,564,563,565,566,131,464,534,1476,1477,0,566,565,164,287,131,451,452,535,528,0,491,493,567,553,131,528,535,536,529,0,553,567,568,555,131,529,536,537,530,0,555,568,569,557,131,530,537,538,531,0,557,569,570,559,131,531,538,539,532,0,559,570,571,561,131,532,539,540,533,0,561,571,572,563,131,533,540,541,534,0,563,572,573,565,131,534,541,1475,1476,0,565,573,97,164,131,452,453,542,535,0,493,495,574,567,131,535,542,543,536,0,567,574,575,568,131,536,543,544,537,0,568,575,576,569,131,537,544,545,538,0,569,576,577,570,131,538,545,546,539,0,570,577,578,571,131,539,546,547,540,0,571,578,579,572,131,540,547,548,541,0,572,579,580,573,131,541,548,1474,1475,0,573,580,581,97,131,453,454,549,542,0,495,497,582,574,131,542,549,550,543,0,574,582,583,575,131,543,550,551,544,0,575,583,584,576,131,544,551,552,545,0,576,584,585,577,131,545,552,553,546,0,577,585,586,578,131,546,553,554,547,0,578,586,587,579,131,547,554,555,548,0,579,587,588,580,131,548,555,1473,1474,0,580,588,77,581,131,454,455,556,549,0,497,499,589,582,131,549,556,557,550,0,582,589,590,583,131,550,557,558,551,0,583,590,591,584,131,551,558,559,552,0,584,591,592,585,131,552,559,560,553,0,585,592,593,586,131,553,560,561,554,0,586,593,594,587,131,554,561,562,555,0,587,594,595,588,131,555,562,1472,1473,0,588,595,166,77,131,455,456,563,556,0,499,501,596,589,131,556,563,564,557,0,589,596,597,590,131,557,564,565,558,0,590,597,598,591,131,558,565,566,559,0,591,598,599,592,131,559,566,567,560,0,592,599,600,593,131,560,567,568,561,0,593,600,601,594,131,561,568,569,562,0,594,601,602,595,131,562,569,1471,1472,0,595,602,166,166,131,456,457,570,563,0,501,503,603,596,131,563,570,571,564,0,596,603,604,597,131,564,571,572,565,0,597,604,605,598,131,565,572,573,566,0,598,605,606,599,131,566,573,574,567,0,599,606,607,600,131,567,574,575,568,0,600,607,608,601,131,568,575,576,569,0,601,608,166,602,131,569,576,1470,1471,0,602,166,609,166,131,457,1387,1388,570,0,503,505,505,603,131,570,1388,1389,571,0,603,505,288,604,131,571,1389,1390,572,0,604,288,610,605,131,572,1390,1391,573,0,605,610,610,606,131,573,1391,1392,574,0,606,610,611,607,131,574,1392,1393,575,0,607,611,612,608,131,575,1393,1394,576,0,608,612,613,166,131,576,1394,1534,1470,0,166,613,611,609,131,450,458,577,465,0,488,554,614,615,131,465,577,578,466,0,615,614,616,617,131,466,578,579,467,0,617,616,618,619,131,467,579,580,468,0,619,618,620,621,131,468,580,581,469,0,621,620,622,623,131,469,581,582,470,0,623,622,624,625,131,470,582,583,471,0,625,624,626,627,131,471,583,1418,1417,0,627,626,628,629,131,458,459,584,577,0,554,556,630,614,131,577,584,585,578,0,614,630,631,616,131,578,585,586,579,0,616,631,632,618,131,579,586,587,580,0,618,632,633,620,131,580,587,588,581,0,620,633,634,622,131,581,588,589,582,0,622,634,635,624,131,582,589,590,583,0,624,635,636,626,131,583,590,1419,1418,0,626,636,637,628,131,459,460,591,584,0,556,558,638,630,131,584,591,592,585,0,630,638,639,631,131,585,592,593,586,0,631,639,640,632,131,586,593,594,587,0,632,640,641,633,131,587,594,595,588,0,633,641,642,634,131,588,595,596,589,0,634,642,643,635,131,589,596,597,590,0,635,643,644,636,131,590,597,1420,1419,0,636,644,645,637,131,460,461,598,591,0,558,560,646,638,131,591,598,599,592,0,638,646,647,639,131,592,599,600,593,0,639,647,648,640,131,593,600,601,594,0,640,648,649,641,131,594,601,602,595,0,641,649,650,642,131,595,602,603,596,0,642,650,651,643,131,596,603,604,597,0,643,651,652,644,131,597,604,1421,1420,0,644,652,653,645,131,461,462,605,598,0,560,562,654,646,131,598,605,606,599,0,646,654,655,647,131,599,606,607,600,0,647,655,656,648,131,600,607,608,601,0,648,656,657,649,131,601,608,609,602,0,649,657,658,650,131,602,609,610,603,0,650,658,659,651,131,603,610,611,604,0,651,659,660,652,131,604,611,1422,1421,0,652,660,486,653,131,462,463,612,605,0,562,564,661,654,131,605,612,613,606,0,654,661,662,655,131,606,613,614,607,0,655,662,663,656,131,607,614,615,608,0,656,663,664,657,131,608,615,616,609,0,657,664,665,658,131,609,616,617,610,0,658,665,666,659,131,610,617,618,611,0,659,666,667,660,131,611,618,1423,1422,0,660,667,668,486,131,463,464,619,612,0,564,566,669,661,131,612,619,620,613,0,661,669,670,662,131,613,620,621,614,0,662,670,671,663,131,614,621,622,615,0,663,671,672,664,131,615,622,623,616,0,664,672,673,665,131,616,623,624,617,0,665,673,674,666,131,617,624,625,618,0,666,674,675,667,131,618,625,1424,1423,0,667,675,676,668,131,464,1477,1478,619,0,566,287,287,669,131,619,1478,1479,620,0,669,287,442,670,131,620,1479,1480,621,0,670,442,442,671,131,621,1480,1481,622,0,671,442,677,672,131,622,1481,1482,623,0,672,677,450,673,131,623,1482,1483,624,0,673,450,458,674,131,624,1483,1484,625,0,674,458,458,675,131,625,1484,1535,1424,0,675,458,485,676,131,450,465,626,472,0,488,615,678,489,131,472,626,627,473,0,489,678,679,506,131,473,627,628,474,0,506,679,680,515,131,474,628,629,475,0,515,680,681,524,131,475,629,630,476,0,524,681,682,533,131,476,630,631,477,0,533,682,542,542,131,477,631,632,478,0,542,542,547,547,131,478,632,1358,1357,0,547,547,548,548,131,465,466,633,626,0,615,617,683,678,131,626,633,634,627,0,678,683,684,679,131,627,634,635,628,0,679,684,685,680,131,628,635,636,629,0,680,685,686,681,131,629,636,637,630,0,681,686,682,682,131,630,637,638,631,0,682,682,542,542,131,631,638,639,632,0,542,542,547,547,131,632,639,1359,1358,0,547,547,549,548,131,466,467,640,633,0,617,619,687,683,131,633,640,641,634,0,683,687,688,684,131,634,641,642,635,0,684,688,689,685,131,635,642,643,636,0,685,689,690,686,131,636,643,644,637,0,686,690,691,682,131,637,644,645,638,0,682,691,542,542,131,638,645,646,639,0,542,542,547,547,131,639,646,1360,1359,0,547,547,550,549,131,467,468,647,640,0,619,621,692,687,131,640,647,648,641,0,687,692,693,688,131,641,648,649,642,0,688,693,694,689,131,642,649,650,643,0,689,694,695,690,131,643,650,651,644,0,690,695,696,691,131,644,651,652,645,0,691,696,542,542,131,645,652,653,646,0,542,542,547,547,131,646,653,1361,1360,0,547,547,550,550,131,468,469,654,647,0,621,623,697,692,131,647,654,655,648,0,692,697,698,693,131,648,655,656,649,0,693,698,699,694,131,649,656,657,650,0,694,699,700,695,131,650,657,658,651,0,695,700,701,696,131,651,658,659,652,0,696,701,542,542,131,652,659,660,653,0,542,542,547,547,131,653,660,1362,1361,0,547,547,549,550,131,469,470,661,654,0,623,625,702,697,131,654,661,662,655,0,697,702,703,698,131,655,662,663,656,0,698,703,704,699,131,656,663,664,657,0,699,704,705,700,131,657,664,665,658,0,700,705,701,701,131,658,665,666,659,0,701,701,542,542,131,659,666,667,660,0,542,542,547,547,131,660,667,1363,1362,0,547,547,551,549,131,470,471,668,661,0,625,627,706,702,131,661,668,669,662,0,702,706,707,703,131,662,669,670,663,0,703,707,708,704,131,663,670,671,664,0,704,708,709,705,131,664,671,672,665,0,705,709,710,701,131,665,672,673,666,0,701,710,542,542,131,666,673,674,667,0,542,542,711,547,131,667,674,1364,1363,0,547,711,550,551,131,471,1417,1416,668,0,627,629,712,706,131,668,1416,1415,669,0,706,712,713,707,131,669,1415,1414,670,0,707,713,714,708,131,670,1414,1413,671,0,708,714,714,709,131,671,1413,1412,672,0,709,714,420,710,131,672,1412,1411,673,0,710,420,544,542,131,673,1411,1410,674,0,542,544,547,711,131,674,1410,1531,1364,0,711,547,552,550,131,675,697,704,676,0,715,716,717,718,131,676,704,705,677,0,718,717,719,720,131,677,705,706,678,0,720,719,721,722,131,678,706,707,679,0,722,721,723,724,131,679,707,708,680,0,724,723,725,726,131,680,708,709,681,0,726,725,727,728,131,681,709,710,682,0,728,727,729,484,131,682,710,1416,1417,0,484,729,713,629,131,697,698,711,704,0,716,730,731,717,131,704,711,712,705,0,717,731,732,719,131,705,712,713,706,0,719,732,733,721,131,706,713,714,707,0,721,733,734,723,131,707,714,715,708,0,723,734,735,725,131,708,715,716,709,0,725,735,736,727,131,709,716,717,710,0,727,736,737,729,131,710,717,1415,1416,0,729,737,738,713,131,698,699,718,711,0,730,739,740,731,131,711,718,719,712,0,731,740,741,732,131,712,719,720,713,0,732,741,742,733,131,713,720,721,714,0,733,742,743,734,131,714,721,722,715,0,734,743,744,735,131,715,722,723,716,0,735,744,745,736,131,716,723,724,717,0,736,745,746,737,131,717,724,1414,1415,0,737,746,714,738,131,699,700,725,718,0,739,747,748,740,131,718,725,726,719,0,740,748,749,741,131,719,726,727,720,0,741,749,750,742,131,720,727,728,721,0,742,750,751,743,131,721,728,729,722,0,743,751,752,744,131,722,729,730,723,0,744,752,753,745,131,723,730,731,724,0,745,753,746,746,131,724,731,1413,1414,0,746,746,754,714,131,700,701,732,725,0,747,755,756,748,131,725,732,733,726,0,748,756,757,749,131,726,733,734,727,0,749,757,758,750,131,727,734,735,728,0,750,758,759,751,131,728,735,736,729,0,751,759,760,752,131,729,736,737,730,0,752,760,761,753,131,730,737,738,731,0,753,761,762,746,131,731,738,1412,1413,0,746,762,763,754,131,701,702,739,732,0,755,764,765,756,131,732,739,740,733,0,756,765,766,757,131,733,740,741,734,0,757,766,767,758,131,734,741,742,735,0,758,767,768,759,131,735,742,743,736,0,759,768,769,760,131,736,743,744,737,0,760,769,770,761,131,737,744,745,738,0,761,770,771,762,131,738,745,1411,1412,0,762,771,543,763,131,702,703,746,739,0,764,772,773,765,131,739,746,747,740,0,765,773,774,766,131,740,747,748,741,0,766,774,774,767,131,741,748,749,742,0,767,774,775,768,131,742,749,750,743,0,768,775,776,769,131,743,750,751,744,0,769,776,777,770,131,744,751,752,745,0,770,777,778,771,131,745,752,1410,1411,0,771,778,547,543,131,703,1402,1401,746,0,772,779,779,773,131,746,1401,1400,747,0,773,779,779,774,131,747,1400,1399,748,0,774,779,779,774,131,748,1399,1398,749,0,774,779,779,775,131,749,1398,1397,750,0,775,779,779,776,131,750,1397,1396,751,0,776,779,780,777,131,751,1396,1395,752,0,777,780,550,778,131,752,1395,1531,1410,0,778,550,552,547,131,675,676,753,683,0,715,718,781,782,131,683,753,754,684,0,782,781,783,784,131,684,754,755,685,0,784,783,785,786,131,685,755,756,686,0,786,785,787,788,131,686,756,757,687,0,788,787,789,790,131,687,757,758,688,0,790,789,791,792,131,688,758,759,689,0,792,791,793,794,131,689,759,1506,1507,0,794,793,373,373,131,676,677,760,753,0,718,720,795,781,131,753,760,761,754,0,781,795,796,783,131,754,761,762,755,0,783,796,797,785,131,755,762,763,756,0,785,797,798,787,131,756,763,764,757,0,787,798,799,789,131,757,764,765,758,0,789,799,800,791,131,758,765,766,759,0,791,800,801,793,131,759,766,1505,1506,0,793,801,484,373,131,677,678,767,760,0,720,722,802,795,131,760,767,768,761,0,795,802,803,796,131,761,768,769,762,0,796,803,804,797,131,762,769,770,763,0,797,804,805,798,131,763,770,771,764,0,798,805,806,799,131,764,771,772,765,0,799,806,807,800,131,765,772,773,766,0,800,807,808,801,131,766,773,1504,1505,0,801,808,809,484,131,678,679,774,767,0,722,724,810,802,131,767,774,775,768,0,802,810,811,803,131,768,775,776,769,0,803,811,812,804,131,769,776,777,770,0,804,812,813,805,131,770,777,778,771,0,805,813,814,806,131,771,778,779,772,0,806,814,815,807,131,772,779,780,773,0,807,815,816,808,131,773,780,1503,1504,0,808,816,817,809,131,679,680,781,774,0,724,726,818,810,131,774,781,782,775,0,810,818,819,811,131,775,782,783,776,0,811,819,820,812,131,776,783,784,777,0,812,820,821,813,131,777,784,785,778,0,813,821,822,814,131,778,785,786,779,0,814,822,823,815,131,779,786,787,780,0,815,823,824,816,131,780,787,1502,1503,0,816,824,825,817,131,680,681,788,781,0,726,728,826,818,131,781,788,789,782,0,818,826,827,819,131,782,789,790,783,0,819,827,828,820,131,783,790,791,784,0,820,828,829,821,131,784,791,792,785,0,821,829,830,822,131,785,792,793,786,0,822,830,831,823,131,786,793,794,787,0,823,831,832,824,131,787,794,1501,1502,0,824,832,833,825,131,681,682,795,788,0,728,484,535,826,131,788,795,796,789,0,826,535,834,827,131,789,796,797,790,0,827,834,835,828,131,790,797,798,791,0,828,835,836,829,131,791,798,799,792,0,829,836,626,830,131,792,799,800,793,0,830,626,837,831,131,793,800,801,794,0,831,837,833,832,131,794,801,1500,1501,0,832,833,713,833,131,682,1417,1418,795,0,484,629,712,535,131,795,1418,1419,796,0,535,712,637,834,131,796,1419,1420,797,0,834,637,653,835,131,797,1420,1421,798,0,835,653,645,836,131,798,1421,1422,799,0,836,645,486,626,131,799,1422,1423,800,0,626,486,486,837,131,800,1423,1424,801,0,837,486,712,833,131,801,1424,1535,1500,0,833,712,713,713,131,675,683,802,690,0,715,782,838,839,131,690,802,803,691,0,839,838,840,841,131,691,803,804,692,0,841,840,842,843,131,692,804,805,693,0,843,842,844,845,131,693,805,806,694,0,845,844,846,847,131,694,806,807,695,0,847,846,848,849,131,695,807,808,696,0,849,848,850,851,131,696,808,1448,1447,0,851,850,852,853,131,683,684,809,802,0,782,784,854,838,131,802,809,810,803,0,838,854,855,840,131,803,810,811,804,0,840,855,856,842,131,804,811,812,805,0,842,856,857,844,131,805,812,813,806,0,844,857,858,846,131,806,813,814,807,0,846,858,859,848,131,807,814,815,808,0,848,859,860,850,131,808,815,1449,1448,0,850,860,851,852,131,684,685,816,809,0,784,786,861,854,131,809,816,817,810,0,854,861,862,855,131,810,817,818,811,0,855,862,863,856,131,811,818,819,812,0,856,863,864,857,131,812,819,820,813,0,857,864,865,858,131,813,820,821,814,0,858,865,866,859,131,814,821,822,815,0,859,866,867,860,131,815,822,1450,1449,0,860,867,851,851,131,685,686,823,816,0,786,788,868,861,131,816,823,824,817,0,861,868,869,862,131,817,824,825,818,0,862,869,870,863,131,818,825,826,819,0,863,870,871,864,131,819,826,827,820,0,864,871,872,865,131,820,827,828,821,0,865,872,873,866,131,821,828,829,822,0,866,873,874,867,131,822,829,1451,1450,0,867,874,851,851,131,686,687,830,823,0,788,790,875,868,131,823,830,831,824,0,868,875,876,869,131,824,831,832,825,0,869,876,877,870,131,825,832,833,826,0,870,877,878,871,131,826,833,834,827,0,871,878,879,872,131,827,834,835,828,0,872,879,880,873,131,828,835,836,829,0,873,880,874,874,131,829,836,1452,1451,0,874,874,881,851,131,687,688,837,830,0,790,792,882,875,131,830,837,838,831,0,875,882,883,876,131,831,838,839,832,0,876,883,884,877,131,832,839,840,833,0,877,884,885,878,131,833,840,841,834,0,878,885,886,879,131,834,841,842,835,0,879,886,887,880,131,835,842,843,836,0,880,887,888,874,131,836,843,1453,1452,0,874,888,889,881,131,688,689,844,837,0,792,794,124,882,131,837,844,845,838,0,882,124,890,883,131,838,845,846,839,0,883,890,891,884,131,839,846,847,840,0,884,891,892,885,131,840,847,848,841,0,885,892,893,886,131,841,848,849,842,0,886,893,894,887,131,842,849,850,843,0,887,894,895,888,131,843,850,1454,1453,0,888,895,881,889,131,689,1507,1508,844,0,794,373,373,124,131,844,1508,1509,845,0,124,373,710,890,131,845,1509,1510,846,0,890,710,710,891,131,846,1510,1511,847,0,891,710,710,892,131,847,1511,1512,848,0,892,710,710,893,131,848,1512,1513,849,0,893,710,412,894,131,849,1513,1514,850,0,894,412,895,895,131,850,1514,1536,1454,0,895,895,867,881,131,675,690,851,697,0,715,839,896,716,131,697,851,852,698,0,716,896,897,730,131,698,852,853,699,0,730,897,898,739,131,699,853,854,700,0,739,898,899,747,131,700,854,855,701,0,747,899,900,755,131,701,855,856,702,0,755,900,901,764,131,702,856,857,703,0,764,901,772,772,131,703,857,1403,1402,0,772,772,779,779,131,690,691,858,851,0,839,841,902,896,131,851,858,859,852,0,896,902,903,897,131,852,859,860,853,0,897,903,904,898,131,853,860,861,854,0,898,904,905,899,131,854,861,862,855,0,899,905,906,900,131,855,862,863,856,0,900,906,907,901,131,856,863,864,857,0,901,907,908,772,131,857,864,1404,1403,0,772,908,779,779,131,691,692,865,858,0,841,843,909,902,131,858,865,866,859,0,902,909,910,903,131,859,866,867,860,0,903,910,911,904,131,860,867,868,861,0,904,911,912,905,131,861,868,869,862,0,905,912,913,906,131,862,869,870,863,0,906,913,914,907,131,863,870,871,864,0,907,914,908,908,131,864,871,1405,1404,0,547,547,552,552,131,692,693,872,865,0,843,845,915,909,131,865,872,873,866,0,909,915,916,910,131,866,873,874,867,0,910,916,917,911,131,867,874,875,868,0,911,917,918,912,131,868,875,876,869,0,912,918,919,913,131,869,876,877,870,0,913,919,920,914,131,870,877,878,871,0,914,920,921,908,131,871,878,1406,1405,0,908,921,779,779,131,693,694,879,872,0,845,847,922,915,131,872,879,880,873,0,915,922,923,916,131,873,880,881,874,0,916,923,924,917,131,874,881,882,875,0,917,924,925,918,131,875,882,883,876,0,918,925,926,919,131,876,883,884,877,0,919,926,914,920,131,877,884,885,878,0,920,914,772,921,131,878,885,1407,1406,0,921,772,927,779,131,694,695,886,879,0,847,849,928,922,131,879,886,887,880,0,922,928,929,923,131,880,887,888,881,0,923,929,930,924,131,881,888,889,882,0,924,930,931,925,131,882,889,890,883,0,925,931,932,926,131,883,890,891,884,0,926,932,933,914,131,884,891,892,885,0,914,933,934,772,131,885,892,1408,1407,0,772,934,935,927,131,695,696,893,886,0,849,851,852,928,131,886,893,894,887,0,928,852,853,929,131,887,894,895,888,0,929,853,936,930,131,888,895,896,889,0,930,936,778,931,131,889,896,897,890,0,931,778,937,932,131,890,897,898,891,0,932,937,711,933,131,891,898,899,892,0,933,711,547,934,131,892,899,1409,1408,0,934,547,552,935,131,696,1447,1446,893,0,851,853,853,852,131,893,1446,1445,894,0,852,853,936,853,131,894,1445,1444,895,0,853,936,778,936,131,895,1444,1443,896,0,936,778,938,778,131,896,1443,1442,897,0,778,938,778,937,131,897,1442,1441,898,0,937,778,937,711,131,898,1441,1440,899,0,711,937,547,547,131,899,1440,1532,1409,0,547,547,552,552,131,900,922,929,901,0,939,940,939,939,131,901,929,930,902,0,939,939,940,939,131,902,930,931,903,0,939,940,941,940,131,903,931,932,904,0,940,941,939,942,131,904,932,933,905,0,942,939,939,939,131,905,933,934,906,0,939,939,943,944,131,906,934,935,907,0,944,943,945,946,131,907,935,1446,1447,0,946,945,947,948,131,922,923,936,929,0,940,949,950,939,131,929,936,937,930,0,939,950,950,940,131,930,937,938,931,0,940,950,941,941,131,931,938,939,932,0,941,941,939,939,131,932,939,940,933,0,939,939,939,939,131,933,940,941,934,0,939,939,951,943,131,934,941,942,935,0,943,951,952,945,131,935,942,1445,1446,0,945,952,947,947,131,923,924,943,936,0,949,939,939,950,131,936,943,944,937,0,950,939,939,950,131,937,944,945,938,0,950,939,940,941,131,938,945,946,939,0,941,940,942,939,131,939,946,947,940,0,939,942,939,939,131,940,947,948,941,0,939,939,953,951,131,941,948,949,942,0,951,953,954,952,131,942,949,1444,1445,0,952,954,771,947,131,924,925,950,943,0,939,939,942,939,131,943,950,951,944,0,939,942,942,939,131,944,951,952,945,0,939,942,942,940,131,945,952,953,946,0,940,942,942,942,131,946,953,954,947,0,942,942,939,939,131,947,954,955,948,0,939,939,955,953,131,948,955,956,949,0,953,955,956,954,131,949,956,1443,1444,0,954,956,938,771,131,925,926,957,950,0,939,942,942,942,131,950,957,958,951,0,942,942,942,942,131,951,958,959,952,0,942,942,942,942,131,952,959,960,953,0,942,942,942,942,131,953,960,961,954,0,942,942,957,939,131,954,961,962,955,0,939,957,958,955,131,955,962,963,956,0,955,958,959,956,131,956,963,1442,1443,0,956,959,778,938,131,926,927,964,957,0,942,942,942,942,131,957,964,965,958,0,942,942,942,942,131,958,965,966,959,0,942,942,939,942,131,959,966,967,960,0,942,939,960,942,131,960,967,968,961,0,942,960,961,957,131,961,968,969,962,0,957,961,962,958,131,962,969,970,963,0,958,962,963,959,131,963,970,1441,1442,0,959,963,937,778,131,927,928,971,964,0,942,964,965,942,131,964,971,972,965,0,942,965,966,942,131,965,972,973,966,0,942,966,967,939,131,966,973,974,967,0,939,967,968,960,131,967,974,975,968,0,960,968,969,961,131,968,975,976,969,0,961,969,970,962,131,969,976,977,970,0,962,970,971,963,131,970,977,1440,1441,0,963,971,972,937,131,928,1432,1431,971,0,964,548,548,965,131,971,1431,1430,972,0,965,548,548,966,131,972,1430,1429,973,0,966,548,552,967,131,973,1429,1428,974,0,967,552,548,968,131,974,1428,1427,975,0,968,548,549,969,131,975,1427,1426,976,0,969,549,549,970,131,976,1426,1425,977,0,970,549,548,971,131,977,1425,1532,1440,0,971,548,549,972,131,900,901,978,908,0,939,939,940,941,131,908,978,979,909,0,941,940,939,939,131,909,979,980,910,0,939,939,940,941,131,910,980,981,911,0,941,940,939,939,131,911,981,982,912,0,939,939,942,942,131,912,982,983,913,0,942,942,950,940,131,913,983,984,914,0,940,950,973,974,131,914,984,1521,1522,0,974,973,975,976,131,901,902,985,978,0,939,939,940,940,131,978,985,986,979,0,940,940,939,939,131,979,986,987,980,0,939,939,939,940,131,980,987,988,981,0,940,939,942,939,131,981,988,989,982,0,939,942,942,942,131,982,989,990,983,0,942,942,949,950,131,983,990,991,984,0,950,949,977,973,131,984,991,1520,1521,0,973,977,978,975,131,902,903,992,985,0,939,940,941,940,131,985,992,993,986,0,940,941,941,939,131,986,993,994,987,0,939,941,940,939,131,987,994,995,988,0,939,940,942,942,131,988,995,996,989,0,942,942,942,942,131,989,996,997,990,0,942,942,960,949,131,990,997,998,991,0,949,960,979,977,131,991,998,1519,1520,0,977,979,980,978,131,903,904,999,992,0,940,942,939,941,131,992,999,1000,993,0,941,939,939,941,131,993,1000,1001,994,0,941,939,939,940,131,994,1001,1002,995,0,940,939,942,942,131,995,1002,1003,996,0,942,942,942,942,131,996,1003,1004,997,0,942,942,981,960,131,997,1004,1005,998,0,960,981,982,979,131,998,1005,1518,1519,0,979,982,983,980,131,904,905,1006,999,0,942,939,939,939,131,999,1006,1007,1000,0,939,939,939,939,131,1000,1007,1008,1001,0,939,939,984,939,131,1001,1008,1009,1002,0,939,984,939,942,131,1002,1009,1010,1003,0,942,939,985,942,131,1003,1010,1011,1004,0,942,985,986,981,131,1004,1011,1012,1005,0,981,986,987,982,131,1005,1012,1517,1518,0,982,987,988,983,131,905,906,1013,1006,0,939,944,989,939,131,1006,1013,1014,1007,0,939,989,990,939,131,1007,1014,1015,1008,0,939,990,990,984,131,1008,1015,1016,1009,0,984,990,991,939,131,1009,1016,1017,1010,0,939,991,992,985,131,1010,1017,1018,1011,0,985,992,993,986,131,1011,1018,1019,1012,0,986,993,994,987,131,1012,1019,1516,1517,0,987,994,995,988,131,906,907,1020,1013,0,944,946,996,989,131,1013,1020,1021,1014,0,989,996,997,990,131,1014,1021,1022,1015,0,990,997,998,990,131,1015,1022,1023,1016,0,990,998,999,991,131,1016,1023,1024,1017,0,991,999,1000,992,131,1017,1024,1025,1018,0,992,1000,1001,993,131,1018,1025,1026,1019,0,993,1001,1002,994,131,1019,1026,1515,1516,0,994,1002,1003,995,131,907,1447,1448,1020,0,946,948,860,996,131,1020,1448,1449,1021,0,996,860,1004,997,131,1021,1449,1450,1022,0,997,1004,1005,998,131,1022,1450,1451,1023,0,998,1005,1005,999,131,1023,1451,1452,1024,0,999,1005,1006,1000,131,1024,1452,1453,1025,0,1000,1006,1007,1001,131,1025,1453,1454,1026,0,1001,1007,1008,1002,131,1026,1454,1536,1515,0,1002,1008,1009,1003,131,900,908,1027,915,0,939,941,940,939,131,915,1027,1028,916,0,939,940,940,984,131,916,1028,1029,917,0,984,940,941,939,131,917,1029,1030,918,0,939,941,939,942,131,918,1030,1031,919,0,942,939,942,939,131,919,1031,1032,920,0,939,942,1010,1011,131,920,1032,1033,921,0,1011,1010,1012,1013,131,921,1033,1463,1462,0,1013,1012,1014,1015,131,908,909,1034,1027,0,941,939,984,940,131,1027,1034,1035,1028,0,940,984,939,940,131,1028,1035,1036,1029,0,940,939,939,941,131,1029,1036,1037,1030,0,941,939,939,939,131,1030,1037,1038,1031,0,939,939,942,942,131,1031,1038,1039,1032,0,942,942,949,1010,131,1032,1039,1040,1033,0,1010,949,1016,1012,131,1033,1040,1464,1463,0,1012,1016,1017,1014,131,909,910,1041,1034,0,939,941,941,984,131,1034,1041,1042,1035,0,984,941,940,939,131,1035,1042,1043,1036,0,939,940,940,939,131,1036,1043,1044,1037,0,939,940,940,939,131,1037,1044,1045,1038,0,939,940,939,942,131,1038,1045,1046,1039,0,942,939,1018,949,131,1039,1046,1047,1040,0,949,1018,1019,1016,131,1040,1047,1465,1464,0,1016,1019,1017,1017,131,910,911,1048,1041,0,941,939,939,941,131,1041,1048,1049,1042,0,941,939,939,940,131,1042,1049,1050,1043,0,940,939,939,940,131,1043,1050,1051,1044,0,940,939,940,940,131,1044,1051,1052,1045,0,940,940,939,939,131,1045,1052,1053,1046,0,939,939,1020,1018,131,1046,1053,1054,1047,0,1018,1020,1021,1019,131,1047,1054,1466,1465,0,1019,1021,1022,1017,131,911,912,1055,1048,0,939,942,942,939,131,1048,1055,1056,1049,0,939,942,942,939,131,1049,1056,1057,1050,0,939,942,942,939,131,1050,1057,1058,1051,0,939,942,942,940,131,1051,1058,1059,1052,0,940,942,939,939,131,1052,1059,1060,1053,0,939,939,1023,1020,131,1053,1060,1061,1054,0,1020,1023,1024,1021,131,1054,1061,1467,1466,0,1021,1024,1025,1022,131,912,913,1062,1055,0,942,940,939,942,131,1055,1062,1063,1056,0,942,939,939,942,131,1056,1063,1064,1057,0,942,939,939,942,131,1057,1064,1065,1058,0,942,939,950,942,131,1058,1065,1066,1059,0,942,950,1026,939,131,1059,1066,1067,1060,0,939,1026,1027,1023,131,1060,1067,1068,1061,0,1023,1027,1028,1024,131,1061,1068,1468,1467,0,1024,1028,1029,1025,131,913,914,1069,1062,0,940,974,1030,939,131,1062,1069,1070,1063,0,939,1030,1031,939,131,1063,1070,1071,1064,0,939,1031,1032,939,131,1064,1071,1072,1065,0,939,1032,1033,950,131,1065,1072,1073,1066,0,950,1033,1034,1026,131,1066,1073,1074,1067,0,1026,1034,1035,1027,131,1067,1074,1075,1068,0,1027,1035,1036,1028,131,1068,1075,1469,1468,0,1028,1036,1037,1029,131,914,1522,1523,1069,0,974,976,1038,1030,131,1069,1523,1524,1070,0,1030,1038,1039,1031,131,1070,1524,1525,1071,0,1031,1039,1040,1032,131,1071,1525,1526,1072,0,1032,1040,1041,1033,131,1072,1526,1527,1073,0,1033,1041,1042,1034,131,1073,1527,1528,1074,0,1034,1042,1043,1035,131,1074,1528,1529,1075,0,1035,1043,1044,1036,131,1075,1529,1537,1469,0,1036,1044,1045,1037,131,900,915,1076,922,0,939,939,939,940,131,922,1076,1077,923,0,940,939,1046,949,131,923,1077,1078,924,0,949,1046,939,939,131,924,1078,1079,925,0,939,939,939,939,131,925,1079,1080,926,0,939,939,942,942,131,926,1080,1081,927,0,942,942,942,942,131,927,1081,1082,928,0,942,942,1047,964,131,928,1082,1433,1432,0,964,1047,548,548,131,915,916,1083,1076,0,939,984,939,939,131,1076,1083,1084,1077,0,939,939,949,1046,131,1077,1084,1085,1078,0,1046,949,939,939,131,1078,1085,1086,1079,0,939,939,942,939,131,1079,1086,1087,1080,0,939,942,942,942,131,1080,1087,1088,1081,0,942,942,942,942,131,1081,1088,1089,1082,0,942,942,1048,1047,131,1082,1089,1434,1433,0,1047,1048,548,548,131,916,917,1090,1083,0,984,939,940,939,131,1083,1090,1091,1084,0,939,940,941,949,131,1084,1091,1092,1085,0,949,941,939,939,131,1085,1092,1093,1086,0,939,939,942,942,131,1086,1093,1094,1087,0,942,942,942,942,131,1087,1094,1095,1088,0,942,942,940,942,131,1088,1095,1096,1089,0,942,940,1049,1048,131,1089,1096,1435,1434,0,1048,1049,549,548,131,917,918,1097,1090,0,939,942,942,940,131,1090,1097,1098,1091,0,940,942,942,941,131,1091,1098,1099,1092,0,941,942,942,939,131,1092,1099,1100,1093,0,939,942,939,942,131,1093,1100,1101,1094,0,942,939,1050,942,131,1094,1101,1102,1095,0,942,1050,1051,940,131,1095,1102,1103,1096,0,940,1051,1052,1049,131,1096,1103,1436,1435,0,1049,1052,550,549,131,918,919,1104,1097,0,942,939,939,942,131,1097,1104,1105,1098,0,942,939,942,942,131,1098,1105,1106,1099,0,942,942,1053,942,131,1099,1106,1107,1100,0,942,1053,1054,939,131,1100,1107,1108,1101,0,939,1054,1055,1050,131,1101,1108,1109,1102,0,1050,1055,1056,1051,131,1102,1109,1110,1103,0,1051,1056,1057,1052,131,1103,1110,1437,1436,0,1052,1057,550,550,131,919,920,1111,1104,0,939,1011,1058,939,131,1104,1111,1112,1105,0,939,1058,1059,942,131,1105,1112,1113,1106,0,942,1059,1060,1053,131,1106,1113,1114,1107,0,1053,1060,1061,1054,131,1107,1114,1115,1108,0,1054,1061,1062,1055,131,1108,1115,1116,1109,0,1055,1062,1063,1056,131,1109,1116,1117,1110,0,1056,1063,1064,1057,131,1110,1117,1438,1437,0,1057,1064,1065,550,131,920,921,1118,1111,0,1011,1013,1066,1058,131,1111,1118,1119,1112,0,1058,1066,1067,1059,131,1112,1119,1120,1113,0,1059,1067,1068,1060,131,1113,1120,1121,1114,0,1060,1068,1069,1061,131,1114,1121,1122,1115,0,1061,1069,1069,1062,131,1115,1122,1123,1116,0,1062,1069,1064,1063,131,1116,1123,1124,1117,0,1063,1064,1070,1064,131,1117,1124,1439,1438,0,1064,1070,1065,1065,131,921,1462,1461,1118,0,1013,1015,1071,1066,131,1118,1461,1460,1119,0,1066,1071,1072,1067,131,1119,1460,1459,1120,0,1067,1072,1073,1068,131,1120,1459,1458,1121,0,1068,1073,1074,1069,131,1121,1458,1457,1122,0,1069,1074,1075,1069,131,1122,1457,1456,1123,0,1069,1075,1076,1064,131,1123,1456,1455,1124,0,1064,1076,1076,1070,131,1124,1455,1533,1439,0,1070,1076,1077,1065,131,1125,1147,1154,1126,0,1078,1079,1080,1081,131,1126,1154,1155,1127,0,1081,1080,1082,1083,131,1127,1155,1156,1128,0,1083,1082,1084,1085,131,1128,1156,1157,1129,0,1085,1084,1086,1087,131,1129,1157,1158,1130,0,1087,1086,1088,1089,131,1130,1158,1159,1131,0,1089,1088,1090,1091,131,1131,1159,1160,1132,0,1091,1090,1092,1093,131,1132,1160,1388,1387,0,1093,1092,505,1094,131,1147,1148,1161,1154,0,1079,1095,1096,1080,131,1154,1161,1162,1155,0,1080,1096,1097,1082,131,1155,1162,1163,1156,0,1082,1097,1098,1084,131,1156,1163,1164,1157,0,1084,1098,1099,1086,131,1157,1164,1165,1158,0,1086,1099,1100,1088,131,1158,1165,1166,1159,0,1088,1100,1101,1090,131,1159,1166,1167,1160,0,1090,1101,1102,1092,131,1160,1167,1389,1388,0,1092,1102,288,505,131,1148,1149,1168,1161,0,1095,1103,1104,1096,131,1161,1168,1169,1162,0,1096,1104,1105,1097,131,1162,1169,1170,1163,0,1097,1105,1106,1098,131,1163,1170,1171,1164,0,1098,1106,1107,1099,131,1164,1171,1172,1165,0,1099,1107,1108,1100,131,1165,1172,1173,1166,0,1100,1108,1109,1101,131,1166,1173,1174,1167,0,1101,1109,1110,1102,131,1167,1174,1390,1389,0,1102,1110,610,288,131,1149,1150,1175,1168,0,1103,1111,1112,1104,131,1168,1175,1176,1169,0,1104,1112,1113,1105,131,1169,1176,1177,1170,0,1105,1113,1114,1106,131,1170,1177,1178,1171,0,1106,1114,1115,1107,131,1171,1178,1179,1172,0,1107,1115,1116,1108,131,1172,1179,1180,1173,0,1108,1116,1117,1109,131,1173,1180,1181,1174,0,1109,1117,1118,1110,131,1174,1181,1391,1390,0,1110,1118,610,610,131,1150,1151,1182,1175,0,1111,1119,1120,1112,131,1175,1182,1183,1176,0,1112,1120,1121,1113,131,1176,1183,1184,1177,0,1113,1121,1122,1114,131,1177,1184,1185,1178,0,1114,1122,1123,1115,131,1178,1185,1186,1179,0,1115,1123,1124,1116,131,1179,1186,1187,1180,0,1116,1124,1125,1117,131,1180,1187,1188,1181,0,1117,1125,1126,1118,131,1181,1188,1392,1391,0,1118,1126,611,610,131,1151,1152,1189,1182,0,1119,1127,1128,1120,131,1182,1189,1190,1183,0,1120,1128,1129,1121,131,1183,1190,1191,1184,0,1121,1129,1130,1122,131,1184,1191,1192,1185,0,1122,1130,1131,1123,131,1185,1192,1193,1186,0,1123,1131,1132,1124,131,1186,1193,1194,1187,0,1124,1132,1133,1125,131,1187,1194,1195,1188,0,1125,1133,1134,1126,131,1188,1195,1393,1392,0,1126,1134,609,611,131,1152,1153,1196,1189,0,1127,1135,1136,1128,131,1189,1196,1197,1190,0,1128,1136,1137,1129,131,1190,1197,1198,1191,0,1129,1137,1138,1130,131,1191,1198,1199,1192,0,1130,1138,1139,1131,131,1192,1199,1200,1193,0,1131,1139,1140,1132,131,1193,1200,1201,1194,0,1132,1140,1141,1133,131,1194,1201,1202,1195,0,1133,1141,1142,1134,131,1195,1202,1394,1393,0,1134,1142,612,609,131,1153,1492,1491,1196,0,1135,1143,230,1136,131,1196,1491,1490,1197,0,1136,230,1144,1137,131,1197,1490,1489,1198,0,1137,1144,249,1138,131,1198,1489,1488,1199,0,1138,249,1145,1139,131,1199,1488,1487,1200,0,1139,1145,1146,1140,131,1200,1487,1486,1201,0,1140,1146,1147,1141,131,1201,1486,1485,1202,0,1141,1147,1148,1142,131,1202,1485,1534,1394,0,1142,1148,1149,612,131,1125,1126,1203,1133,0,1078,1081,1150,1151,131,1133,1203,1204,1134,0,1151,1150,1152,1153,131,1134,1204,1205,1135,0,1153,1152,1154,1155,131,1135,1205,1206,1136,0,1155,1154,1156,1157,131,1136,1206,1207,1137,0,1157,1156,1158,1159,131,1137,1207,1208,1138,0,1159,1158,1160,1161,131,1138,1208,1209,1139,0,1161,1160,1162,1162,131,1139,1209,1371,1372,0,1162,1162,58,61,131,1126,1127,1210,1203,0,1081,1083,1163,1150,131,1203,1210,1211,1204,0,1150,1163,1152,1152,131,1204,1211,1212,1205,0,1152,1152,1164,1154,131,1205,1212,1213,1206,0,1154,1164,1165,1156,131,1206,1213,1214,1207,0,1156,1165,1166,1158,131,1207,1214,1215,1208,0,1158,1166,1167,1160,131,1208,1215,1216,1209,0,1160,1167,1168,1162,131,1209,1216,1370,1371,0,1162,1168,58,58,131,1127,1128,1217,1210,0,1083,1085,1169,1163,131,1210,1217,1218,1211,0,1163,1169,1152,1152,131,1211,1218,1219,1212,0,1152,1152,1170,1164,131,1212,1219,1220,1213,0,1164,1170,1171,1165,131,1213,1220,1221,1214,0,1165,1171,1172,1166,131,1214,1221,1222,1215,0,1166,1172,1173,1167,131,1215,1222,1223,1216,0,1167,1173,1174,1168,131,1216,1223,1369,1370,0,1168,1174,58,58,131,1128,1129,1224,1217,0,1085,1087,1175,1169,131,1217,1224,1225,1218,0,1169,1175,1152,1152,131,1218,1225,1226,1219,0,1152,1152,1176,1170,131,1219,1226,1227,1220,0,1170,1176,1177,1171,131,1220,1227,1228,1221,0,1171,1177,1178,1172,131,1221,1228,1229,1222,0,1172,1178,1179,1173,131,1222,1229,1230,1223,0,1173,1179,1180,1174,131,1223,1230,1368,1369,0,1174,1180,58,58,131,1129,1130,1231,1224,0,1087,1089,1181,1175,131,1224,1231,1232,1225,0,1175,1181,1182,1152,131,1225,1232,1233,1226,0,1152,1182,1183,1176,131,1226,1233,1234,1227,0,1176,1183,1184,1177,131,1227,1234,1235,1228,0,1177,1184,1185,1178,131,1228,1235,1236,1229,0,1178,1185,1186,1179,131,1229,1236,1237,1230,0,1179,1186,1187,1180,131,1230,1237,1367,1368,0,1180,1187,58,58,131,1130,1131,1238,1231,0,1089,1091,1188,1181,131,1231,1238,1239,1232,0,1181,1188,1189,1182,131,1232,1239,1240,1233,0,1182,1189,1190,1183,131,1233,1240,1241,1234,0,1183,1190,1191,1184,131,1234,1241,1242,1235,0,1184,1191,1192,1185,131,1235,1242,1243,1236,0,1185,1192,1193,1186,131,1236,1243,1244,1237,0,1186,1193,49,1187,131,1237,1244,1366,1367,0,1187,49,1062,58,131,1131,1132,1245,1238,0,1091,1093,1194,1188,131,1238,1245,1246,1239,0,1188,1194,1195,1189,131,1239,1246,1247,1240,0,1189,1195,1196,1190,131,1240,1247,1248,1241,0,1190,1196,1197,1191,131,1241,1248,1249,1242,0,1191,1197,1198,1192,131,1242,1249,1250,1243,0,1192,1198,1199,1193,131,1243,1250,1251,1244,0,1193,1199,206,49,131,1244,1251,1365,1366,0,49,206,1200,1062,131,1132,1387,1386,1245,0,1093,1094,1201,1194,131,1245,1386,1385,1246,0,1194,1201,1202,1195,131,1246,1385,1384,1247,0,1195,1202,1203,1196,131,1247,1384,1383,1248,0,1196,1203,1204,1197,131,1248,1383,1382,1249,0,1197,1204,541,1198,131,1249,1382,1381,1250,0,1198,541,1205,1199,131,1250,1381,1380,1251,0,1199,1205,1200,206,131,1251,1380,1530,1365,0,206,1200,1206,1200,131,1125,1133,1252,1140,0,1078,1151,1207,1208,131,1140,1252,1253,1141,0,1208,1207,1209,1210,131,1141,1253,1254,1142,0,1210,1209,1211,1212,131,1142,1254,1255,1143,0,1212,1211,1213,1214,131,1143,1255,1256,1144,0,1214,1213,1215,1216,131,1144,1256,1257,1145,0,1216,1215,1217,1218,131,1145,1257,1258,1146,0,1218,1217,1219,1220,131,1146,1258,1461,1462,0,1220,1219,1221,1015,131,1133,1134,1259,1252,0,1151,1153,1153,1207,131,1252,1259,1260,1253,0,1207,1153,1153,1209,131,1253,1260,1261,1254,0,1209,1153,1153,1211,131,1254,1261,1262,1255,0,1211,1153,1222,1213,131,1255,1262,1263,1256,0,1213,1222,1222,1215,131,1256,1263,1264,1257,0,1215,1222,1223,1217,131,1257,1264,1265,1258,0,1217,1223,1224,1219,131,1258,1265,1460,1461,0,1219,1224,1225,1221,131,1134,1135,1266,1259,0,1153,1155,1226,1153,131,1259,1266,1267,1260,0,1153,1226,1227,1153,131,1260,1267,1268,1261,0,1153,1227,1228,1153,131,1261,1268,1269,1262,0,1153,1228,1229,1222,131,1262,1269,1270,1263,0,1222,1229,1230,1222,131,1263,1270,1271,1264,0,1222,1230,1231,1223,131,1264,1271,1272,1265,0,1223,1231,1232,1224,131,1265,1272,1459,1460,0,1224,1232,1233,1225,131,1135,1136,1273,1266,0,1155,1157,1234,1226,131,1266,1273,1274,1267,0,1226,1234,1235,1227,131,1267,1274,1275,1268,0,1227,1235,1236,1228,131,1268,1275,1276,1269,0,1228,1236,1237,1229,131,1269,1276,1277,1270,0,1229,1237,1238,1230,131,1270,1277,1278,1271,0,1230,1238,1239,1231,131,1271,1278,1279,1272,0,1231,1239,1240,1232,131,1272,1279,1458,1459,0,1232,1240,1204,1233,131,1136,1137,1280,1273,0,1157,1159,1241,1234,131,1273,1280,1281,1274,0,1234,1241,1242,1235,131,1274,1281,1282,1275,0,1235,1242,1243,1236,131,1275,1282,1283,1276,0,1236,1243,1244,1237,131,1276,1283,1284,1277,0,1237,1244,1244,1238,131,1277,1284,1285,1278,0,1238,1244,1245,1239,131,1278,1285,1286,1279,0,1239,1245,1246,1240,131,1279,1286,1457,1458,0,1240,1246,1247,1204,131,1137,1138,1287,1280,0,1159,1161,1248,1241,131,1280,1287,1288,1281,0,1241,1248,1249,1242,131,1281,1288,1289,1282,0,1242,1249,1250,1243,131,1282,1289,1290,1283,0,1243,1250,1251,1244,131,1283,1290,1291,1284,0,1244,1251,1252,1244,131,1284,1291,1292,1285,0,1244,1252,1253,1245,131,1285,1292,1293,1286,0,1245,1253,1254,1246,131,1286,1293,1456,1457,0,1246,1254,61,1247,131,1138,1139,1294,1287,0,1161,1162,1255,1248,131,1287,1294,1295,1288,0,1248,1255,1256,1249,131,1288,1295,1296,1289,0,1249,1256,1257,1250,131,1289,1296,1297,1290,0,1250,1257,1258,1251,131,1290,1297,1298,1291,0,1251,1258,1257,1252,131,1291,1298,1299,1292,0,1252,1257,1259,1253,131,1292,1299,1300,1293,0,1253,1259,1200,1254,131,1293,1300,1455,1456,0,1254,1200,206,61,131,1139,1372,1373,1294,0,1162,61,1062,1255,131,1294,1373,1374,1295,0,1255,1062,61,1256,131,1295,1374,1375,1296,0,1256,61,61,1257,131,1296,1375,1376,1297,0,1257,61,61,1258,131,1297,1376,1377,1298,0,1258,61,58,1257,131,1298,1377,1378,1299,0,1257,58,58,1259,131,1299,1378,1379,1300,0,1259,58,206,1200,131,1300,1379,1533,1455,0,1200,206,1260,206,131,1125,1140,1301,1147,0,1078,1208,1261,1079,131,1147,1301,1302,1148,0,1079,1261,1262,1095,131,1148,1302,1303,1149,0,1095,1262,1263,1103,131,1149,1303,1304,1150,0,1103,1263,1264,1111,131,1150,1304,1305,1151,0,1111,1264,1265,1119,131,1151,1305,1306,1152,0,1119,1265,1266,1127,131,1152,1306,1307,1153,0,1127,1266,1267,1135,131,1153,1307,1493,1492,0,1135,1267,230,1143,131,1140,1141,1308,1301,0,1208,1210,1268,1261,131,1301,1308,1309,1302,0,1261,1268,1269,1262,131,1302,1309,1310,1303,0,1262,1269,1270,1263,131,1303,1310,1311,1304,0,1263,1270,1271,1264,131,1304,1311,1312,1305,0,1264,1271,1272,1265,131,1305,1312,1313,1306,0,1265,1272,1273,1266,131,1306,1313,1314,1307,0,1266,1273,1274,1267,131,1307,1314,1494,1493,0,1267,1274,1275,230,131,1141,1142,1315,1308,0,1210,1212,1276,1268,131,1308,1315,1316,1309,0,1268,1276,1277,1269,131,1309,1316,1317,1310,0,1269,1277,1278,1270,131,1310,1317,1318,1311,0,1270,1278,1279,1271,131,1311,1318,1319,1312,0,1271,1279,1280,1272,131,1312,1319,1320,1313,0,1272,1280,1281,1273,131,1313,1320,1321,1314,0,1273,1281,1282,1274,131,1314,1321,1495,1494,0,1274,1282,1283,1275,131,1142,1143,1322,1315,0,1212,1214,1284,1276,131,1315,1322,1323,1316,0,1276,1284,1285,1277,131,1316,1323,1324,1317,0,1277,1285,1286,1278,131,1317,1324,1325,1318,0,1278,1286,1287,1279,131,1318,1325,1326,1319,0,1279,1287,1288,1280,131,1319,1326,1327,1320,0,1280,1288,1289,1281,131,1320,1327,1328,1321,0,1281,1289,1290,1282,131,1321,1328,1496,1495,0,1282,1290,1291,1283,131,1143,1144,1329,1322,0,1214,1216,1292,1284,131,1322,1329,1330,1323,0,1284,1292,1293,1285,131,1323,1330,1331,1324,0,1285,1293,1294,1286,131,1324,1331,1332,1325,0,1286,1294,1295,1287,131,1325,1332,1333,1326,0,1287,1295,1296,1288,131,1326,1333,1334,1327,0,1288,1296,1297,1289,131,1327,1334,1335,1328,0,1289,1297,1298,1290,131,1328,1335,1497,1496,0,1290,1298,1299,1291,131,1144,1145,1336,1329,0,1216,1218,1300,1292,131,1329,1336,1337,1330,0,1292,1300,1301,1293,131,1330,1337,1338,1331,0,1293,1301,1302,1294,131,1331,1338,1339,1332,0,1294,1302,1303,1295,131,1332,1339,1340,1333,0,1295,1303,1304,1296,131,1333,1340,1341,1334,0,1296,1304,1305,1297,131,1334,1341,1342,1335,0,1297,1305,1306,1298,131,1335,1342,1498,1497,0,1298,1306,1307,1299,131,1145,1146,1343,1336,0,1218,1220,1308,1300,131,1336,1343,1344,1337,0,1300,1308,1309,1301,131,1337,1344,1345,1338,0,1301,1309,1310,1302,131,1338,1345,1346,1339,0,1302,1310,1311,1303,131,1339,1346,1347,1340,0,1303,1311,1312,1304,131,1340,1347,1348,1341,0,1304,1312,1313,1305,131,1341,1348,1349,1342,0,1305,1313,357,1306,131,1342,1349,1499,1498,0,1306,357,357,1307,131,1146,1462,1463,1343,0,1220,1015,1014,1308,131,1343,1463,1464,1344,0,1308,1014,1017,1309,131,1344,1464,1465,1345,0,1309,1017,1017,1310,131,1345,1465,1466,1346,0,1310,1017,1022,1311,131,1346,1466,1467,1347,0,1311,1022,1025,1312,131,1347,1467,1468,1348,0,1312,1025,1029,1313,131,1348,1468,1469,1349,0,1313,1029,1029,357,131,1349,1469,1537,1499,0,357,1029,1314,357] + "faces": [131,0,22,29,1,0,0,1,1,0,131,1,29,30,2,0,0,1,1,0,131,2,30,31,3,0,0,1,1,0,131,3,31,32,4,0,0,1,2,0,131,4,32,33,5,0,0,2,3,4,131,5,33,34,6,0,4,3,5,6,131,6,34,35,7,0,6,5,7,7,131,7,35,1356,1357,0,7,7,8,9,131,22,23,36,29,0,1,10,11,1,131,29,36,37,30,0,1,11,12,1,131,30,37,38,31,0,1,12,13,1,131,31,38,39,32,0,1,13,14,2,131,32,39,40,33,0,2,14,15,3,131,33,40,41,34,0,3,15,16,5,131,34,41,42,35,0,5,16,17,7,131,35,42,1355,1356,0,7,17,18,8,131,23,24,43,36,0,10,19,19,11,131,36,43,44,37,0,11,19,19,12,131,37,44,45,38,0,12,19,19,13,131,38,45,46,39,0,13,19,20,14,131,39,46,47,40,0,14,20,20,15,131,40,47,48,41,0,15,20,21,16,131,41,48,49,42,0,16,21,22,17,131,42,49,1354,1355,0,17,22,23,18,131,24,25,50,43,0,19,24,24,19,131,43,50,51,44,0,19,24,24,19,131,44,51,52,45,0,19,24,25,19,131,45,52,53,46,0,19,25,26,20,131,46,53,54,47,0,20,26,27,20,131,47,54,55,48,0,20,27,28,21,131,48,55,56,49,0,21,28,29,22,131,49,56,1353,1354,0,22,29,30,23,131,25,26,57,50,0,24,31,32,24,131,50,57,58,51,0,24,32,33,24,131,51,58,59,52,0,24,33,34,25,131,52,59,60,53,0,25,34,35,26,131,53,60,61,54,0,26,35,36,27,131,54,61,62,55,0,27,36,37,28,131,55,62,63,56,0,28,37,38,29,131,56,63,1352,1353,0,29,38,39,30,131,26,27,64,57,0,31,40,41,32,131,57,64,65,58,0,32,41,42,33,131,58,65,66,59,0,33,42,43,34,131,59,66,67,60,0,34,43,44,35,131,60,67,68,61,0,35,44,45,36,131,61,68,69,62,0,36,45,46,37,131,62,69,70,63,0,37,46,47,38,131,63,70,1351,1352,0,38,47,48,39,131,27,28,71,64,0,40,49,50,41,131,64,71,72,65,0,41,50,51,42,131,65,72,73,66,0,42,51,52,43,131,66,73,74,67,0,43,52,53,44,131,67,74,75,68,0,44,53,54,45,131,68,75,76,69,0,45,54,55,46,131,69,76,77,70,0,46,55,56,47,131,70,77,1350,1351,0,47,56,57,48,131,28,1372,1371,71,0,49,58,58,50,131,71,1371,1370,72,0,50,58,58,51,131,72,1370,1369,73,0,51,58,59,52,131,73,1369,1368,74,0,52,59,60,53,131,74,1368,1367,75,0,53,60,61,54,131,75,1367,1366,76,0,54,61,62,55,131,76,1366,1365,77,0,55,62,63,56,131,77,1365,1530,1350,0,56,63,64,57,131,0,1,78,8,0,0,0,65,66,131,8,78,79,9,0,66,65,67,68,131,9,79,80,10,0,68,67,69,69,131,10,80,81,11,0,69,69,70,70,131,11,81,82,12,0,70,70,71,72,131,12,82,83,13,0,72,71,73,74,131,13,83,84,14,0,74,73,75,76,131,14,84,1401,1402,0,76,75,77,77,131,1,2,85,78,0,0,0,65,65,131,78,85,86,79,0,65,65,78,67,131,79,86,87,80,0,67,78,69,69,131,80,87,88,81,0,69,69,79,70,131,81,88,89,82,0,70,79,80,71,131,82,89,90,83,0,71,80,81,73,131,83,90,91,84,0,73,81,82,75,131,84,91,1400,1401,0,75,82,77,77,131,2,3,92,85,0,0,0,83,65,131,85,92,93,86,0,65,83,84,78,131,86,93,94,87,0,78,84,69,69,131,87,94,95,88,0,69,69,85,79,131,88,95,96,89,0,79,85,80,80,131,89,96,97,90,0,80,80,86,81,131,90,97,98,91,0,81,86,87,82,131,91,98,1399,1400,0,82,87,77,77,131,3,4,99,92,0,0,0,88,83,131,92,99,100,93,0,83,88,89,84,131,93,100,101,94,0,84,89,69,69,131,94,101,102,95,0,69,69,85,85,131,95,102,103,96,0,85,85,71,80,131,96,103,104,97,0,80,71,90,86,131,97,104,105,98,0,86,90,91,87,131,98,105,1398,1399,0,87,91,77,77,131,4,5,106,99,0,0,4,92,88,131,99,106,107,100,0,88,92,93,89,131,100,107,108,101,0,89,93,69,69,131,101,108,109,102,0,69,69,94,85,131,102,109,110,103,0,85,94,95,71,131,103,110,111,104,0,71,95,96,90,131,104,111,112,105,0,90,96,91,91,131,105,112,1397,1398,0,91,91,97,77,131,5,6,113,106,0,4,6,98,92,131,106,113,114,107,0,92,98,99,93,131,107,114,115,108,0,93,99,100,69,131,108,115,116,109,0,69,100,101,94,131,109,116,117,110,0,94,101,102,95,131,110,117,118,111,0,95,102,103,96,131,111,118,119,112,0,96,103,104,91,131,112,119,1396,1397,0,91,104,105,97,131,6,7,120,113,0,6,7,106,98,131,113,120,121,114,0,98,106,107,99,131,114,121,122,115,0,99,107,108,100,131,115,122,123,116,0,100,108,109,101,131,116,123,124,117,0,101,109,110,102,131,117,124,125,118,0,102,110,111,103,131,118,125,126,119,0,103,111,112,104,131,119,126,1395,1396,0,104,112,113,105,131,7,1357,1358,120,0,7,9,114,106,131,120,1358,1359,121,0,106,114,115,107,131,121,1359,1360,122,0,107,115,115,108,131,122,1360,1361,123,0,108,115,114,109,131,123,1361,1362,124,0,109,114,8,110,131,124,1362,1363,125,0,110,8,8,111,131,125,1363,1364,126,0,111,8,116,112,131,126,1364,1531,1395,0,112,116,117,113,131,0,8,127,15,0,0,66,118,0,131,15,127,128,16,0,0,118,119,0,131,16,128,129,17,0,0,119,120,0,131,17,129,130,18,0,0,120,120,0,131,18,130,131,19,0,0,120,121,0,131,19,131,132,20,0,0,121,122,123,131,20,132,133,21,0,123,122,124,125,131,21,133,1431,1432,0,125,124,126,127,131,8,9,134,127,0,66,68,68,118,131,127,134,135,128,0,118,68,68,119,131,128,135,136,129,0,119,68,128,120,131,129,136,137,130,0,120,128,84,120,131,130,137,138,131,0,120,84,129,121,131,131,138,139,132,0,121,129,130,122,131,132,139,140,133,0,122,130,131,124,131,133,140,1430,1431,0,124,131,132,126,131,9,10,141,134,0,68,69,69,68,131,134,141,142,135,0,68,69,69,68,131,135,142,143,136,0,68,69,69,128,131,136,143,144,137,0,128,69,69,84,131,137,144,145,138,0,84,69,133,129,131,138,145,146,139,0,129,133,134,130,131,139,146,147,140,0,130,134,135,131,131,140,147,1429,1430,0,131,135,136,132,131,10,11,148,141,0,69,70,69,69,131,141,148,149,142,0,69,69,69,69,131,142,149,150,143,0,69,69,137,69,131,143,150,151,144,0,69,137,138,69,131,144,151,152,145,0,69,138,139,133,131,145,152,153,146,0,133,139,140,134,131,146,153,154,147,0,134,140,141,135,131,147,154,1428,1429,0,135,141,142,136,131,11,12,155,148,0,70,72,143,69,131,148,155,156,149,0,69,143,144,69,131,149,156,157,150,0,69,144,145,137,131,150,157,158,151,0,137,145,146,138,131,151,158,159,152,0,138,146,147,139,131,152,159,160,153,0,139,147,148,140,131,153,160,161,154,0,140,148,149,141,131,154,161,1427,1428,0,141,149,150,142,131,12,13,162,155,0,72,74,81,143,131,155,162,163,156,0,143,81,151,144,131,156,163,164,157,0,144,151,152,145,131,157,164,165,158,0,145,152,153,146,131,158,165,166,159,0,146,153,154,147,131,159,166,167,160,0,147,154,155,148,131,160,167,168,161,0,148,155,156,149,131,161,168,1426,1427,0,149,156,97,150,131,13,14,169,162,0,74,76,157,81,131,162,169,170,163,0,81,157,158,151,131,163,170,171,164,0,151,158,159,152,131,164,171,172,165,0,152,159,160,153,131,165,172,173,166,0,153,160,160,154,131,166,173,174,167,0,154,160,161,155,131,167,174,175,168,0,155,161,162,156,131,168,175,1425,1426,0,156,162,163,97,131,14,1402,1403,169,0,76,77,77,157,131,169,1403,1404,170,0,157,77,164,158,131,170,1404,1405,171,0,158,164,165,159,131,171,1405,1406,172,0,159,165,161,160,131,172,1406,1407,173,0,160,161,165,160,131,173,1407,1408,174,0,160,165,166,161,131,174,1408,1409,175,0,161,166,163,162,131,175,1409,1532,1425,0,162,163,163,163,131,0,15,176,22,0,0,0,1,1,131,22,176,177,23,0,1,1,167,10,131,23,177,178,24,0,10,167,19,19,131,24,178,179,25,0,19,19,168,24,131,25,179,180,26,0,24,168,169,31,131,26,180,181,27,0,31,169,170,40,131,27,181,182,28,0,40,170,171,49,131,28,182,1373,1372,0,49,171,59,58,131,15,16,183,176,0,0,0,1,1,131,176,183,184,177,0,1,1,172,167,131,177,184,185,178,0,167,172,19,19,131,178,185,186,179,0,19,19,26,168,131,179,186,187,180,0,168,26,173,169,131,180,187,188,181,0,169,173,174,170,131,181,188,189,182,0,170,174,54,171,131,182,189,1374,1373,0,171,54,59,59,131,16,17,190,183,0,0,0,2,1,131,183,190,191,184,0,1,2,175,172,131,184,191,192,185,0,172,175,19,19,131,185,192,193,186,0,19,19,176,26,131,186,193,194,187,0,26,176,177,173,131,187,194,195,188,0,173,177,178,174,131,188,195,196,189,0,174,178,179,54,131,189,196,1375,1374,0,54,179,180,59,131,17,18,197,190,0,0,0,181,2,131,190,197,198,191,0,2,181,182,175,131,191,198,199,192,0,175,182,19,19,131,192,199,200,193,0,19,19,183,176,131,193,200,201,194,0,176,183,184,177,131,194,201,202,195,0,177,184,185,178,131,195,202,203,196,0,178,185,186,179,131,196,203,1376,1375,0,179,186,187,180,131,18,19,204,197,0,0,0,0,181,131,197,204,205,198,0,181,0,188,182,131,198,205,206,199,0,182,188,19,19,131,199,206,207,200,0,19,19,189,183,131,200,207,208,201,0,183,189,190,184,131,201,208,209,202,0,184,190,191,185,131,202,209,210,203,0,185,191,192,186,131,203,210,1377,1376,0,186,192,187,187,131,19,20,211,204,0,0,123,193,0,131,204,211,212,205,0,0,193,194,188,131,205,212,213,206,0,188,194,195,19,131,206,213,214,207,0,19,195,196,189,131,207,214,215,208,0,189,196,197,190,131,208,215,216,209,0,190,197,198,191,131,209,216,217,210,0,191,198,180,192,131,210,217,1378,1377,0,192,180,180,187,131,20,21,218,211,0,123,125,199,193,131,211,218,219,212,0,193,199,200,194,131,212,219,220,213,0,194,200,201,195,131,213,220,221,214,0,195,201,202,196,131,214,221,222,215,0,196,202,203,197,131,215,222,223,216,0,197,203,204,198,131,216,223,224,217,0,198,204,205,180,131,217,224,1379,1378,0,180,205,206,180,131,21,1432,1433,218,0,125,127,207,199,131,218,1433,1434,219,0,199,207,208,200,131,219,1434,1435,220,0,200,208,209,201,131,220,1435,1436,221,0,201,209,210,202,131,221,1436,1437,222,0,202,210,211,203,131,222,1437,1438,223,0,203,211,212,204,131,223,1438,1439,224,0,204,212,213,205,131,224,1439,1533,1379,0,205,213,205,206,131,225,247,254,226,0,214,215,216,217,131,226,254,255,227,0,217,216,218,219,131,227,255,256,228,0,219,218,220,221,131,228,256,257,229,0,221,220,222,223,131,229,257,258,230,0,223,222,224,225,131,230,258,259,231,0,225,224,226,227,131,231,259,260,232,0,227,226,228,229,131,232,260,1491,1492,0,229,228,230,231,131,247,248,261,254,0,215,232,233,216,131,254,261,262,255,0,216,233,234,218,131,255,262,263,256,0,218,234,235,220,131,256,263,264,257,0,220,235,236,222,131,257,264,265,258,0,222,236,237,224,131,258,265,266,259,0,224,237,238,226,131,259,266,267,260,0,226,238,239,228,131,260,267,1490,1491,0,228,239,240,230,131,248,249,268,261,0,232,241,242,233,131,261,268,269,262,0,233,242,243,234,131,262,269,270,263,0,234,243,244,235,131,263,270,271,264,0,235,244,245,236,131,264,271,272,265,0,236,245,246,237,131,265,272,273,266,0,237,246,247,238,131,266,273,274,267,0,238,247,248,239,131,267,274,1489,1490,0,239,248,249,240,131,249,250,275,268,0,241,250,251,242,131,268,275,276,269,0,242,251,252,243,131,269,276,277,270,0,243,252,253,244,131,270,277,278,271,0,244,253,254,245,131,271,278,279,272,0,245,254,255,246,131,272,279,280,273,0,246,255,256,247,131,273,280,281,274,0,247,256,257,248,131,274,281,1488,1489,0,248,257,258,249,131,250,251,282,275,0,250,259,260,251,131,275,282,283,276,0,251,260,261,252,131,276,283,284,277,0,252,261,262,253,131,277,284,285,278,0,253,262,263,254,131,278,285,286,279,0,254,263,264,255,131,279,286,287,280,0,255,264,265,256,131,280,287,288,281,0,256,265,266,257,131,281,288,1487,1488,0,257,266,267,258,131,251,252,289,282,0,259,268,269,260,131,282,289,290,283,0,260,269,270,261,131,283,290,291,284,0,261,270,271,262,131,284,291,292,285,0,262,271,272,263,131,285,292,293,286,0,263,272,273,264,131,286,293,294,287,0,264,273,274,265,131,287,294,295,288,0,265,274,275,266,131,288,295,1486,1487,0,266,275,276,267,131,252,253,296,289,0,268,277,278,269,131,289,296,297,290,0,269,278,279,270,131,290,297,298,291,0,270,279,280,271,131,291,298,299,292,0,271,280,281,272,131,292,299,300,293,0,272,281,282,273,131,293,300,301,294,0,273,282,283,274,131,294,301,302,295,0,274,283,284,275,131,295,302,1485,1486,0,275,284,285,276,131,253,1477,1476,296,0,277,286,287,278,131,296,1476,1475,297,0,278,287,164,279,131,297,1475,1474,298,0,279,164,77,280,131,298,1474,1473,299,0,280,77,77,281,131,299,1473,1472,300,0,281,77,166,282,131,300,1472,1471,301,0,282,166,166,283,131,301,1471,1470,302,0,283,166,288,284,131,302,1470,1534,1485,0,284,288,289,285,131,225,226,303,233,0,214,217,290,291,131,233,303,304,234,0,291,290,292,293,131,234,304,305,235,0,293,292,294,295,131,235,305,306,236,0,295,294,296,297,131,236,306,307,237,0,297,296,298,299,131,237,307,308,238,0,299,298,300,301,131,238,308,309,239,0,301,300,302,303,131,239,309,1523,1522,0,303,302,304,305,131,226,227,310,303,0,217,219,306,290,131,303,310,311,304,0,290,306,307,292,131,304,311,312,305,0,292,307,308,294,131,305,312,313,306,0,294,308,309,296,131,306,313,314,307,0,296,309,310,298,131,307,314,315,308,0,298,310,311,300,131,308,315,316,309,0,300,311,312,302,131,309,316,1524,1523,0,302,312,313,304,131,227,228,317,310,0,219,221,314,306,131,310,317,318,311,0,306,314,315,307,131,311,318,319,312,0,307,315,316,308,131,312,319,320,313,0,308,316,317,309,131,313,320,321,314,0,309,317,318,310,131,314,321,322,315,0,310,318,319,311,131,315,322,323,316,0,311,319,320,312,131,316,323,1525,1524,0,312,320,313,313,131,228,229,324,317,0,221,223,321,314,131,317,324,325,318,0,314,321,322,315,131,318,325,326,319,0,315,322,323,316,131,319,326,327,320,0,316,323,324,317,131,320,327,328,321,0,317,324,325,318,131,321,328,329,322,0,318,325,326,319,131,322,329,330,323,0,319,326,327,320,131,323,330,1526,1525,0,320,327,328,313,131,229,230,331,324,0,223,225,329,321,131,324,331,332,325,0,321,329,330,322,131,325,332,333,326,0,322,330,331,323,131,326,333,334,327,0,323,331,332,324,131,327,334,335,328,0,324,332,333,325,131,328,335,336,329,0,325,333,334,326,131,329,336,337,330,0,326,334,335,327,131,330,337,1527,1526,0,327,335,336,328,131,230,231,338,331,0,225,227,337,329,131,331,338,339,332,0,329,337,338,330,131,332,339,340,333,0,330,338,339,331,131,333,340,341,334,0,331,339,340,332,131,334,341,342,335,0,332,340,341,333,131,335,342,343,336,0,333,341,342,334,131,336,343,344,337,0,334,342,343,335,131,337,344,1528,1527,0,335,343,343,336,131,231,232,345,338,0,227,229,344,337,131,338,345,346,339,0,337,344,345,338,131,339,346,347,340,0,338,345,346,339,131,340,347,348,341,0,339,346,347,340,131,341,348,349,342,0,340,347,348,341,131,342,349,350,343,0,341,348,349,342,131,343,350,351,344,0,342,349,350,343,131,344,351,1529,1528,0,343,350,351,343,131,232,1492,1493,345,0,229,231,352,344,131,345,1493,1494,346,0,344,352,353,345,131,346,1494,1495,347,0,345,353,347,346,131,347,1495,1496,348,0,346,347,354,347,131,348,1496,1497,349,0,347,354,355,348,131,349,1497,1498,350,0,348,355,356,349,131,350,1498,1499,351,0,349,356,357,350,131,351,1499,1537,1529,0,350,357,358,351,131,225,233,352,240,0,214,291,359,360,131,240,352,353,241,0,360,359,361,362,131,241,353,354,242,0,362,361,363,364,131,242,354,355,243,0,364,363,365,366,131,243,355,356,244,0,366,365,367,368,131,244,356,357,245,0,368,367,369,370,131,245,357,358,246,0,370,369,371,372,131,246,358,1508,1507,0,372,371,373,374,131,233,234,359,352,0,291,293,375,359,131,352,359,360,353,0,359,375,376,361,131,353,360,361,354,0,361,376,377,363,131,354,361,362,355,0,363,377,378,365,131,355,362,363,356,0,365,378,379,367,131,356,363,364,357,0,367,379,380,369,131,357,364,365,358,0,369,380,381,371,131,358,365,1509,1508,0,371,381,382,373,131,234,235,366,359,0,293,295,383,375,131,359,366,367,360,0,375,383,384,376,131,360,367,368,361,0,376,384,385,377,131,361,368,369,362,0,377,385,386,378,131,362,369,370,363,0,378,386,387,379,131,363,370,371,364,0,379,387,388,380,131,364,371,372,365,0,380,388,389,381,131,365,372,1510,1509,0,381,389,382,382,131,235,236,373,366,0,295,297,390,383,131,366,373,374,367,0,383,390,391,384,131,367,374,375,368,0,384,391,392,385,131,368,375,376,369,0,385,392,393,386,131,369,376,377,370,0,386,393,394,387,131,370,377,378,371,0,387,394,395,388,131,371,378,379,372,0,388,395,396,389,131,372,379,1511,1510,0,389,396,382,382,131,236,237,380,373,0,297,299,397,390,131,373,380,381,374,0,390,397,398,391,131,374,381,382,375,0,391,398,399,392,131,375,382,383,376,0,392,399,400,393,131,376,383,384,377,0,393,400,401,394,131,377,384,385,378,0,394,401,402,395,131,378,385,386,379,0,395,402,403,396,131,379,386,1512,1511,0,396,403,404,382,131,237,238,387,380,0,299,301,405,397,131,380,387,388,381,0,397,405,406,398,131,381,388,389,382,0,398,406,407,399,131,382,389,390,383,0,399,407,408,400,131,383,390,391,384,0,400,408,409,401,131,384,391,392,385,0,401,409,410,402,131,385,392,393,386,0,402,410,411,403,131,386,393,1513,1512,0,403,411,412,404,131,238,239,394,387,0,301,303,413,405,131,387,394,395,388,0,405,413,414,406,131,388,395,396,389,0,406,414,415,407,131,389,396,397,390,0,407,415,416,408,131,390,397,398,391,0,408,416,417,409,131,391,398,399,392,0,409,417,418,410,131,392,399,400,393,0,410,418,419,411,131,393,400,1514,1513,0,411,419,420,412,131,239,1522,1521,394,0,303,305,421,413,131,394,1521,1520,395,0,413,421,422,414,131,395,1520,1519,396,0,414,422,423,415,131,396,1519,1518,397,0,415,423,424,416,131,397,1518,1517,398,0,416,424,425,417,131,398,1517,1516,399,0,417,425,426,418,131,399,1516,1515,400,0,418,426,427,419,131,400,1515,1536,1514,0,419,427,163,420,131,225,240,401,247,0,214,360,428,215,131,247,401,402,248,0,215,428,429,232,131,248,402,403,249,0,232,429,430,241,131,249,403,404,250,0,241,430,431,250,131,250,404,405,251,0,250,431,432,259,131,251,405,406,252,0,259,432,433,268,131,252,406,407,253,0,268,433,434,277,131,253,407,1478,1477,0,277,434,287,286,131,240,241,408,401,0,360,362,435,428,131,401,408,409,402,0,428,435,436,429,131,402,409,410,403,0,429,436,437,430,131,403,410,411,404,0,430,437,438,431,131,404,411,412,405,0,431,438,439,432,131,405,412,413,406,0,432,439,440,433,131,406,413,414,407,0,433,440,441,434,131,407,414,1479,1478,0,434,441,442,287,131,241,242,415,408,0,362,364,443,435,131,408,415,416,409,0,435,443,444,436,131,409,416,417,410,0,436,444,445,437,131,410,417,418,411,0,437,445,446,438,131,411,418,419,412,0,438,446,447,439,131,412,419,420,413,0,439,447,448,440,131,413,420,421,414,0,440,448,449,441,131,414,421,1480,1479,0,441,449,450,442,131,242,243,422,415,0,364,366,451,443,131,415,422,423,416,0,443,451,452,444,131,416,423,424,417,0,444,452,453,445,131,417,424,425,418,0,445,453,454,446,131,418,425,426,419,0,446,454,455,447,131,419,426,427,420,0,447,455,456,448,131,420,427,428,421,0,448,456,457,449,131,421,428,1481,1480,0,449,457,458,450,131,243,244,429,422,0,366,368,459,451,131,422,429,430,423,0,451,459,460,452,131,423,430,431,424,0,452,460,461,453,131,424,431,432,425,0,453,461,462,454,131,425,432,433,426,0,454,462,463,455,131,426,433,434,427,0,455,463,464,456,131,427,434,435,428,0,456,464,465,457,131,428,435,1482,1481,0,457,465,466,458,131,244,245,436,429,0,368,370,467,459,131,429,436,437,430,0,459,467,468,460,131,430,437,438,431,0,460,468,469,461,131,431,438,439,432,0,461,469,470,462,131,432,439,440,433,0,462,470,471,463,131,433,440,441,434,0,463,471,472,464,131,434,441,442,435,0,464,472,473,465,131,435,442,1483,1482,0,465,473,474,466,131,245,246,443,436,0,370,372,475,467,131,436,443,444,437,0,467,475,476,468,131,437,444,445,438,0,468,476,477,469,131,438,445,446,439,0,469,477,478,470,131,439,446,447,440,0,470,478,479,471,131,440,447,448,441,0,471,479,480,472,131,441,448,449,442,0,472,480,481,473,131,442,449,1484,1483,0,473,481,482,474,131,246,1507,1506,443,0,372,374,483,475,131,443,1506,1505,444,0,475,483,483,476,131,444,1505,1504,445,0,476,483,136,477,131,445,1504,1503,446,0,477,136,484,478,131,446,1503,1502,447,0,478,484,136,479,131,447,1502,1501,448,0,479,136,485,480,131,448,1501,1500,449,0,480,485,486,481,131,449,1500,1535,1484,0,481,486,487,482,131,450,472,479,451,0,488,489,490,491,131,451,479,480,452,0,491,490,492,493,131,452,480,481,453,0,493,492,494,495,131,453,481,482,454,0,495,494,496,497,131,454,482,483,455,0,497,496,498,499,131,455,483,484,456,0,499,498,500,501,131,456,484,485,457,0,501,500,502,503,131,457,485,1386,1387,0,503,502,504,505,131,472,473,486,479,0,489,506,507,490,131,479,486,487,480,0,490,507,508,492,131,480,487,488,481,0,492,508,509,494,131,481,488,489,482,0,494,509,510,496,131,482,489,490,483,0,496,510,511,498,131,483,490,491,484,0,498,511,512,500,131,484,491,492,485,0,500,512,513,502,131,485,492,1385,1386,0,502,513,514,504,131,473,474,493,486,0,506,515,516,507,131,486,493,494,487,0,507,516,517,508,131,487,494,495,488,0,508,517,518,509,131,488,495,496,489,0,509,518,519,510,131,489,496,497,490,0,510,519,520,511,131,490,497,498,491,0,511,520,521,512,131,491,498,499,492,0,512,521,522,513,131,492,499,1384,1385,0,513,522,523,514,131,474,475,500,493,0,515,524,525,516,131,493,500,501,494,0,516,525,526,517,131,494,501,502,495,0,517,526,527,518,131,495,502,503,496,0,518,527,528,519,131,496,503,504,497,0,519,528,529,520,131,497,504,505,498,0,520,529,530,521,131,498,505,506,499,0,521,530,531,522,131,499,506,1383,1384,0,522,531,532,523,131,475,476,507,500,0,524,533,534,525,131,500,507,508,501,0,525,534,535,526,131,501,508,509,502,0,526,535,536,527,131,502,509,510,503,0,527,536,537,528,131,503,510,511,504,0,528,537,538,529,131,504,511,512,505,0,529,538,539,530,131,505,512,513,506,0,530,539,540,531,131,506,513,1382,1383,0,531,540,541,532,131,476,477,514,507,0,533,542,543,534,131,507,514,515,508,0,534,543,543,535,131,508,515,516,509,0,535,543,544,536,131,509,516,517,510,0,536,544,544,537,131,510,517,518,511,0,537,544,544,538,131,511,518,519,512,0,538,544,545,539,131,512,519,520,513,0,539,545,546,540,131,513,520,1381,1382,0,540,546,213,541,131,477,478,521,514,0,542,547,547,543,131,514,521,522,515,0,543,547,547,543,131,515,522,523,516,0,543,547,547,544,131,516,523,524,517,0,544,547,547,544,131,517,524,525,518,0,544,547,547,544,131,518,525,526,519,0,544,547,547,545,131,519,526,527,520,0,545,547,547,546,131,520,527,1380,1381,0,546,547,547,213,131,478,1357,1356,521,0,547,548,549,547,131,521,1356,1355,522,0,547,549,550,547,131,522,1355,1354,523,0,547,550,551,547,131,523,1354,1353,524,0,547,551,549,547,131,524,1353,1352,525,0,547,549,548,547,131,525,1352,1351,526,0,547,548,552,547,131,526,1351,1350,527,0,547,552,552,547,131,527,1350,1530,1380,0,547,552,552,547,131,450,451,528,458,0,488,491,553,554,131,458,528,529,459,0,554,553,555,556,131,459,529,530,460,0,556,555,557,558,131,460,530,531,461,0,558,557,559,560,131,461,531,532,462,0,560,559,561,562,131,462,532,533,463,0,562,561,563,564,131,463,533,534,464,0,564,563,565,566,131,464,534,1476,1477,0,566,565,164,287,131,451,452,535,528,0,491,493,567,553,131,528,535,536,529,0,553,567,568,555,131,529,536,537,530,0,555,568,569,557,131,530,537,538,531,0,557,569,570,559,131,531,538,539,532,0,559,570,571,561,131,532,539,540,533,0,561,571,572,563,131,533,540,541,534,0,563,572,573,565,131,534,541,1475,1476,0,565,573,97,164,131,452,453,542,535,0,493,495,574,567,131,535,542,543,536,0,567,574,575,568,131,536,543,544,537,0,568,575,576,569,131,537,544,545,538,0,569,576,577,570,131,538,545,546,539,0,570,577,578,571,131,539,546,547,540,0,571,578,579,572,131,540,547,548,541,0,572,579,580,573,131,541,548,1474,1475,0,573,580,581,97,131,453,454,549,542,0,495,497,582,574,131,542,549,550,543,0,574,582,583,575,131,543,550,551,544,0,575,583,584,576,131,544,551,552,545,0,576,584,585,577,131,545,552,553,546,0,577,585,586,578,131,546,553,554,547,0,578,586,587,579,131,547,554,555,548,0,579,587,588,580,131,548,555,1473,1474,0,580,588,77,581,131,454,455,556,549,0,497,499,589,582,131,549,556,557,550,0,582,589,590,583,131,550,557,558,551,0,583,590,591,584,131,551,558,559,552,0,584,591,592,585,131,552,559,560,553,0,585,592,593,586,131,553,560,561,554,0,586,593,594,587,131,554,561,562,555,0,587,594,595,588,131,555,562,1472,1473,0,588,595,166,77,131,455,456,563,556,0,499,501,596,589,131,556,563,564,557,0,589,596,597,590,131,557,564,565,558,0,590,597,598,591,131,558,565,566,559,0,591,598,599,592,131,559,566,567,560,0,592,599,600,593,131,560,567,568,561,0,593,600,601,594,131,561,568,569,562,0,594,601,602,595,131,562,569,1471,1472,0,595,602,166,166,131,456,457,570,563,0,501,503,603,596,131,563,570,571,564,0,596,603,604,597,131,564,571,572,565,0,597,604,605,598,131,565,572,573,566,0,598,605,606,599,131,566,573,574,567,0,599,606,607,600,131,567,574,575,568,0,600,607,608,601,131,568,575,576,569,0,601,608,166,602,131,569,576,1470,1471,0,602,166,609,166,131,457,1387,1388,570,0,503,505,505,603,131,570,1388,1389,571,0,603,505,288,604,131,571,1389,1390,572,0,604,288,610,605,131,572,1390,1391,573,0,605,610,610,606,131,573,1391,1392,574,0,606,610,611,607,131,574,1392,1393,575,0,607,611,612,608,131,575,1393,1394,576,0,608,612,613,166,131,576,1394,1534,1470,0,166,613,611,609,131,450,458,577,465,0,488,554,614,615,131,465,577,578,466,0,615,614,616,617,131,466,578,579,467,0,617,616,618,619,131,467,579,580,468,0,619,618,620,621,131,468,580,581,469,0,621,620,622,623,131,469,581,582,470,0,623,622,624,625,131,470,582,583,471,0,625,624,626,627,131,471,583,1418,1417,0,627,626,628,629,131,458,459,584,577,0,554,556,630,614,131,577,584,585,578,0,614,630,631,616,131,578,585,586,579,0,616,631,632,618,131,579,586,587,580,0,618,632,633,620,131,580,587,588,581,0,620,633,634,622,131,581,588,589,582,0,622,634,635,624,131,582,589,590,583,0,624,635,636,626,131,583,590,1419,1418,0,626,636,637,628,131,459,460,591,584,0,556,558,638,630,131,584,591,592,585,0,630,638,639,631,131,585,592,593,586,0,631,639,640,632,131,586,593,594,587,0,632,640,641,633,131,587,594,595,588,0,633,641,642,634,131,588,595,596,589,0,634,642,643,635,131,589,596,597,590,0,635,643,644,636,131,590,597,1420,1419,0,636,644,645,637,131,460,461,598,591,0,558,560,646,638,131,591,598,599,592,0,638,646,647,639,131,592,599,600,593,0,639,647,648,640,131,593,600,601,594,0,640,648,649,641,131,594,601,602,595,0,641,649,650,642,131,595,602,603,596,0,642,650,651,643,131,596,603,604,597,0,643,651,652,644,131,597,604,1421,1420,0,644,652,653,645,131,461,462,605,598,0,560,562,654,646,131,598,605,606,599,0,646,654,655,647,131,599,606,607,600,0,647,655,656,648,131,600,607,608,601,0,648,656,657,649,131,601,608,609,602,0,649,657,658,650,131,602,609,610,603,0,650,658,659,651,131,603,610,611,604,0,651,659,660,652,131,604,611,1422,1421,0,652,660,486,653,131,462,463,612,605,0,562,564,661,654,131,605,612,613,606,0,654,661,662,655,131,606,613,614,607,0,655,662,663,656,131,607,614,615,608,0,656,663,664,657,131,608,615,616,609,0,657,664,665,658,131,609,616,617,610,0,658,665,666,659,131,610,617,618,611,0,659,666,667,660,131,611,618,1423,1422,0,660,667,668,486,131,463,464,619,612,0,564,566,669,661,131,612,619,620,613,0,661,669,670,662,131,613,620,621,614,0,662,670,671,663,131,614,621,622,615,0,663,671,672,664,131,615,622,623,616,0,664,672,673,665,131,616,623,624,617,0,665,673,674,666,131,617,624,625,618,0,666,674,675,667,131,618,625,1424,1423,0,667,675,676,668,131,464,1477,1478,619,0,566,287,287,669,131,619,1478,1479,620,0,669,287,442,670,131,620,1479,1480,621,0,670,442,442,671,131,621,1480,1481,622,0,671,442,677,672,131,622,1481,1482,623,0,672,677,450,673,131,623,1482,1483,624,0,673,450,458,674,131,624,1483,1484,625,0,674,458,458,675,131,625,1484,1535,1424,0,675,458,485,676,131,450,465,626,472,0,488,615,678,489,131,472,626,627,473,0,489,678,679,506,131,473,627,628,474,0,506,679,680,515,131,474,628,629,475,0,515,680,681,524,131,475,629,630,476,0,524,681,682,533,131,476,630,631,477,0,533,682,542,542,131,477,631,632,478,0,542,542,547,547,131,478,632,1358,1357,0,547,547,548,548,131,465,466,633,626,0,615,617,683,678,131,626,633,634,627,0,678,683,684,679,131,627,634,635,628,0,679,684,685,680,131,628,635,636,629,0,680,685,686,681,131,629,636,637,630,0,681,686,682,682,131,630,637,638,631,0,682,682,542,542,131,631,638,639,632,0,542,542,547,547,131,632,639,1359,1358,0,547,547,549,548,131,466,467,640,633,0,617,619,687,683,131,633,640,641,634,0,683,687,688,684,131,634,641,642,635,0,684,688,689,685,131,635,642,643,636,0,685,689,690,686,131,636,643,644,637,0,686,690,691,682,131,637,644,645,638,0,682,691,542,542,131,638,645,646,639,0,542,542,547,547,131,639,646,1360,1359,0,547,547,550,549,131,467,468,647,640,0,619,621,692,687,131,640,647,648,641,0,687,692,693,688,131,641,648,649,642,0,688,693,694,689,131,642,649,650,643,0,689,694,695,690,131,643,650,651,644,0,690,695,696,691,131,644,651,652,645,0,691,696,542,542,131,645,652,653,646,0,542,542,547,547,131,646,653,1361,1360,0,547,547,550,550,131,468,469,654,647,0,621,623,697,692,131,647,654,655,648,0,692,697,698,693,131,648,655,656,649,0,693,698,699,694,131,649,656,657,650,0,694,699,700,695,131,650,657,658,651,0,695,700,701,696,131,651,658,659,652,0,696,701,542,542,131,652,659,660,653,0,542,542,547,547,131,653,660,1362,1361,0,547,547,549,550,131,469,470,661,654,0,623,625,702,697,131,654,661,662,655,0,697,702,703,698,131,655,662,663,656,0,698,703,704,699,131,656,663,664,657,0,699,704,705,700,131,657,664,665,658,0,700,705,701,701,131,658,665,666,659,0,701,701,542,542,131,659,666,667,660,0,542,542,547,547,131,660,667,1363,1362,0,547,547,551,549,131,470,471,668,661,0,625,627,706,702,131,661,668,669,662,0,702,706,707,703,131,662,669,670,663,0,703,707,708,704,131,663,670,671,664,0,704,708,709,705,131,664,671,672,665,0,705,709,710,701,131,665,672,673,666,0,701,710,542,542,131,666,673,674,667,0,542,542,711,547,131,667,674,1364,1363,0,547,711,550,551,131,471,1417,1416,668,0,627,629,712,706,131,668,1416,1415,669,0,706,712,713,707,131,669,1415,1414,670,0,707,713,714,708,131,670,1414,1413,671,0,708,714,714,709,131,671,1413,1412,672,0,709,714,420,710,131,672,1412,1411,673,0,710,420,544,542,131,673,1411,1410,674,0,542,544,547,711,131,674,1410,1531,1364,0,711,547,552,550,131,675,697,704,676,0,715,716,717,718,131,676,704,705,677,0,718,717,719,720,131,677,705,706,678,0,720,719,721,722,131,678,706,707,679,0,722,721,723,724,131,679,707,708,680,0,724,723,725,726,131,680,708,709,681,0,726,725,727,728,131,681,709,710,682,0,728,727,729,484,131,682,710,1416,1417,0,484,729,713,629,131,697,698,711,704,0,716,730,731,717,131,704,711,712,705,0,717,731,732,719,131,705,712,713,706,0,719,732,733,721,131,706,713,714,707,0,721,733,734,723,131,707,714,715,708,0,723,734,735,725,131,708,715,716,709,0,725,735,736,727,131,709,716,717,710,0,727,736,737,729,131,710,717,1415,1416,0,729,737,738,713,131,698,699,718,711,0,730,739,740,731,131,711,718,719,712,0,731,740,741,732,131,712,719,720,713,0,732,741,742,733,131,713,720,721,714,0,733,742,743,734,131,714,721,722,715,0,734,743,744,735,131,715,722,723,716,0,735,744,745,736,131,716,723,724,717,0,736,745,746,737,131,717,724,1414,1415,0,737,746,714,738,131,699,700,725,718,0,739,747,748,740,131,718,725,726,719,0,740,748,749,741,131,719,726,727,720,0,741,749,750,742,131,720,727,728,721,0,742,750,751,743,131,721,728,729,722,0,743,751,752,744,131,722,729,730,723,0,744,752,753,745,131,723,730,731,724,0,745,753,746,746,131,724,731,1413,1414,0,746,746,754,714,131,700,701,732,725,0,747,755,756,748,131,725,732,733,726,0,748,756,757,749,131,726,733,734,727,0,749,757,758,750,131,727,734,735,728,0,750,758,759,751,131,728,735,736,729,0,751,759,760,752,131,729,736,737,730,0,752,760,761,753,131,730,737,738,731,0,753,761,762,746,131,731,738,1412,1413,0,746,762,763,754,131,701,702,739,732,0,755,764,765,756,131,732,739,740,733,0,756,765,766,757,131,733,740,741,734,0,757,766,767,758,131,734,741,742,735,0,758,767,768,759,131,735,742,743,736,0,759,768,769,760,131,736,743,744,737,0,760,769,770,761,131,737,744,745,738,0,761,770,771,762,131,738,745,1411,1412,0,762,771,543,763,131,702,703,746,739,0,764,772,773,765,131,739,746,747,740,0,765,773,774,766,131,740,747,748,741,0,766,774,774,767,131,741,748,749,742,0,767,774,775,768,131,742,749,750,743,0,768,775,776,769,131,743,750,751,744,0,769,776,777,770,131,744,751,752,745,0,770,777,778,771,131,745,752,1410,1411,0,771,778,547,543,131,703,1402,1401,746,0,772,779,779,773,131,746,1401,1400,747,0,773,779,779,774,131,747,1400,1399,748,0,774,779,779,774,131,748,1399,1398,749,0,774,779,779,775,131,749,1398,1397,750,0,775,779,779,776,131,750,1397,1396,751,0,776,779,780,777,131,751,1396,1395,752,0,777,780,550,778,131,752,1395,1531,1410,0,778,550,552,547,131,675,676,753,683,0,715,718,781,782,131,683,753,754,684,0,782,781,783,784,131,684,754,755,685,0,784,783,785,786,131,685,755,756,686,0,786,785,787,788,131,686,756,757,687,0,788,787,789,790,131,687,757,758,688,0,790,789,791,792,131,688,758,759,689,0,792,791,793,794,131,689,759,1506,1507,0,794,793,373,373,131,676,677,760,753,0,718,720,795,781,131,753,760,761,754,0,781,795,796,783,131,754,761,762,755,0,783,796,797,785,131,755,762,763,756,0,785,797,798,787,131,756,763,764,757,0,787,798,799,789,131,757,764,765,758,0,789,799,800,791,131,758,765,766,759,0,791,800,801,793,131,759,766,1505,1506,0,793,801,484,373,131,677,678,767,760,0,720,722,802,795,131,760,767,768,761,0,795,802,803,796,131,761,768,769,762,0,796,803,804,797,131,762,769,770,763,0,797,804,805,798,131,763,770,771,764,0,798,805,806,799,131,764,771,772,765,0,799,806,807,800,131,765,772,773,766,0,800,807,808,801,131,766,773,1504,1505,0,801,808,809,484,131,678,679,774,767,0,722,724,810,802,131,767,774,775,768,0,802,810,811,803,131,768,775,776,769,0,803,811,812,804,131,769,776,777,770,0,804,812,813,805,131,770,777,778,771,0,805,813,814,806,131,771,778,779,772,0,806,814,815,807,131,772,779,780,773,0,807,815,816,808,131,773,780,1503,1504,0,808,816,817,809,131,679,680,781,774,0,724,726,818,810,131,774,781,782,775,0,810,818,819,811,131,775,782,783,776,0,811,819,820,812,131,776,783,784,777,0,812,820,821,813,131,777,784,785,778,0,813,821,822,814,131,778,785,786,779,0,814,822,823,815,131,779,786,787,780,0,815,823,824,816,131,780,787,1502,1503,0,816,824,825,817,131,680,681,788,781,0,726,728,826,818,131,781,788,789,782,0,818,826,827,819,131,782,789,790,783,0,819,827,828,820,131,783,790,791,784,0,820,828,829,821,131,784,791,792,785,0,821,829,830,822,131,785,792,793,786,0,822,830,831,823,131,786,793,794,787,0,823,831,832,824,131,787,794,1501,1502,0,824,832,833,825,131,681,682,795,788,0,728,484,535,826,131,788,795,796,789,0,826,535,834,827,131,789,796,797,790,0,827,834,835,828,131,790,797,798,791,0,828,835,836,829,131,791,798,799,792,0,829,836,626,830,131,792,799,800,793,0,830,626,837,831,131,793,800,801,794,0,831,837,833,832,131,794,801,1500,1501,0,832,833,713,833,131,682,1417,1418,795,0,484,629,712,535,131,795,1418,1419,796,0,535,712,637,834,131,796,1419,1420,797,0,834,637,653,835,131,797,1420,1421,798,0,835,653,645,836,131,798,1421,1422,799,0,836,645,486,626,131,799,1422,1423,800,0,626,486,486,837,131,800,1423,1424,801,0,837,486,712,833,131,801,1424,1535,1500,0,833,712,713,713,131,675,683,802,690,0,715,782,838,839,131,690,802,803,691,0,839,838,840,841,131,691,803,804,692,0,841,840,842,843,131,692,804,805,693,0,843,842,844,845,131,693,805,806,694,0,845,844,846,847,131,694,806,807,695,0,847,846,848,849,131,695,807,808,696,0,849,848,850,851,131,696,808,1448,1447,0,851,850,852,853,131,683,684,809,802,0,782,784,854,838,131,802,809,810,803,0,838,854,855,840,131,803,810,811,804,0,840,855,856,842,131,804,811,812,805,0,842,856,857,844,131,805,812,813,806,0,844,857,858,846,131,806,813,814,807,0,846,858,859,848,131,807,814,815,808,0,848,859,860,850,131,808,815,1449,1448,0,850,860,851,852,131,684,685,816,809,0,784,786,861,854,131,809,816,817,810,0,854,861,862,855,131,810,817,818,811,0,855,862,863,856,131,811,818,819,812,0,856,863,864,857,131,812,819,820,813,0,857,864,865,858,131,813,820,821,814,0,858,865,866,859,131,814,821,822,815,0,859,866,867,860,131,815,822,1450,1449,0,860,867,851,851,131,685,686,823,816,0,786,788,868,861,131,816,823,824,817,0,861,868,869,862,131,817,824,825,818,0,862,869,870,863,131,818,825,826,819,0,863,870,871,864,131,819,826,827,820,0,864,871,872,865,131,820,827,828,821,0,865,872,873,866,131,821,828,829,822,0,866,873,874,867,131,822,829,1451,1450,0,867,874,851,851,131,686,687,830,823,0,788,790,875,868,131,823,830,831,824,0,868,875,876,869,131,824,831,832,825,0,869,876,877,870,131,825,832,833,826,0,870,877,878,871,131,826,833,834,827,0,871,878,879,872,131,827,834,835,828,0,872,879,880,873,131,828,835,836,829,0,873,880,874,874,131,829,836,1452,1451,0,874,874,881,851,131,687,688,837,830,0,790,792,882,875,131,830,837,838,831,0,875,882,883,876,131,831,838,839,832,0,876,883,884,877,131,832,839,840,833,0,877,884,885,878,131,833,840,841,834,0,878,885,886,879,131,834,841,842,835,0,879,886,887,880,131,835,842,843,836,0,880,887,888,874,131,836,843,1453,1452,0,874,888,889,881,131,688,689,844,837,0,792,794,124,882,131,837,844,845,838,0,882,124,890,883,131,838,845,846,839,0,883,890,891,884,131,839,846,847,840,0,884,891,892,885,131,840,847,848,841,0,885,892,893,886,131,841,848,849,842,0,886,893,894,887,131,842,849,850,843,0,887,894,895,888,131,843,850,1454,1453,0,888,895,881,889,131,689,1507,1508,844,0,794,373,373,124,131,844,1508,1509,845,0,124,373,710,890,131,845,1509,1510,846,0,890,710,710,891,131,846,1510,1511,847,0,891,710,710,892,131,847,1511,1512,848,0,892,710,710,893,131,848,1512,1513,849,0,893,710,412,894,131,849,1513,1514,850,0,894,412,895,895,131,850,1514,1536,1454,0,895,895,867,881,131,675,690,851,697,0,715,839,896,716,131,697,851,852,698,0,716,896,897,730,131,698,852,853,699,0,730,897,898,739,131,699,853,854,700,0,739,898,899,747,131,700,854,855,701,0,747,899,900,755,131,701,855,856,702,0,755,900,901,764,131,702,856,857,703,0,764,901,772,772,131,703,857,1403,1402,0,772,772,779,779,131,690,691,858,851,0,839,841,902,896,131,851,858,859,852,0,896,902,903,897,131,852,859,860,853,0,897,903,904,898,131,853,860,861,854,0,898,904,905,899,131,854,861,862,855,0,899,905,906,900,131,855,862,863,856,0,900,906,907,901,131,856,863,864,857,0,901,907,908,772,131,857,864,1404,1403,0,772,908,779,779,131,691,692,865,858,0,841,843,909,902,131,858,865,866,859,0,902,909,910,903,131,859,866,867,860,0,903,910,911,904,131,860,867,868,861,0,904,911,912,905,131,861,868,869,862,0,905,912,913,906,131,862,869,870,863,0,906,913,914,907,131,863,870,871,864,0,907,914,908,908,131,864,871,1405,1404,0,547,547,552,552,131,692,693,872,865,0,843,845,915,909,131,865,872,873,866,0,909,915,916,910,131,866,873,874,867,0,910,916,917,911,131,867,874,875,868,0,911,917,918,912,131,868,875,876,869,0,912,918,919,913,131,869,876,877,870,0,913,919,920,914,131,870,877,878,871,0,914,920,921,908,131,871,878,1406,1405,0,908,921,779,779,131,693,694,879,872,0,845,847,922,915,131,872,879,880,873,0,915,922,923,916,131,873,880,881,874,0,916,923,924,917,131,874,881,882,875,0,917,924,925,918,131,875,882,883,876,0,918,925,926,919,131,876,883,884,877,0,919,926,914,920,131,877,884,885,878,0,920,914,772,921,131,878,885,1407,1406,0,921,772,927,779,131,694,695,886,879,0,847,849,928,922,131,879,886,887,880,0,922,928,929,923,131,880,887,888,881,0,923,929,930,924,131,881,888,889,882,0,924,930,931,925,131,882,889,890,883,0,925,931,932,926,131,883,890,891,884,0,926,932,933,914,131,884,891,892,885,0,914,933,934,772,131,885,892,1408,1407,0,772,934,935,927,131,695,696,893,886,0,849,851,852,928,131,886,893,894,887,0,928,852,853,929,131,887,894,895,888,0,929,853,936,930,131,888,895,896,889,0,930,936,778,931,131,889,896,897,890,0,931,778,937,932,131,890,897,898,891,0,932,937,711,933,131,891,898,899,892,0,933,711,547,934,131,892,899,1409,1408,0,934,547,552,935,131,696,1447,1446,893,0,851,853,853,852,131,893,1446,1445,894,0,852,853,936,853,131,894,1445,1444,895,0,853,936,778,936,131,895,1444,1443,896,0,936,778,938,778,131,896,1443,1442,897,0,778,938,778,937,131,897,1442,1441,898,0,937,778,937,711,131,898,1441,1440,899,0,711,937,547,547,131,899,1440,1532,1409,0,547,547,552,552,131,900,922,929,901,0,939,940,939,939,131,901,929,930,902,0,939,939,940,939,131,902,930,931,903,0,939,940,941,940,131,903,931,932,904,0,940,941,939,942,131,904,932,933,905,0,942,939,939,939,131,905,933,934,906,0,939,939,943,944,131,906,934,935,907,0,944,943,945,946,131,907,935,1446,1447,0,946,945,947,948,131,922,923,936,929,0,940,949,950,939,131,929,936,937,930,0,939,950,950,940,131,930,937,938,931,0,940,950,941,941,131,931,938,939,932,0,941,941,939,939,131,932,939,940,933,0,939,939,939,939,131,933,940,941,934,0,939,939,951,943,131,934,941,942,935,0,943,951,952,945,131,935,942,1445,1446,0,945,952,947,947,131,923,924,943,936,0,949,939,939,950,131,936,943,944,937,0,950,939,939,950,131,937,944,945,938,0,950,939,940,941,131,938,945,946,939,0,941,940,942,939,131,939,946,947,940,0,939,942,939,939,131,940,947,948,941,0,939,939,953,951,131,941,948,949,942,0,951,953,954,952,131,942,949,1444,1445,0,952,954,771,947,131,924,925,950,943,0,939,939,942,939,131,943,950,951,944,0,939,942,942,939,131,944,951,952,945,0,939,942,942,940,131,945,952,953,946,0,940,942,942,942,131,946,953,954,947,0,942,942,939,939,131,947,954,955,948,0,939,939,955,953,131,948,955,956,949,0,953,955,956,954,131,949,956,1443,1444,0,954,956,938,771,131,925,926,957,950,0,939,942,942,942,131,950,957,958,951,0,942,942,942,942,131,951,958,959,952,0,942,942,942,942,131,952,959,960,953,0,942,942,942,942,131,953,960,961,954,0,942,942,957,939,131,954,961,962,955,0,939,957,958,955,131,955,962,963,956,0,955,958,959,956,131,956,963,1442,1443,0,956,959,778,938,131,926,927,964,957,0,942,942,942,942,131,957,964,965,958,0,942,942,942,942,131,958,965,966,959,0,942,942,939,942,131,959,966,967,960,0,942,939,960,942,131,960,967,968,961,0,942,960,961,957,131,961,968,969,962,0,957,961,962,958,131,962,969,970,963,0,958,962,963,959,131,963,970,1441,1442,0,959,963,937,778,131,927,928,971,964,0,942,964,965,942,131,964,971,972,965,0,942,965,966,942,131,965,972,973,966,0,942,966,967,939,131,966,973,974,967,0,939,967,968,960,131,967,974,975,968,0,960,968,969,961,131,968,975,976,969,0,961,969,970,962,131,969,976,977,970,0,962,970,971,963,131,970,977,1440,1441,0,963,971,972,937,131,928,1432,1431,971,0,964,548,548,965,131,971,1431,1430,972,0,965,548,548,966,131,972,1430,1429,973,0,966,548,552,967,131,973,1429,1428,974,0,967,552,548,968,131,974,1428,1427,975,0,968,548,549,969,131,975,1427,1426,976,0,969,549,549,970,131,976,1426,1425,977,0,970,549,548,971,131,977,1425,1532,1440,0,971,548,549,972,131,900,901,978,908,0,939,939,940,941,131,908,978,979,909,0,941,940,939,939,131,909,979,980,910,0,939,939,940,941,131,910,980,981,911,0,941,940,939,939,131,911,981,982,912,0,939,939,942,942,131,912,982,983,913,0,942,942,950,940,131,913,983,984,914,0,940,950,973,974,131,914,984,1521,1522,0,974,973,975,976,131,901,902,985,978,0,939,939,940,940,131,978,985,986,979,0,940,940,939,939,131,979,986,987,980,0,939,939,939,940,131,980,987,988,981,0,940,939,942,939,131,981,988,989,982,0,939,942,942,942,131,982,989,990,983,0,942,942,949,950,131,983,990,991,984,0,950,949,977,973,131,984,991,1520,1521,0,973,977,978,975,131,902,903,992,985,0,939,940,941,940,131,985,992,993,986,0,940,941,941,939,131,986,993,994,987,0,939,941,940,939,131,987,994,995,988,0,939,940,942,942,131,988,995,996,989,0,942,942,942,942,131,989,996,997,990,0,942,942,960,949,131,990,997,998,991,0,949,960,979,977,131,991,998,1519,1520,0,977,979,980,978,131,903,904,999,992,0,940,942,939,941,131,992,999,1000,993,0,941,939,939,941,131,993,1000,1001,994,0,941,939,939,940,131,994,1001,1002,995,0,940,939,942,942,131,995,1002,1003,996,0,942,942,942,942,131,996,1003,1004,997,0,942,942,981,960,131,997,1004,1005,998,0,960,981,982,979,131,998,1005,1518,1519,0,979,982,983,980,131,904,905,1006,999,0,942,939,939,939,131,999,1006,1007,1000,0,939,939,939,939,131,1000,1007,1008,1001,0,939,939,984,939,131,1001,1008,1009,1002,0,939,984,939,942,131,1002,1009,1010,1003,0,942,939,985,942,131,1003,1010,1011,1004,0,942,985,986,981,131,1004,1011,1012,1005,0,981,986,987,982,131,1005,1012,1517,1518,0,982,987,988,983,131,905,906,1013,1006,0,939,944,989,939,131,1006,1013,1014,1007,0,939,989,990,939,131,1007,1014,1015,1008,0,939,990,990,984,131,1008,1015,1016,1009,0,984,990,991,939,131,1009,1016,1017,1010,0,939,991,992,985,131,1010,1017,1018,1011,0,985,992,993,986,131,1011,1018,1019,1012,0,986,993,994,987,131,1012,1019,1516,1517,0,987,994,995,988,131,906,907,1020,1013,0,944,946,996,989,131,1013,1020,1021,1014,0,989,996,997,990,131,1014,1021,1022,1015,0,990,997,998,990,131,1015,1022,1023,1016,0,990,998,999,991,131,1016,1023,1024,1017,0,991,999,1000,992,131,1017,1024,1025,1018,0,992,1000,1001,993,131,1018,1025,1026,1019,0,993,1001,1002,994,131,1019,1026,1515,1516,0,994,1002,1003,995,131,907,1447,1448,1020,0,946,948,860,996,131,1020,1448,1449,1021,0,996,860,1004,997,131,1021,1449,1450,1022,0,997,1004,1005,998,131,1022,1450,1451,1023,0,998,1005,1005,999,131,1023,1451,1452,1024,0,999,1005,1006,1000,131,1024,1452,1453,1025,0,1000,1006,1007,1001,131,1025,1453,1454,1026,0,1001,1007,1008,1002,131,1026,1454,1536,1515,0,1002,1008,1009,1003,131,900,908,1027,915,0,939,941,940,939,131,915,1027,1028,916,0,939,940,940,984,131,916,1028,1029,917,0,984,940,941,939,131,917,1029,1030,918,0,939,941,939,942,131,918,1030,1031,919,0,942,939,942,939,131,919,1031,1032,920,0,939,942,1010,1011,131,920,1032,1033,921,0,1011,1010,1012,1013,131,921,1033,1463,1462,0,1013,1012,1014,1015,131,908,909,1034,1027,0,941,939,984,940,131,1027,1034,1035,1028,0,940,984,939,940,131,1028,1035,1036,1029,0,940,939,939,941,131,1029,1036,1037,1030,0,941,939,939,939,131,1030,1037,1038,1031,0,939,939,942,942,131,1031,1038,1039,1032,0,942,942,949,1010,131,1032,1039,1040,1033,0,1010,949,1016,1012,131,1033,1040,1464,1463,0,1012,1016,1017,1014,131,909,910,1041,1034,0,939,941,941,984,131,1034,1041,1042,1035,0,984,941,940,939,131,1035,1042,1043,1036,0,939,940,940,939,131,1036,1043,1044,1037,0,939,940,940,939,131,1037,1044,1045,1038,0,939,940,939,942,131,1038,1045,1046,1039,0,942,939,1018,949,131,1039,1046,1047,1040,0,949,1018,1019,1016,131,1040,1047,1465,1464,0,1016,1019,1017,1017,131,910,911,1048,1041,0,941,939,939,941,131,1041,1048,1049,1042,0,941,939,939,940,131,1042,1049,1050,1043,0,940,939,939,940,131,1043,1050,1051,1044,0,940,939,940,940,131,1044,1051,1052,1045,0,940,940,939,939,131,1045,1052,1053,1046,0,939,939,1020,1018,131,1046,1053,1054,1047,0,1018,1020,1021,1019,131,1047,1054,1466,1465,0,1019,1021,1022,1017,131,911,912,1055,1048,0,939,942,942,939,131,1048,1055,1056,1049,0,939,942,942,939,131,1049,1056,1057,1050,0,939,942,942,939,131,1050,1057,1058,1051,0,939,942,942,940,131,1051,1058,1059,1052,0,940,942,939,939,131,1052,1059,1060,1053,0,939,939,1023,1020,131,1053,1060,1061,1054,0,1020,1023,1024,1021,131,1054,1061,1467,1466,0,1021,1024,1025,1022,131,912,913,1062,1055,0,942,940,939,942,131,1055,1062,1063,1056,0,942,939,939,942,131,1056,1063,1064,1057,0,942,939,939,942,131,1057,1064,1065,1058,0,942,939,950,942,131,1058,1065,1066,1059,0,942,950,1026,939,131,1059,1066,1067,1060,0,939,1026,1027,1023,131,1060,1067,1068,1061,0,1023,1027,1028,1024,131,1061,1068,1468,1467,0,1024,1028,1029,1025,131,913,914,1069,1062,0,940,974,1030,939,131,1062,1069,1070,1063,0,939,1030,1031,939,131,1063,1070,1071,1064,0,939,1031,1032,939,131,1064,1071,1072,1065,0,939,1032,1033,950,131,1065,1072,1073,1066,0,950,1033,1034,1026,131,1066,1073,1074,1067,0,1026,1034,1035,1027,131,1067,1074,1075,1068,0,1027,1035,1036,1028,131,1068,1075,1469,1468,0,1028,1036,1037,1029,131,914,1522,1523,1069,0,974,976,1038,1030,131,1069,1523,1524,1070,0,1030,1038,1039,1031,131,1070,1524,1525,1071,0,1031,1039,1040,1032,131,1071,1525,1526,1072,0,1032,1040,1041,1033,131,1072,1526,1527,1073,0,1033,1041,1042,1034,131,1073,1527,1528,1074,0,1034,1042,1043,1035,131,1074,1528,1529,1075,0,1035,1043,1044,1036,131,1075,1529,1537,1469,0,1036,1044,1045,1037,131,900,915,1076,922,0,939,939,939,940,131,922,1076,1077,923,0,940,939,1046,949,131,923,1077,1078,924,0,949,1046,939,939,131,924,1078,1079,925,0,939,939,939,939,131,925,1079,1080,926,0,939,939,942,942,131,926,1080,1081,927,0,942,942,942,942,131,927,1081,1082,928,0,942,942,1047,964,131,928,1082,1433,1432,0,964,1047,548,548,131,915,916,1083,1076,0,939,984,939,939,131,1076,1083,1084,1077,0,939,939,949,1046,131,1077,1084,1085,1078,0,1046,949,939,939,131,1078,1085,1086,1079,0,939,939,942,939,131,1079,1086,1087,1080,0,939,942,942,942,131,1080,1087,1088,1081,0,942,942,942,942,131,1081,1088,1089,1082,0,942,942,1048,1047,131,1082,1089,1434,1433,0,1047,1048,548,548,131,916,917,1090,1083,0,984,939,940,939,131,1083,1090,1091,1084,0,939,940,941,949,131,1084,1091,1092,1085,0,949,941,939,939,131,1085,1092,1093,1086,0,939,939,942,942,131,1086,1093,1094,1087,0,942,942,942,942,131,1087,1094,1095,1088,0,942,942,940,942,131,1088,1095,1096,1089,0,942,940,1049,1048,131,1089,1096,1435,1434,0,1048,1049,549,548,131,917,918,1097,1090,0,939,942,942,940,131,1090,1097,1098,1091,0,940,942,942,941,131,1091,1098,1099,1092,0,941,942,942,939,131,1092,1099,1100,1093,0,939,942,939,942,131,1093,1100,1101,1094,0,942,939,1050,942,131,1094,1101,1102,1095,0,942,1050,1051,940,131,1095,1102,1103,1096,0,940,1051,1052,1049,131,1096,1103,1436,1435,0,1049,1052,550,549,131,918,919,1104,1097,0,942,939,939,942,131,1097,1104,1105,1098,0,942,939,942,942,131,1098,1105,1106,1099,0,942,942,1053,942,131,1099,1106,1107,1100,0,942,1053,1054,939,131,1100,1107,1108,1101,0,939,1054,1055,1050,131,1101,1108,1109,1102,0,1050,1055,1056,1051,131,1102,1109,1110,1103,0,1051,1056,1057,1052,131,1103,1110,1437,1436,0,1052,1057,550,550,131,919,920,1111,1104,0,939,1011,1058,939,131,1104,1111,1112,1105,0,939,1058,1059,942,131,1105,1112,1113,1106,0,942,1059,1060,1053,131,1106,1113,1114,1107,0,1053,1060,1061,1054,131,1107,1114,1115,1108,0,1054,1061,1062,1055,131,1108,1115,1116,1109,0,1055,1062,1063,1056,131,1109,1116,1117,1110,0,1056,1063,1064,1057,131,1110,1117,1438,1437,0,1057,1064,1065,550,131,920,921,1118,1111,0,1011,1013,1066,1058,131,1111,1118,1119,1112,0,1058,1066,1067,1059,131,1112,1119,1120,1113,0,1059,1067,1068,1060,131,1113,1120,1121,1114,0,1060,1068,1069,1061,131,1114,1121,1122,1115,0,1061,1069,1069,1062,131,1115,1122,1123,1116,0,1062,1069,1064,1063,131,1116,1123,1124,1117,0,1063,1064,1070,1064,131,1117,1124,1439,1438,0,1064,1070,1065,1065,131,921,1462,1461,1118,0,1013,1015,1071,1066,131,1118,1461,1460,1119,0,1066,1071,1072,1067,131,1119,1460,1459,1120,0,1067,1072,1073,1068,131,1120,1459,1458,1121,0,1068,1073,1074,1069,131,1121,1458,1457,1122,0,1069,1074,1075,1069,131,1122,1457,1456,1123,0,1069,1075,1076,1064,131,1123,1456,1455,1124,0,1064,1076,1076,1070,131,1124,1455,1533,1439,0,1070,1076,1077,1065,131,1125,1147,1154,1126,0,1078,1079,1080,1081,131,1126,1154,1155,1127,0,1081,1080,1082,1083,131,1127,1155,1156,1128,0,1083,1082,1084,1085,131,1128,1156,1157,1129,0,1085,1084,1086,1087,131,1129,1157,1158,1130,0,1087,1086,1088,1089,131,1130,1158,1159,1131,0,1089,1088,1090,1091,131,1131,1159,1160,1132,0,1091,1090,1092,1093,131,1132,1160,1388,1387,0,1093,1092,505,1094,131,1147,1148,1161,1154,0,1079,1095,1096,1080,131,1154,1161,1162,1155,0,1080,1096,1097,1082,131,1155,1162,1163,1156,0,1082,1097,1098,1084,131,1156,1163,1164,1157,0,1084,1098,1099,1086,131,1157,1164,1165,1158,0,1086,1099,1100,1088,131,1158,1165,1166,1159,0,1088,1100,1101,1090,131,1159,1166,1167,1160,0,1090,1101,1102,1092,131,1160,1167,1389,1388,0,1092,1102,288,505,131,1148,1149,1168,1161,0,1095,1103,1104,1096,131,1161,1168,1169,1162,0,1096,1104,1105,1097,131,1162,1169,1170,1163,0,1097,1105,1106,1098,131,1163,1170,1171,1164,0,1098,1106,1107,1099,131,1164,1171,1172,1165,0,1099,1107,1108,1100,131,1165,1172,1173,1166,0,1100,1108,1109,1101,131,1166,1173,1174,1167,0,1101,1109,1110,1102,131,1167,1174,1390,1389,0,1102,1110,610,288,131,1149,1150,1175,1168,0,1103,1111,1112,1104,131,1168,1175,1176,1169,0,1104,1112,1113,1105,131,1169,1176,1177,1170,0,1105,1113,1114,1106,131,1170,1177,1178,1171,0,1106,1114,1115,1107,131,1171,1178,1179,1172,0,1107,1115,1116,1108,131,1172,1179,1180,1173,0,1108,1116,1117,1109,131,1173,1180,1181,1174,0,1109,1117,1118,1110,131,1174,1181,1391,1390,0,1110,1118,610,610,131,1150,1151,1182,1175,0,1111,1119,1120,1112,131,1175,1182,1183,1176,0,1112,1120,1121,1113,131,1176,1183,1184,1177,0,1113,1121,1122,1114,131,1177,1184,1185,1178,0,1114,1122,1123,1115,131,1178,1185,1186,1179,0,1115,1123,1124,1116,131,1179,1186,1187,1180,0,1116,1124,1125,1117,131,1180,1187,1188,1181,0,1117,1125,1126,1118,131,1181,1188,1392,1391,0,1118,1126,611,610,131,1151,1152,1189,1182,0,1119,1127,1128,1120,131,1182,1189,1190,1183,0,1120,1128,1129,1121,131,1183,1190,1191,1184,0,1121,1129,1130,1122,131,1184,1191,1192,1185,0,1122,1130,1131,1123,131,1185,1192,1193,1186,0,1123,1131,1132,1124,131,1186,1193,1194,1187,0,1124,1132,1133,1125,131,1187,1194,1195,1188,0,1125,1133,1134,1126,131,1188,1195,1393,1392,0,1126,1134,609,611,131,1152,1153,1196,1189,0,1127,1135,1136,1128,131,1189,1196,1197,1190,0,1128,1136,1137,1129,131,1190,1197,1198,1191,0,1129,1137,1138,1130,131,1191,1198,1199,1192,0,1130,1138,1139,1131,131,1192,1199,1200,1193,0,1131,1139,1140,1132,131,1193,1200,1201,1194,0,1132,1140,1141,1133,131,1194,1201,1202,1195,0,1133,1141,1142,1134,131,1195,1202,1394,1393,0,1134,1142,612,609,131,1153,1492,1491,1196,0,1135,1143,230,1136,131,1196,1491,1490,1197,0,1136,230,1144,1137,131,1197,1490,1489,1198,0,1137,1144,249,1138,131,1198,1489,1488,1199,0,1138,249,1145,1139,131,1199,1488,1487,1200,0,1139,1145,1146,1140,131,1200,1487,1486,1201,0,1140,1146,1147,1141,131,1201,1486,1485,1202,0,1141,1147,1148,1142,131,1202,1485,1534,1394,0,1142,1148,1149,612,131,1125,1126,1203,1133,0,1078,1081,1150,1151,131,1133,1203,1204,1134,0,1151,1150,1152,1153,131,1134,1204,1205,1135,0,1153,1152,1154,1155,131,1135,1205,1206,1136,0,1155,1154,1156,1157,131,1136,1206,1207,1137,0,1157,1156,1158,1159,131,1137,1207,1208,1138,0,1159,1158,1160,1161,131,1138,1208,1209,1139,0,1161,1160,1162,1162,131,1139,1209,1371,1372,0,1162,1162,58,61,131,1126,1127,1210,1203,0,1081,1083,1163,1150,131,1203,1210,1211,1204,0,1150,1163,1152,1152,131,1204,1211,1212,1205,0,1152,1152,1164,1154,131,1205,1212,1213,1206,0,1154,1164,1165,1156,131,1206,1213,1214,1207,0,1156,1165,1166,1158,131,1207,1214,1215,1208,0,1158,1166,1167,1160,131,1208,1215,1216,1209,0,1160,1167,1168,1162,131,1209,1216,1370,1371,0,1162,1168,58,58,131,1127,1128,1217,1210,0,1083,1085,1169,1163,131,1210,1217,1218,1211,0,1163,1169,1152,1152,131,1211,1218,1219,1212,0,1152,1152,1170,1164,131,1212,1219,1220,1213,0,1164,1170,1171,1165,131,1213,1220,1221,1214,0,1165,1171,1172,1166,131,1214,1221,1222,1215,0,1166,1172,1173,1167,131,1215,1222,1223,1216,0,1167,1173,1174,1168,131,1216,1223,1369,1370,0,1168,1174,58,58,131,1128,1129,1224,1217,0,1085,1087,1175,1169,131,1217,1224,1225,1218,0,1169,1175,1152,1152,131,1218,1225,1226,1219,0,1152,1152,1176,1170,131,1219,1226,1227,1220,0,1170,1176,1177,1171,131,1220,1227,1228,1221,0,1171,1177,1178,1172,131,1221,1228,1229,1222,0,1172,1178,1179,1173,131,1222,1229,1230,1223,0,1173,1179,1180,1174,131,1223,1230,1368,1369,0,1174,1180,58,58,131,1129,1130,1231,1224,0,1087,1089,1181,1175,131,1224,1231,1232,1225,0,1175,1181,1182,1152,131,1225,1232,1233,1226,0,1152,1182,1183,1176,131,1226,1233,1234,1227,0,1176,1183,1184,1177,131,1227,1234,1235,1228,0,1177,1184,1185,1178,131,1228,1235,1236,1229,0,1178,1185,1186,1179,131,1229,1236,1237,1230,0,1179,1186,1187,1180,131,1230,1237,1367,1368,0,1180,1187,58,58,131,1130,1131,1238,1231,0,1089,1091,1188,1181,131,1231,1238,1239,1232,0,1181,1188,1189,1182,131,1232,1239,1240,1233,0,1182,1189,1190,1183,131,1233,1240,1241,1234,0,1183,1190,1191,1184,131,1234,1241,1242,1235,0,1184,1191,1192,1185,131,1235,1242,1243,1236,0,1185,1192,1193,1186,131,1236,1243,1244,1237,0,1186,1193,49,1187,131,1237,1244,1366,1367,0,1187,49,1062,58,131,1131,1132,1245,1238,0,1091,1093,1194,1188,131,1238,1245,1246,1239,0,1188,1194,1195,1189,131,1239,1246,1247,1240,0,1189,1195,1196,1190,131,1240,1247,1248,1241,0,1190,1196,1197,1191,131,1241,1248,1249,1242,0,1191,1197,1198,1192,131,1242,1249,1250,1243,0,1192,1198,1199,1193,131,1243,1250,1251,1244,0,1193,1199,206,49,131,1244,1251,1365,1366,0,49,206,1200,1062,131,1132,1387,1386,1245,0,1093,1094,1201,1194,131,1245,1386,1385,1246,0,1194,1201,1202,1195,131,1246,1385,1384,1247,0,1195,1202,1203,1196,131,1247,1384,1383,1248,0,1196,1203,1204,1197,131,1248,1383,1382,1249,0,1197,1204,541,1198,131,1249,1382,1381,1250,0,1198,541,1205,1199,131,1250,1381,1380,1251,0,1199,1205,1200,206,131,1251,1380,1530,1365,0,206,1200,1206,1200,131,1125,1133,1252,1140,0,1078,1151,1207,1208,131,1140,1252,1253,1141,0,1208,1207,1209,1210,131,1141,1253,1254,1142,0,1210,1209,1211,1212,131,1142,1254,1255,1143,0,1212,1211,1213,1214,131,1143,1255,1256,1144,0,1214,1213,1215,1216,131,1144,1256,1257,1145,0,1216,1215,1217,1218,131,1145,1257,1258,1146,0,1218,1217,1219,1220,131,1146,1258,1461,1462,0,1220,1219,1221,1015,131,1133,1134,1259,1252,0,1151,1153,1153,1207,131,1252,1259,1260,1253,0,1207,1153,1153,1209,131,1253,1260,1261,1254,0,1209,1153,1153,1211,131,1254,1261,1262,1255,0,1211,1153,1222,1213,131,1255,1262,1263,1256,0,1213,1222,1222,1215,131,1256,1263,1264,1257,0,1215,1222,1223,1217,131,1257,1264,1265,1258,0,1217,1223,1224,1219,131,1258,1265,1460,1461,0,1219,1224,1225,1221,131,1134,1135,1266,1259,0,1153,1155,1226,1153,131,1259,1266,1267,1260,0,1153,1226,1227,1153,131,1260,1267,1268,1261,0,1153,1227,1228,1153,131,1261,1268,1269,1262,0,1153,1228,1229,1222,131,1262,1269,1270,1263,0,1222,1229,1230,1222,131,1263,1270,1271,1264,0,1222,1230,1231,1223,131,1264,1271,1272,1265,0,1223,1231,1232,1224,131,1265,1272,1459,1460,0,1224,1232,1233,1225,131,1135,1136,1273,1266,0,1155,1157,1234,1226,131,1266,1273,1274,1267,0,1226,1234,1235,1227,131,1267,1274,1275,1268,0,1227,1235,1236,1228,131,1268,1275,1276,1269,0,1228,1236,1237,1229,131,1269,1276,1277,1270,0,1229,1237,1238,1230,131,1270,1277,1278,1271,0,1230,1238,1239,1231,131,1271,1278,1279,1272,0,1231,1239,1240,1232,131,1272,1279,1458,1459,0,1232,1240,1204,1233,131,1136,1137,1280,1273,0,1157,1159,1241,1234,131,1273,1280,1281,1274,0,1234,1241,1242,1235,131,1274,1281,1282,1275,0,1235,1242,1243,1236,131,1275,1282,1283,1276,0,1236,1243,1244,1237,131,1276,1283,1284,1277,0,1237,1244,1244,1238,131,1277,1284,1285,1278,0,1238,1244,1245,1239,131,1278,1285,1286,1279,0,1239,1245,1246,1240,131,1279,1286,1457,1458,0,1240,1246,1247,1204,131,1137,1138,1287,1280,0,1159,1161,1248,1241,131,1280,1287,1288,1281,0,1241,1248,1249,1242,131,1281,1288,1289,1282,0,1242,1249,1250,1243,131,1282,1289,1290,1283,0,1243,1250,1251,1244,131,1283,1290,1291,1284,0,1244,1251,1252,1244,131,1284,1291,1292,1285,0,1244,1252,1253,1245,131,1285,1292,1293,1286,0,1245,1253,1254,1246,131,1286,1293,1456,1457,0,1246,1254,61,1247,131,1138,1139,1294,1287,0,1161,1162,1255,1248,131,1287,1294,1295,1288,0,1248,1255,1256,1249,131,1288,1295,1296,1289,0,1249,1256,1257,1250,131,1289,1296,1297,1290,0,1250,1257,1258,1251,131,1290,1297,1298,1291,0,1251,1258,1257,1252,131,1291,1298,1299,1292,0,1252,1257,1259,1253,131,1292,1299,1300,1293,0,1253,1259,1200,1254,131,1293,1300,1455,1456,0,1254,1200,206,61,131,1139,1372,1373,1294,0,1162,61,1062,1255,131,1294,1373,1374,1295,0,1255,1062,61,1256,131,1295,1374,1375,1296,0,1256,61,61,1257,131,1296,1375,1376,1297,0,1257,61,61,1258,131,1297,1376,1377,1298,0,1258,61,58,1257,131,1298,1377,1378,1299,0,1257,58,58,1259,131,1299,1378,1379,1300,0,1259,58,206,1200,131,1300,1379,1533,1455,0,1200,206,1260,206,131,1125,1140,1301,1147,0,1078,1208,1261,1079,131,1147,1301,1302,1148,0,1079,1261,1262,1095,131,1148,1302,1303,1149,0,1095,1262,1263,1103,131,1149,1303,1304,1150,0,1103,1263,1264,1111,131,1150,1304,1305,1151,0,1111,1264,1265,1119,131,1151,1305,1306,1152,0,1119,1265,1266,1127,131,1152,1306,1307,1153,0,1127,1266,1267,1135,131,1153,1307,1493,1492,0,1135,1267,230,1143,131,1140,1141,1308,1301,0,1208,1210,1268,1261,131,1301,1308,1309,1302,0,1261,1268,1269,1262,131,1302,1309,1310,1303,0,1262,1269,1270,1263,131,1303,1310,1311,1304,0,1263,1270,1271,1264,131,1304,1311,1312,1305,0,1264,1271,1272,1265,131,1305,1312,1313,1306,0,1265,1272,1273,1266,131,1306,1313,1314,1307,0,1266,1273,1274,1267,131,1307,1314,1494,1493,0,1267,1274,1275,230,131,1141,1142,1315,1308,0,1210,1212,1276,1268,131,1308,1315,1316,1309,0,1268,1276,1277,1269,131,1309,1316,1317,1310,0,1269,1277,1278,1270,131,1310,1317,1318,1311,0,1270,1278,1279,1271,131,1311,1318,1319,1312,0,1271,1279,1280,1272,131,1312,1319,1320,1313,0,1272,1280,1281,1273,131,1313,1320,1321,1314,0,1273,1281,1282,1274,131,1314,1321,1495,1494,0,1274,1282,1283,1275,131,1142,1143,1322,1315,0,1212,1214,1284,1276,131,1315,1322,1323,1316,0,1276,1284,1285,1277,131,1316,1323,1324,1317,0,1277,1285,1286,1278,131,1317,1324,1325,1318,0,1278,1286,1287,1279,131,1318,1325,1326,1319,0,1279,1287,1288,1280,131,1319,1326,1327,1320,0,1280,1288,1289,1281,131,1320,1327,1328,1321,0,1281,1289,1290,1282,131,1321,1328,1496,1495,0,1282,1290,1291,1283,131,1143,1144,1329,1322,0,1214,1216,1292,1284,131,1322,1329,1330,1323,0,1284,1292,1293,1285,131,1323,1330,1331,1324,0,1285,1293,1294,1286,131,1324,1331,1332,1325,0,1286,1294,1295,1287,131,1325,1332,1333,1326,0,1287,1295,1296,1288,131,1326,1333,1334,1327,0,1288,1296,1297,1289,131,1327,1334,1335,1328,0,1289,1297,1298,1290,131,1328,1335,1497,1496,0,1290,1298,1299,1291,131,1144,1145,1336,1329,0,1216,1218,1300,1292,131,1329,1336,1337,1330,0,1292,1300,1301,1293,131,1330,1337,1338,1331,0,1293,1301,1302,1294,131,1331,1338,1339,1332,0,1294,1302,1303,1295,131,1332,1339,1340,1333,0,1295,1303,1304,1296,131,1333,1340,1341,1334,0,1296,1304,1305,1297,131,1334,1341,1342,1335,0,1297,1305,1306,1298,131,1335,1342,1498,1497,0,1298,1306,1307,1299,131,1145,1146,1343,1336,0,1218,1220,1308,1300,131,1336,1343,1344,1337,0,1300,1308,1309,1301,131,1337,1344,1345,1338,0,1301,1309,1310,1302,131,1338,1345,1346,1339,0,1302,1310,1311,1303,131,1339,1346,1347,1340,0,1303,1311,1312,1304,131,1340,1347,1348,1341,0,1304,1312,1313,1305,131,1341,1348,1349,1342,0,1305,1313,357,1306,131,1342,1349,1499,1498,0,1306,357,357,1307,131,1146,1462,1463,1343,0,1220,1015,1014,1308,131,1343,1463,1464,1344,0,1308,1014,1017,1309,131,1344,1464,1465,1345,0,1309,1017,1017,1310,131,1345,1465,1466,1346,0,1310,1017,1022,1311,131,1346,1466,1467,1347,0,1311,1022,1025,1312,131,1347,1467,1468,1348,0,1312,1025,1029,1313,131,1348,1468,1469,1349,0,1313,1029,1029,357,131,1349,1469,1537,1499,0,357,1029,1314,357], + + "edges" : [] }; postMessage( model ); +close(); diff --git a/examples/obj/f50/F50NoUv_bin.js b/examples/obj/f50/F50NoUv_bin.js index 0b2e9d16..baaaf5b0 100644 --- a/examples/obj/f50/F50NoUv_bin.js +++ b/examples/obj/f50/F50NoUv_bin.js @@ -1,341 +1,344 @@ // Converted from: ../../examples/obj/f50/F50NoUv.obj // vertices: 67006 -// faces: 97474 +// faces: 97474 // materials: 25 // // Generated with OBJ -> Three.js converter -// http://github.com/alteredq/three.js/blob/master/utils/exporters/convert_obj_threejs_slim.py +// http://github.com/alteredq/three.js/blob/master/utils/exporters/convert_obj_three.py var model = { - 'materials': [ { - "a_dbg_color" : 0xeeeeee, - "a_dbg_index" : 0, - "a_dbg_name" : "F50NEGRO", - "col_ambient" : [0.0, 0.0, 0.0], - "col_diffuse" : [0.15376000000000001, 0.10983999999999999, 0.037679999999999998], - "col_specular" : [0.025000000000000001, 0.025000000000000001, 0.025000000000000001], + + "version" : 1, + + "materials": [ { + "DbgColor" : 15658734, + "DbgIndex" : 0, + "DbgName" : "F50NEGRO", + "colorAmbient" : [0.0, 0.0, 0.0], + "colorDiffuse" : [0.15376000000000001, 0.10983999999999999, 0.037679999999999998], + "colorSpecular" : [0.025000000000000001, 0.025000000000000001, 0.025000000000000001], "illumination" : 2, - "optical_density" : 1.0, - "specular_coef" : 98.039216, + "opticalDensity" : 1.0, + "specularCoef" : 98.039216, "transparency" : 1.0 }, { - "a_dbg_color" : 0xee0000, - "a_dbg_index" : 1, - "a_dbg_name" : "F50CROMO", - "col_ambient" : [0.0, 0.0, 0.0], - "col_diffuse" : [0.1004, 0.10352, 0.062719999999999998], - "col_specular" : [0.025000000000000001, 0.025000000000000001, 0.025000000000000001], + "DbgColor" : 15597568, + "DbgIndex" : 1, + "DbgName" : "F50CROMO", + "colorAmbient" : [0.0, 0.0, 0.0], + "colorDiffuse" : [0.1004, 0.10352, 0.062719999999999998], + "colorSpecular" : [0.025000000000000001, 0.025000000000000001, 0.025000000000000001], "illumination" : 2, - "optical_density" : 1.0, - "specular_coef" : 17.647059, + "opticalDensity" : 1.0, + "specularCoef" : 17.647059, "transparency" : 1.0 }, { - "a_dbg_color" : 0x00ee00, - "a_dbg_index" : 2, - "a_dbg_name" : "F50CRIST", - "col_ambient" : [0.0, 0.0, 0.0], - "col_diffuse" : [0.040800000000000003, 0.15687999999999999, 0.0031199999999999999], - "col_specular" : [0.025000000000000001, 0.025000000000000001, 0.025000000000000001], + "DbgColor" : 60928, + "DbgIndex" : 2, + "DbgName" : "F50CRIST", + "colorAmbient" : [0.0, 0.0, 0.0], + "colorDiffuse" : [0.040800000000000003, 0.15687999999999999, 0.0031199999999999999], + "colorSpecular" : [0.025000000000000001, 0.025000000000000001, 0.025000000000000001], "illumination" : 2, - "optical_density" : 1.0, - "specular_coef" : 98.039216, + "opticalDensity" : 1.0, + "specularCoef" : 98.039216, "transparency" : 0.4 }, { - "a_dbg_color" : 0x0000ee, - "a_dbg_index" : 3, - "a_dbg_name" : "F50ROJO", - "col_ambient" : [0.0, 0.0, 0.0], - "col_diffuse" : [0.56159999999999999, 0.043920000000000001, 0.069040000000000004], - "col_specular" : [0.025000000000000001, 0.025000000000000001, 0.025000000000000001], + "DbgColor" : 238, + "DbgIndex" : 3, + "DbgName" : "F50ROJO", + "colorAmbient" : [0.0, 0.0, 0.0], + "colorDiffuse" : [0.56159999999999999, 0.043920000000000001, 0.069040000000000004], + "colorSpecular" : [0.025000000000000001, 0.025000000000000001, 0.025000000000000001], "illumination" : 2, - "optical_density" : 1.0, - "specular_coef" : 98.039216, + "opticalDensity" : 1.0, + "specularCoef" : 98.039216, "transparency" : 1.0 }, { - "a_dbg_color" : 0xeeee00, - "a_dbg_index" : 4, - "a_dbg_name" : "F50NEGRO1", - "col_ambient" : [0.0, 0.0, 0.0], - "col_diffuse" : [0.15376000000000001, 0.10983999999999999, 0.037679999999999998], - "col_specular" : [0.025000000000000001, 0.025000000000000001, 0.025000000000000001], + "DbgColor" : 15658496, + "DbgIndex" : 4, + "DbgName" : "F50NEGRO1", + "colorAmbient" : [0.0, 0.0, 0.0], + "colorDiffuse" : [0.15376000000000001, 0.10983999999999999, 0.037679999999999998], + "colorSpecular" : [0.025000000000000001, 0.025000000000000001, 0.025000000000000001], "illumination" : 2, - "optical_density" : 1.0, - "specular_coef" : 98.039216, + "opticalDensity" : 1.0, + "specularCoef" : 98.039216, "transparency" : 1.0 }, { - "a_dbg_color" : 0x00eeee, - "a_dbg_index" : 5, - "a_dbg_name" : "F50ALFO", - "col_ambient" : [0.0, 0.0, 0.0], - "col_diffuse" : [0.15376000000000001, 0.10983999999999999, 0.037679999999999998], - "col_specular" : [0.025000000000000001, 0.025000000000000001, 0.025000000000000001], + "DbgColor" : 61166, + "DbgIndex" : 5, + "DbgName" : "F50ALFO", + "colorAmbient" : [0.0, 0.0, 0.0], + "colorDiffuse" : [0.15376000000000001, 0.10983999999999999, 0.037679999999999998], + "colorSpecular" : [0.025000000000000001, 0.025000000000000001, 0.025000000000000001], "illumination" : 2, - "optical_density" : 1.0, - "specular_coef" : 98.039216, + "opticalDensity" : 1.0, + "specularCoef" : 98.039216, "transparency" : 1.0 }, { - "a_dbg_color" : 0xee00ee, - "a_dbg_index" : 6, - "a_dbg_name" : "F50REJIL", - "col_ambient" : [0.0, 0.0, 0.0], - "col_diffuse" : [0.15376000000000001, 0.10983999999999999, 0.037679999999999998], - "col_specular" : [0.025000000000000001, 0.025000000000000001, 0.025000000000000001], + "DbgColor" : 15597806, + "DbgIndex" : 6, + "DbgName" : "F50REJIL", + "colorAmbient" : [0.0, 0.0, 0.0], + "colorDiffuse" : [0.15376000000000001, 0.10983999999999999, 0.037679999999999998], + "colorSpecular" : [0.025000000000000001, 0.025000000000000001, 0.025000000000000001], "illumination" : 2, - "optical_density" : 1.0, - "specular_coef" : 98.039216, + "opticalDensity" : 1.0, + "specularCoef" : 98.039216, "transparency" : 1.0 }, { - "a_dbg_color" : 0xcf36d4, - "a_dbg_index" : 7, - "a_dbg_name" : "F50RIGHT", - "col_ambient" : [0.0, 0.0, 0.0], - "col_diffuse" : [0.56159999999999999, 0.043920000000000001, 0.069040000000000004], - "col_specular" : [0.025000000000000001, 0.025000000000000001, 0.025000000000000001], + "DbgColor" : 13579988, + "DbgIndex" : 7, + "DbgName" : "F50RIGHT", + "colorAmbient" : [0.0, 0.0, 0.0], + "colorDiffuse" : [0.56159999999999999, 0.043920000000000001, 0.069040000000000004], + "colorSpecular" : [0.025000000000000001, 0.025000000000000001, 0.025000000000000001], "illumination" : 2, - "optical_density" : 1.0, - "specular_coef" : 98.039216, + "opticalDensity" : 1.0, + "specularCoef" : 98.039216, "transparency" : 1.0 }, { - "a_dbg_color" : 0x571aa8, - "a_dbg_index" : 8, - "a_dbg_name" : "F50CAPO1", - "col_ambient" : [0.0, 0.0, 0.0], - "col_diffuse" : [0.56159999999999999, 0.043920000000000001, 0.069040000000000004], - "col_specular" : [0.025000000000000001, 0.025000000000000001, 0.025000000000000001], + "DbgColor" : 5708456, + "DbgIndex" : 8, + "DbgName" : "F50CAPO1", + "colorAmbient" : [0.0, 0.0, 0.0], + "colorDiffuse" : [0.56159999999999999, 0.043920000000000001, 0.069040000000000004], + "colorSpecular" : [0.025000000000000001, 0.025000000000000001, 0.025000000000000001], "illumination" : 2, - "optical_density" : 1.0, - "specular_coef" : 98.039216, + "opticalDensity" : 1.0, + "specularCoef" : 98.039216, "transparency" : 1.0 }, { - "a_dbg_color" : 0xf91e1c, - "a_dbg_index" : 9, - "a_dbg_name" : "F50CAPO", - "col_ambient" : [0.0, 0.0, 0.0], - "col_diffuse" : [0.56159999999999999, 0.043920000000000001, 0.069040000000000004], - "col_specular" : [0.025000000000000001, 0.025000000000000001, 0.025000000000000001], + "DbgColor" : 16326172, + "DbgIndex" : 9, + "DbgName" : "F50CAPO", + "colorAmbient" : [0.0, 0.0, 0.0], + "colorDiffuse" : [0.56159999999999999, 0.043920000000000001, 0.069040000000000004], + "colorSpecular" : [0.025000000000000001, 0.025000000000000001, 0.025000000000000001], "illumination" : 2, - "optical_density" : 1.0, - "specular_coef" : 98.039216, + "opticalDensity" : 1.0, + "specularCoef" : 98.039216, "transparency" : 1.0 }, { - "a_dbg_color" : 0x562b0f, - "a_dbg_index" : 10, - "a_dbg_name" : "F50LEFT", - "col_ambient" : [0.0, 0.0, 0.0], - "col_diffuse" : [0.56159999999999999, 0.043920000000000001, 0.069040000000000004], - "col_specular" : [0.025000000000000001, 0.025000000000000001, 0.025000000000000001], + "DbgColor" : 5647119, + "DbgIndex" : 10, + "DbgName" : "F50LEFT", + "colorAmbient" : [0.0, 0.0, 0.0], + "colorDiffuse" : [0.56159999999999999, 0.043920000000000001, 0.069040000000000004], + "colorSpecular" : [0.025000000000000001, 0.025000000000000001, 0.025000000000000001], "illumination" : 2, - "optical_density" : 1.0, - "specular_coef" : 98.039216, + "opticalDensity" : 1.0, + "specularCoef" : 98.039216, "transparency" : 1.0 }, { - "a_dbg_color" : 0x17be30, - "a_dbg_index" : 11, - "a_dbg_name" : "F50MOTOR", - "col_ambient" : [0.0, 0.0, 0.0], - "col_diffuse" : [0.1004, 0.10352, 0.062719999999999998], - "col_specular" : [0.025000000000000001, 0.025000000000000001, 0.025000000000000001], + "DbgColor" : 1556016, + "DbgIndex" : 11, + "DbgName" : "F50MOTOR", + "colorAmbient" : [0.0, 0.0, 0.0], + "colorDiffuse" : [0.1004, 0.10352, 0.062719999999999998], + "colorSpecular" : [0.025000000000000001, 0.025000000000000001, 0.025000000000000001], "illumination" : 2, - "optical_density" : 1.0, - "specular_coef" : 17.647059, + "opticalDensity" : 1.0, + "specularCoef" : 17.647059, "transparency" : 1.0 }, { - "a_dbg_color" : 0x27cd80, - "a_dbg_index" : 12, - "a_dbg_name" : "F50GOOD", - "col_ambient" : [0.0, 0.0, 0.0], - "col_diffuse" : [0.15376000000000001, 0.10983999999999999, 0.037679999999999998], - "col_specular" : [0.025000000000000001, 0.025000000000000001, 0.025000000000000001], + "DbgColor" : 2608512, + "DbgIndex" : 12, + "DbgName" : "F50GOOD", + "colorAmbient" : [0.0, 0.0, 0.0], + "colorDiffuse" : [0.15376000000000001, 0.10983999999999999, 0.037679999999999998], + "colorSpecular" : [0.025000000000000001, 0.025000000000000001, 0.025000000000000001], "illumination" : 2, - "optical_density" : 1.0, - "specular_coef" : 17.647059, + "opticalDensity" : 1.0, + "specularCoef" : 17.647059, "transparency" : 1.0 }, { - "a_dbg_color" : 0xce9ff4, - "a_dbg_index" : 13, - "a_dbg_name" : "F50RUEDA", - "col_ambient" : [0.0, 0.0, 0.0], - "col_diffuse" : [0.15376000000000001, 0.10983999999999999, 0.037679999999999998], - "col_specular" : [0.025000000000000001, 0.025000000000000001, 0.025000000000000001], + "DbgColor" : 13541364, + "DbgIndex" : 13, + "DbgName" : "F50RUEDA", + "colorAmbient" : [0.0, 0.0, 0.0], + "colorDiffuse" : [0.15376000000000001, 0.10983999999999999, 0.037679999999999998], + "colorSpecular" : [0.025000000000000001, 0.025000000000000001, 0.025000000000000001], "illumination" : 2, - "optical_density" : 1.0, - "specular_coef" : 17.647059, + "opticalDensity" : 1.0, + "specularCoef" : 17.647059, "transparency" : 1.0 }, { - "a_dbg_color" : 0xf50be9, - "a_dbg_index" : 14, - "a_dbg_name" : "F50SUELO", - "col_ambient" : [0.0, 0.0, 0.0], - "col_diffuse" : [0.15376000000000001, 0.10983999999999999, 0.037679999999999998], - "col_specular" : [0.025000000000000001, 0.025000000000000001, 0.025000000000000001], + "DbgColor" : 16059369, + "DbgIndex" : 14, + "DbgName" : "F50SUELO", + "colorAmbient" : [0.0, 0.0, 0.0], + "colorDiffuse" : [0.15376000000000001, 0.10983999999999999, 0.037679999999999998], + "colorSpecular" : [0.025000000000000001, 0.025000000000000001, 0.025000000000000001], "illumination" : 2, - "optical_density" : 1.0, - "specular_coef" : 98.039216, + "opticalDensity" : 1.0, + "specularCoef" : 98.039216, "transparency" : 1.0 }, { - "a_dbg_color" : 0x01a9e7, - "a_dbg_index" : 15, - "a_dbg_name" : "F50DISCO", - "col_ambient" : [0.0, 0.0, 0.0], - "col_diffuse" : [0.41095999999999999, 0.36080000000000001, 0.25728000000000001], - "col_specular" : [0.025000000000000001, 0.025000000000000001, 0.025000000000000001], + "DbgColor" : 109031, + "DbgIndex" : 15, + "DbgName" : "F50DISCO", + "colorAmbient" : [0.0, 0.0, 0.0], + "colorDiffuse" : [0.41095999999999999, 0.36080000000000001, 0.25728000000000001], + "colorSpecular" : [0.025000000000000001, 0.025000000000000001, 0.025000000000000001], "illumination" : 2, - "optical_density" : 1.0, - "specular_coef" : 17.647059, + "opticalDensity" : 1.0, + "specularCoef" : 17.647059, "transparency" : 1.0 }, { - "a_dbg_color" : 0x9a8dc9, - "a_dbg_index" : 16, - "a_dbg_name" : "F50FARYE", - "col_ambient" : [0.0, 0.0, 0.0], - "col_diffuse" : [0.79056000000000004, 0.41095999999999999, 0.0062399999999999999], - "col_specular" : [0.025000000000000001, 0.025000000000000001, 0.025000000000000001], + "DbgColor" : 10128841, + "DbgIndex" : 16, + "DbgName" : "F50FARYE", + "colorAmbient" : [0.0, 0.0, 0.0], + "colorDiffuse" : [0.79056000000000004, 0.41095999999999999, 0.0062399999999999999], + "colorSpecular" : [0.025000000000000001, 0.025000000000000001, 0.025000000000000001], "illumination" : 2, - "optical_density" : 1.0, - "specular_coef" : 98.039216, + "opticalDensity" : 1.0, + "specularCoef" : 98.039216, "transparency" : 0.6 }, { - "a_dbg_color" : 0x60e7a0, - "a_dbg_index" : 17, - "a_dbg_name" : "F5OLOGO", - "col_ambient" : [0.0, 0.0, 0.0], - "col_diffuse" : [0.41095999999999999, 0.36080000000000001, 0.25728000000000001], - "col_specular" : [0.025000000000000001, 0.025000000000000001, 0.025000000000000001], + "DbgColor" : 6350752, + "DbgIndex" : 17, + "DbgName" : "F5OLOGO", + "colorAmbient" : [0.0, 0.0, 0.0], + "colorDiffuse" : [0.41095999999999999, 0.36080000000000001, 0.25728000000000001], + "colorSpecular" : [0.025000000000000001, 0.025000000000000001, 0.025000000000000001], "illumination" : 2, - "optical_density" : 1.0, - "specular_coef" : 17.647059, + "opticalDensity" : 1.0, + "specularCoef" : 17.647059, "transparency" : 1.0 }, { - "a_dbg_color" : 0x8d5288, - "a_dbg_index" : 18, - "a_dbg_name" : "F50FARED", - "col_ambient" : [0.0, 0.0, 0.0], - "col_diffuse" : [0.63056000000000001, 0.07528, 0.050160000000000003], - "col_specular" : [0.025000000000000001, 0.025000000000000001, 0.025000000000000001], + "DbgColor" : 9261704, + "DbgIndex" : 18, + "DbgName" : "F50FARED", + "colorAmbient" : [0.0, 0.0, 0.0], + "colorDiffuse" : [0.63056000000000001, 0.07528, 0.050160000000000003], + "colorSpecular" : [0.025000000000000001, 0.025000000000000001, 0.025000000000000001], "illumination" : 2, - "optical_density" : 1.0, - "specular_coef" : 98.039216, + "opticalDensity" : 1.0, + "specularCoef" : 98.039216, "transparency" : 0.7 }, { - "a_dbg_color" : 0x18c267, - "a_dbg_index" : 19, - "a_dbg_name" : "F50FARWD", - "col_ambient" : [0.0, 0.0, 0.0], - "col_diffuse" : [0.40472000000000002, 0.40472000000000002, 0.40472000000000002], - "col_specular" : [0.025000000000000001, 0.025000000000000001, 0.025000000000000001], + "DbgColor" : 1622631, + "DbgIndex" : 19, + "DbgName" : "F50FARWD", + "colorAmbient" : [0.0, 0.0, 0.0], + "colorDiffuse" : [0.40472000000000002, 0.40472000000000002, 0.40472000000000002], + "colorSpecular" : [0.025000000000000001, 0.025000000000000001, 0.025000000000000001], "illumination" : 2, - "optical_density" : 1.0, - "specular_coef" : 98.039216, + "opticalDensity" : 1.0, + "specularCoef" : 98.039216, "transparency" : 0.7 }, { - "a_dbg_color" : 0xbacfb3, - "a_dbg_index" : 20, - "a_dbg_name" : "F50ASIEN", - "col_ambient" : [0.0, 0.0, 0.0], - "col_diffuse" : [0.56159999999999999, 0.043920000000000001, 0.069040000000000004], - "col_specular" : [0.025000000000000001, 0.025000000000000001, 0.025000000000000001], + "DbgColor" : 12242867, + "DbgIndex" : 20, + "DbgName" : "F50ASIEN", + "colorAmbient" : [0.0, 0.0, 0.0], + "colorDiffuse" : [0.56159999999999999, 0.043920000000000001, 0.069040000000000004], + "colorSpecular" : [0.025000000000000001, 0.025000000000000001, 0.025000000000000001], "illumination" : 2, - "optical_density" : 1.0, - "specular_coef" : 98.039216, + "opticalDensity" : 1.0, + "specularCoef" : 98.039216, "transparency" : 1.0 }, { - "a_dbg_color" : 0xce4a2a, - "a_dbg_index" : 21, - "a_dbg_name" : "F50MATR", - "col_ambient" : [0.0, 0.0, 0.0], - "col_diffuse" : [0.59919999999999995, 0.58984000000000003, 0.56472], - "col_specular" : [0.025000000000000001, 0.025000000000000001, 0.025000000000000001], + "DbgColor" : 13519402, + "DbgIndex" : 21, + "DbgName" : "F50MATR", + "colorAmbient" : [0.0, 0.0, 0.0], + "colorDiffuse" : [0.59919999999999995, 0.58984000000000003, 0.56472], + "colorSpecular" : [0.025000000000000001, 0.025000000000000001, 0.025000000000000001], "illumination" : 2, - "optical_density" : 1.0, - "specular_coef" : 98.039216, + "opticalDensity" : 1.0, + "specularCoef" : 98.039216, "transparency" : 1.0 }, { - "a_dbg_color" : 0x89463d, - "a_dbg_index" : 22, - "a_dbg_name" : "F50AIRE", - "col_ambient" : [0.0, 0.0, 0.0], - "col_diffuse" : [0.15376000000000001, 0.10983999999999999, 0.037679999999999998], - "col_specular" : [0.025000000000000001, 0.025000000000000001, 0.025000000000000001], + "DbgColor" : 8996413, + "DbgIndex" : 22, + "DbgName" : "F50AIRE", + "colorAmbient" : [0.0, 0.0, 0.0], + "colorDiffuse" : [0.15376000000000001, 0.10983999999999999, 0.037679999999999998], + "colorSpecular" : [0.025000000000000001, 0.025000000000000001, 0.025000000000000001], "illumination" : 2, - "optical_density" : 1.0, - "specular_coef" : 98.039216, + "opticalDensity" : 1.0, + "specularCoef" : 98.039216, "transparency" : 1.0 }, { - "a_dbg_color" : 0xb2b942, - "a_dbg_index" : 23, - "a_dbg_name" : "F50TOPAL", - "col_ambient" : [0.0, 0.0, 0.0], - "col_diffuse" : [0.56159999999999999, 0.043920000000000001, 0.069040000000000004], - "col_specular" : [0.025000000000000001, 0.025000000000000001, 0.025000000000000001], + "DbgColor" : 11712834, + "DbgIndex" : 23, + "DbgName" : "F50TOPAL", + "colorAmbient" : [0.0, 0.0, 0.0], + "colorDiffuse" : [0.56159999999999999, 0.043920000000000001, 0.069040000000000004], + "colorSpecular" : [0.025000000000000001, 0.025000000000000001, 0.025000000000000001], "illumination" : 2, - "optical_density" : 1.0, - "specular_coef" : 98.039216, + "opticalDensity" : 1.0, + "specularCoef" : 98.039216, "transparency" : 1.0 }, { - "a_dbg_color" : 0xd8f563, - "a_dbg_index" : 24, - "a_dbg_name" : "F50TOPAL1", - "col_ambient" : [0.0, 0.0, 0.0], - "col_diffuse" : [0.56159999999999999, 0.043920000000000001, 0.069040000000000004], - "col_specular" : [0.025000000000000001, 0.025000000000000001, 0.025000000000000001], + "DbgColor" : 14218595, + "DbgIndex" : 24, + "DbgName" : "F50TOPAL1", + "colorAmbient" : [0.0, 0.0, 0.0], + "colorDiffuse" : [0.56159999999999999, 0.043920000000000001, 0.069040000000000004], + "colorSpecular" : [0.025000000000000001, 0.025000000000000001, 0.025000000000000001], "illumination" : 2, - "optical_density" : 1.0, - "specular_coef" : 98.039216, + "opticalDensity" : 1.0, + "specularCoef" : 98.039216, "transparency" : 1.0 }], - 'buffers': 'F50NoUv_bin.bin', + "buffers": "F50NoUv_bin.bin" - 'end': (new Date).getTime() - } +}; postMessage( model ); +close(); diff --git a/examples/obj/female02/Female02_bin.js b/examples/obj/female02/Female02_bin.js index 0edd69b3..0488c0f6 100644 --- a/examples/obj/female02/Female02_bin.js +++ b/examples/obj/female02/Female02_bin.js @@ -100,3 +100,4 @@ var model = { }; postMessage( model ); +close(); diff --git a/examples/obj/female02/Female02_slim.js b/examples/obj/female02/Female02_slim.js index e19d9f16..4c3c0f90 100644 --- a/examples/obj/female02/Female02_slim.js +++ b/examples/obj/female02/Female02_slim.js @@ -118,3 +118,4 @@ var model = { }; postMessage( model ); +close(); diff --git a/examples/obj/gallardo/GallardoNoUv_bin.js b/examples/obj/gallardo/GallardoNoUv_bin.js index 2d2cbc08..8aef6fce 100644 --- a/examples/obj/gallardo/GallardoNoUv_bin.js +++ b/examples/obj/gallardo/GallardoNoUv_bin.js @@ -1,107 +1,110 @@ // Converted from: ../../examples/obj/gallardo/GallardoNoUv.obj // vertices: 77815 -// faces: 75573 +// faces: 75573 // materials: 7 // // Generated with OBJ -> Three.js converter -// http://github.com/alteredq/three.js/blob/master/utils/exporters/convert_obj_threejs_slim.py +// http://github.com/alteredq/three.js/blob/master/utils/exporters/convert_obj_three.py var model = { - 'materials': [ { - "a_dbg_color" : 0xeeeeee, - "a_dbg_index" : 0, - "a_dbg_name" : "wire_255255255", - "col_ambient" : [0.0, 0.0, 0.0], - "col_diffuse" : [0.80000000000000004, 0.80000000000000004, 0.80000000000000004], - "col_specular" : [0.17499999999999999, 0.17499999999999999, 0.17499999999999999], + + "version" : 1, + + "materials": [ { + "DbgColor" : 15658734, + "DbgIndex" : 0, + "DbgName" : "wire_255255255", + "colorAmbient" : [0.0, 0.0, 0.0], + "colorDiffuse" : [0.80000000000000004, 0.80000000000000004, 0.80000000000000004], + "colorSpecular" : [0.17499999999999999, 0.17499999999999999, 0.17499999999999999], "illumination" : 2, - "optical_density" : 1.0, - "specular_coef" : 29.411765, + "opticalDensity" : 1.0, + "specularCoef" : 29.411765, "transparency" : 1.0 }, { - "a_dbg_color" : 0xee0000, - "a_dbg_index" : 1, - "a_dbg_name" : "wire_115115115", - "col_ambient" : [0.0, 0.0, 0.0], - "col_diffuse" : [0.36080000000000001, 0.36080000000000001, 0.36080000000000001], - "col_specular" : [0.17499999999999999, 0.17499999999999999, 0.17499999999999999], + "DbgColor" : 15597568, + "DbgIndex" : 1, + "DbgName" : "wire_115115115", + "colorAmbient" : [0.0, 0.0, 0.0], + "colorDiffuse" : [0.36080000000000001, 0.36080000000000001, 0.36080000000000001], + "colorSpecular" : [0.17499999999999999, 0.17499999999999999, 0.17499999999999999], "illumination" : 2, - "optical_density" : 1.0, - "specular_coef" : 29.411765, + "opticalDensity" : 1.0, + "specularCoef" : 29.411765, "transparency" : 1.0 }, { - "a_dbg_color" : 0x00ee00, - "a_dbg_index" : 2, - "a_dbg_name" : "03___Default", - "col_ambient" : [0.0, 0.0, 0.0], - "col_diffuse" : [0.13175999999999999, 0.13175999999999999, 0.13175999999999999], - "col_specular" : [0.0, 0.0, 0.0], + "DbgColor" : 60928, + "DbgIndex" : 2, + "DbgName" : "03___Default", + "colorAmbient" : [0.0, 0.0, 0.0], + "colorDiffuse" : [0.13175999999999999, 0.13175999999999999, 0.13175999999999999], + "colorSpecular" : [0.0, 0.0, 0.0], "illumination" : 2, - "optical_density" : 1.0, - "specular_coef" : 7.843137, + "opticalDensity" : 1.0, + "specularCoef" : 7.843137, "transparency" : 1.0 }, { - "a_dbg_color" : 0x0000ee, - "a_dbg_index" : 3, - "a_dbg_name" : "02___Default", - "col_ambient" : [0.0, 0.0, 0.0], - "col_diffuse" : [0.80000000000000004, 0.0, 0.0], - "col_specular" : [0.65249999999999997, 0.65249999999999997, 0.65249999999999997], + "DbgColor" : 238, + "DbgIndex" : 3, + "DbgName" : "02___Default", + "colorAmbient" : [0.0, 0.0, 0.0], + "colorDiffuse" : [0.80000000000000004, 0.0, 0.0], + "colorSpecular" : [0.65249999999999997, 0.65249999999999997, 0.65249999999999997], "illumination" : 2, - "optical_density" : 1.0, - "specular_coef" : 25.490196, + "opticalDensity" : 1.0, + "specularCoef" : 25.490196, "transparency" : 1.0 }, { - "a_dbg_color" : 0xeeee00, - "a_dbg_index" : 4, - "a_dbg_name" : "wire_255000000", - "col_ambient" : [0.0, 0.0, 0.0], - "col_diffuse" : [0.80000000000000004, 0.0, 0.0], - "col_specular" : [0.17499999999999999, 0.17499999999999999, 0.17499999999999999], + "DbgColor" : 15658496, + "DbgIndex" : 4, + "DbgName" : "wire_255000000", + "colorAmbient" : [0.0, 0.0, 0.0], + "colorDiffuse" : [0.80000000000000004, 0.0, 0.0], + "colorSpecular" : [0.17499999999999999, 0.17499999999999999, 0.17499999999999999], "illumination" : 2, - "optical_density" : 1.0, - "specular_coef" : 29.411765, + "opticalDensity" : 1.0, + "specularCoef" : 29.411765, "transparency" : 1.0 }, { - "a_dbg_color" : 0x00eeee, - "a_dbg_index" : 5, - "a_dbg_name" : "wire_252252000", - "col_ambient" : [0.0, 0.0, 0.0], - "col_diffuse" : [0.79056000000000004, 0.79056000000000004, 0.0], - "col_specular" : [0.17499999999999999, 0.17499999999999999, 0.17499999999999999], + "DbgColor" : 61166, + "DbgIndex" : 5, + "DbgName" : "wire_252252000", + "colorAmbient" : [0.0, 0.0, 0.0], + "colorDiffuse" : [0.79056000000000004, 0.79056000000000004, 0.0], + "colorSpecular" : [0.17499999999999999, 0.17499999999999999, 0.17499999999999999], "illumination" : 2, - "optical_density" : 1.0, - "specular_coef" : 29.411765, + "opticalDensity" : 1.0, + "specularCoef" : 29.411765, "transparency" : 1.0 }, { - "a_dbg_color" : 0xee00ee, - "a_dbg_index" : 6, - "a_dbg_name" : "wire_132132132", - "col_ambient" : [0.0, 0.0, 0.0], - "col_diffuse" : [0.41408, 0.41408, 0.41408], - "col_specular" : [0.17499999999999999, 0.17499999999999999, 0.17499999999999999], + "DbgColor" : 15597806, + "DbgIndex" : 6, + "DbgName" : "wire_132132132", + "colorAmbient" : [0.0, 0.0, 0.0], + "colorDiffuse" : [0.41408, 0.41408, 0.41408], + "colorSpecular" : [0.17499999999999999, 0.17499999999999999, 0.17499999999999999], "illumination" : 2, - "optical_density" : 1.0, - "specular_coef" : 29.411765, + "opticalDensity" : 1.0, + "specularCoef" : 29.411765, "transparency" : 1.0 }], - 'buffers': 'GallardoNoUv_bin.bin', + "buffers": "GallardoNoUv_bin.bin" - 'end': (new Date).getTime() - } +}; postMessage( model ); +close(); diff --git a/examples/obj/leeperrysmith/LeePerrySmith.js b/examples/obj/leeperrysmith/LeePerrySmith.js index 5fd18682..ef41dd84 100644 --- a/examples/obj/leeperrysmith/LeePerrySmith.js +++ b/examples/obj/leeperrysmith/LeePerrySmith.js @@ -44,3 +44,4 @@ var model = { }; postMessage( model ); +close(); \ No newline at end of file diff --git a/examples/obj/lucy/Lucy100k_bin.js b/examples/obj/lucy/Lucy100k_bin.js index 940a7125..c7c646d9 100644 --- a/examples/obj/lucy/Lucy100k_bin.js +++ b/examples/obj/lucy/Lucy100k_bin.js @@ -22,3 +22,4 @@ var model = { }; postMessage( model ); +close(); diff --git a/examples/obj/lucy/Lucy100k_slim.js b/examples/obj/lucy/Lucy100k_slim.js index a33ef08d..eb866bbe 100644 --- a/examples/obj/lucy/Lucy100k_slim.js +++ b/examples/obj/lucy/Lucy100k_slim.js @@ -40,3 +40,4 @@ var model = { }; postMessage( model ); +close(); diff --git a/examples/obj/male02/Male02_bin.js b/examples/obj/male02/Male02_bin.js index de3f16a8..b0665bae 100644 --- a/examples/obj/male02/Male02_bin.js +++ b/examples/obj/male02/Male02_bin.js @@ -86,3 +86,4 @@ var model = { }; postMessage( model ); +close(); diff --git a/examples/obj/male02/Male02_slim.js b/examples/obj/male02/Male02_slim.js index 129909e1..2f63e74c 100644 --- a/examples/obj/male02/Male02_slim.js +++ b/examples/obj/male02/Male02_slim.js @@ -104,3 +104,4 @@ var model = { }; postMessage( model ); +close(); diff --git a/examples/obj/ninja/NinjaLo_bin.js b/examples/obj/ninja/NinjaLo_bin.js index 2aab80c8..098ccc84 100644 --- a/examples/obj/ninja/NinjaLo_bin.js +++ b/examples/obj/ninja/NinjaLo_bin.js @@ -22,3 +22,4 @@ var model = { }; postMessage( model ); +close(); diff --git a/examples/obj/torus/Torus_bin.js b/examples/obj/torus/Torus_bin.js index 27090e39..635812a3 100644 --- a/examples/obj/torus/Torus_bin.js +++ b/examples/obj/torus/Torus_bin.js @@ -22,3 +22,4 @@ var model = { }; postMessage( model ); +close(); diff --git a/examples/obj/torus/Torus_slim.js b/examples/obj/torus/Torus_slim.js index 046d983b..da4cbeab 100644 --- a/examples/obj/torus/Torus_slim.js +++ b/examples/obj/torus/Torus_slim.js @@ -40,3 +40,4 @@ var model = { }; postMessage( model ); +close(); diff --git a/examples/obj/veyron/VeyronNoUv_bin.js b/examples/obj/veyron/VeyronNoUv_bin.js index 927f39ae..009ded3e 100644 --- a/examples/obj/veyron/VeyronNoUv_bin.js +++ b/examples/obj/veyron/VeyronNoUv_bin.js @@ -1,120 +1,123 @@ // Converted from: ../../examples/obj/veyron/VeyronNoUv.obj // vertices: 36210 -// faces: 33034 +// faces: 33034 // materials: 8 // // Generated with OBJ -> Three.js converter -// http://github.com/alteredq/three.js/blob/master/utils/exporters/convert_obj_threejs_slim.py +// http://github.com/alteredq/three.js/blob/master/utils/exporters/convert_obj_three.py var model = { - 'materials': [ { - "a_dbg_color" : 0xeeeeee, - "a_dbg_index" : 0, - "a_dbg_name" : "08___Default", - "col_ambient" : [0.0, 0.0, 0.0], - "col_diffuse" : [0.18823999999999999, 0.18823999999999999, 0.18823999999999999], - "col_specular" : [0.14824999999999999, 0.14824999999999999, 0.14824999999999999], + + "version" : 1, + + "materials": [ { + "DbgColor" : 15658734, + "DbgIndex" : 0, + "DbgName" : "08___Default", + "colorAmbient" : [0.0, 0.0, 0.0], + "colorDiffuse" : [0.18823999999999999, 0.18823999999999999, 0.18823999999999999], + "colorSpecular" : [0.14824999999999999, 0.14824999999999999, 0.14824999999999999], "illumination" : 2, - "optical_density" : 1.0, - "specular_coef" : 17.647059, + "opticalDensity" : 1.0, + "specularCoef" : 17.647059, "transparency" : 1.0 }, { - "a_dbg_color" : 0xee0000, - "a_dbg_index" : 1, - "a_dbg_name" : "03___Default", - "col_ambient" : [0.0, 0.0, 0.0], - "col_diffuse" : [0.52703999999999995, 0.52703999999999995, 0.52703999999999995], - "col_specular" : [0.59999999999999998, 0.59999999999999998, 0.59999999999999998], + "DbgColor" : 15597568, + "DbgIndex" : 1, + "DbgName" : "03___Default", + "colorAmbient" : [0.0, 0.0, 0.0], + "colorDiffuse" : [0.52703999999999995, 0.52703999999999995, 0.52703999999999995], + "colorSpecular" : [0.59999999999999998, 0.59999999999999998, 0.59999999999999998], "illumination" : 2, - "optical_density" : 1.0, - "specular_coef" : 37.254902, + "opticalDensity" : 1.0, + "specularCoef" : 37.254902, "transparency" : 1.0 }, { - "a_dbg_color" : 0x00ee00, - "a_dbg_index" : 2, - "a_dbg_name" : "ColorBlack", - "col_ambient" : [0.0, 0.0, 0.0], - "col_diffuse" : [0.21648000000000001, 0.21648000000000001, 0.21648000000000001], - "col_specular" : [0.75, 0.75, 0.75], + "DbgColor" : 60928, + "DbgIndex" : 2, + "DbgName" : "ColorBlack", + "colorAmbient" : [0.0, 0.0, 0.0], + "colorDiffuse" : [0.21648000000000001, 0.21648000000000001, 0.21648000000000001], + "colorSpecular" : [0.75, 0.75, 0.75], "illumination" : 2, - "optical_density" : 1.0, - "specular_coef" : 56.862745, + "opticalDensity" : 1.0, + "specularCoef" : 56.862745, "transparency" : 1.0 }, { - "a_dbg_color" : 0x0000ee, - "a_dbg_index" : 3, - "a_dbg_name" : "04___Default", - "col_ambient" : [0.0, 0.0, 0.0], - "col_diffuse" : [0.54271999999999998, 0.57408000000000003, 0.58984000000000003], - "col_specular" : [0.75, 0.75, 0.75], + "DbgColor" : 238, + "DbgIndex" : 3, + "DbgName" : "04___Default", + "colorAmbient" : [0.0, 0.0, 0.0], + "colorDiffuse" : [0.54271999999999998, 0.57408000000000003, 0.58984000000000003], + "colorSpecular" : [0.75, 0.75, 0.75], "illumination" : 2, - "optical_density" : 1.0, - "specular_coef" : 66.666667, + "opticalDensity" : 1.0, + "specularCoef" : 66.666667, "transparency" : 0.5 }, { - "a_dbg_color" : 0xeeee00, - "a_dbg_index" : 4, - "a_dbg_name" : "02___Default", - "col_ambient" : [0.0, 0.0, 0.0], - "col_diffuse" : [0.48311999999999999, 0.0, 0.0], - "col_specular" : [0.75, 0.75, 0.75], + "DbgColor" : 15658496, + "DbgIndex" : 4, + "DbgName" : "02___Default", + "colorAmbient" : [0.0, 0.0, 0.0], + "colorDiffuse" : [0.48311999999999999, 0.0, 0.0], + "colorSpecular" : [0.75, 0.75, 0.75], "illumination" : 2, - "optical_density" : 1.0, - "specular_coef" : 56.862745, + "opticalDensity" : 1.0, + "specularCoef" : 56.862745, "transparency" : 1.0 }, { - "a_dbg_color" : 0x00eeee, - "a_dbg_index" : 5, - "a_dbg_name" : "Aluminium", - "col_ambient" : [0.0, 0.0, 0.0], - "col_diffuse" : [0.47055999999999998, 0.47055999999999998, 0.47055999999999998], - "col_specular" : [0.40000000000000002, 0.40000000000000002, 0.40000000000000002], + "DbgColor" : 61166, + "DbgIndex" : 5, + "DbgName" : "Aluminium", + "colorAmbient" : [0.0, 0.0, 0.0], + "colorDiffuse" : [0.47055999999999998, 0.47055999999999998, 0.47055999999999998], + "colorSpecular" : [0.40000000000000002, 0.40000000000000002, 0.40000000000000002], "illumination" : 2, - "optical_density" : 1.0, - "specular_coef" : 17.647059, + "opticalDensity" : 1.0, + "specularCoef" : 17.647059, "transparency" : 1.0 }, { - "a_dbg_color" : 0xee00ee, - "a_dbg_index" : 6, - "a_dbg_name" : "glassRed", - "col_ambient" : [0.0, 0.0, 0.0], - "col_diffuse" : [0.57408000000000003, 0.0, 0.0], - "col_specular" : [0.75, 0.75, 0.75], + "DbgColor" : 15597806, + "DbgIndex" : 6, + "DbgName" : "glassRed", + "colorAmbient" : [0.0, 0.0, 0.0], + "colorDiffuse" : [0.57408000000000003, 0.0, 0.0], + "colorSpecular" : [0.75, 0.75, 0.75], "illumination" : 2, - "optical_density" : 1.0, - "specular_coef" : 66.666667, + "opticalDensity" : 1.0, + "specularCoef" : 66.666667, "transparency" : 0.5 }, { - "a_dbg_color" : 0x06671a, - "a_dbg_index" : 7, - "a_dbg_name" : "glassOranje", - "col_ambient" : [0.0, 0.0, 0.0], - "col_diffuse" : [0.80000000000000004, 0.49568000000000001, 0.1004], - "col_specular" : [0.75, 0.75, 0.75], + "DbgColor" : 419610, + "DbgIndex" : 7, + "DbgName" : "glassOranje", + "colorAmbient" : [0.0, 0.0, 0.0], + "colorDiffuse" : [0.80000000000000004, 0.49568000000000001, 0.1004], + "colorSpecular" : [0.75, 0.75, 0.75], "illumination" : 2, - "optical_density" : 1.0, - "specular_coef" : 66.666667, + "opticalDensity" : 1.0, + "specularCoef" : 66.666667, "transparency" : 0.5 }], - 'buffers': 'VeyronNoUv_bin.bin', + "buffers": "VeyronNoUv_bin.bin" - 'end': (new Date).getTime() - } +}; postMessage( model ); +close(); diff --git a/examples/obj/walt/WaltHead_bin.js b/examples/obj/walt/WaltHead_bin.js index 85033d2b..d99434a7 100644 --- a/examples/obj/walt/WaltHead_bin.js +++ b/examples/obj/walt/WaltHead_bin.js @@ -29,3 +29,4 @@ var model = { }; postMessage( model ); +close(); diff --git a/examples/obj/walt/WaltHead_slim.js b/examples/obj/walt/WaltHead_slim.js index 70a4288a..7f2d60f5 100644 --- a/examples/obj/walt/WaltHead_slim.js +++ b/examples/obj/walt/WaltHead_slim.js @@ -47,3 +47,4 @@ var model = { }; postMessage( model ); +close(); diff --git a/examples/scenes/test_scene.js b/examples/scenes/test_scene.js index dda76a09..d97d9806 100644 --- a/examples/scenes/test_scene.js +++ b/examples/scenes/test_scene.js @@ -441,3 +441,4 @@ var scene = { }; postMessage( scene ); +close(); \ No newline at end of file diff --git a/src/extras/io/SceneLoader.js b/src/extras/io/SceneLoader.js index c98280d7..b073c2dc 100644 --- a/src/extras/io/SceneLoader.js +++ b/src/extras/io/SceneLoader.js @@ -27,6 +27,7 @@ THREE.SceneLoader.prototype = { result; data = event.data; + binLoader = new THREE.BinaryLoader(); jsonLoader = new THREE.JSONLoader(); @@ -46,6 +47,26 @@ THREE.SceneLoader.prototype = { }; + if ( data.transform ) { + + var position = data.transform.position, + rotation = data.transform.rotation, + scale = data.transform.scale; + + if ( position ) + result.scene.position.set( position[ 0 ], position[ 1 ], position [ 2 ] ); + + if ( rotation ) + result.scene.rotation.set( rotation[ 0 ], rotation[ 1 ], rotation [ 2 ] ); + + if ( scale ) + result.scene.scale.set( scale[ 0 ], scale[ 1 ], scale [ 2 ] ); + + if ( position || rotation || scale ) + result.scene.updateMatrix(); + + } + function get_url( source_url, url_type ) { if ( url_type == "relativeToHTML" ) { @@ -83,31 +104,31 @@ THREE.SceneLoader.prototype = { r = o.rotation; q = o.quaternion; s = o.scale; - + // turn off quaternions, for the moment - + q = 0; if ( materials.length == 0 ) { - + materials[ 0 ] = new THREE.MeshFaceMaterial(); - + } - + object = new THREE.Mesh( geometry, materials ); object.position.set( p[0], p[1], p[2] ); - + if ( q ) { - + object.quaternion.set( q[0], q[1], q[2], q[3] ); object.useQuaternion = true; - + } else { object.rotation.set( r[0], r[1], r[2] ); - + } - + object.scale.set( s[0], s[1], s[2] ); object.visible = o.visible; diff --git a/utils/exporters/blender/2.56/scripts/op/io_mesh_threejs/export_threejs.py b/utils/exporters/blender/2.56/scripts/op/io_mesh_threejs/export_threejs.py index 9e77d053..63f08313 100644 --- a/utils/exporters/blender/2.56/scripts/op/io_mesh_threejs/export_threejs.py +++ b/utils/exporters/blender/2.56/scripts/op/io_mesh_threejs/export_threejs.py @@ -45,6 +45,10 @@ DEFAULTS = { "bgcolor" : [0, 0, 0], "bgalpha" : 1.0, +"position" : [0, 0, 0], +"rotation" : [-math.pi/2, 0, 0], +"scale" : [1, 1, 1], + "camera" : { "name" : "default_camera", @@ -61,9 +65,9 @@ DEFAULTS = { { "name" : "default_light", "type" : "directional", - "direction" : [0,1,1], - "color" : [1,1,1], - "intensity" : 0.8 + "direction" : [0, 1, 1], + "color" : [1, 1, 1], + "intensity" : 0.8 } } @@ -77,10 +81,16 @@ COLORS = [0xeeeeee, 0xee0000, 0x00ee00, 0x0000ee, 0xeeee00, 0x00eeee, 0xee00ee] # ##################################################### TEMPLATE_SCENE_ASCII = """\ -// Converted from: %(fname)s -// File generated with Blender 2.56 Exporter -// https://github.com/alteredq/three.js/tree/master/utils/exporters/blender/ - +/* Converted from: %(fname)s + * + * File generated with Blender 2.56 Exporter + * https://github.com/alteredq/three.js/tree/master/utils/exporters/blender/ + * + * objects: %(nobjects)s + * geometries: %(ngeometries)s + * materials: %(nmaterials)s + * textures: %(ntextures)s + */ var scene = { @@ -89,6 +99,13 @@ var scene = { %(sections)s +"transform" : +{ + "position" : %(position)s, + "rotation" : %(rotation)s, + "scale" : %(scale)s, +}, + "defaults" : { "bgcolor" : %(bgcolor)s, @@ -99,7 +116,7 @@ var scene = { } postMessage( scene ); - +close(); """ TEMPLATE_SECTION = """ @@ -117,7 +134,7 @@ TEMPLATE_OBJECT = """\ "position" : %(position)s, "rotation" : %(rotation)s, "quaternion": %(quaternion)s, - "scale" : %(scale)s, + "scale" : %(scale)s, "visible" : true, "castsShadow" : %(castsShadow)s, "meshCollider" : %(meshCollider)s @@ -230,6 +247,7 @@ var model = { }; postMessage( model ); +close(); """ TEMPLATE_VERTEX = "%f,%f,%f" @@ -648,7 +666,7 @@ def value2string(v): return str(v).lower() return str(v) -def generate_materials(mtl, materials, use_colors, draw_type): +def generate_materials(mtl, materials, draw_type): """Generate JS array of materials objects """ @@ -663,7 +681,6 @@ def generate_materials(mtl, materials, use_colors, draw_type): mtl[m]['DbgName'] = m mtl[m]['DbgIndex'] = index mtl[m]['DbgColor'] = generate_color(index) - mtl[m]['vertexColors'] = use_colors and mtl[m]["useVertexColors"] if draw_type in [ "BOUNDS", "WIRE" ]: mtl[m]['wireframe'] = True @@ -675,7 +692,7 @@ def generate_materials(mtl, materials, use_colors, draw_type): return ",\n\n".join([m for i,m in sorted(mtl_array)]), len(mtl_array) -def extract_materials(mesh, scene): +def extract_materials(mesh, scene, use_colors): world = scene.world materials = {} @@ -701,6 +718,7 @@ def extract_materials(mesh, scene): # not sure about mapping values to Blinn-Phong shader # Blender uses INT from [1,511] with default 0 # http://www.blender.org/documentation/blender_python_api_2_54_0/bpy.types.Material.html#bpy.types.Material.specular_hardness + material["specularCoef"] = m.specular_hardness if m.active_texture and m.active_texture.type == 'IMAGE' and m.active_texture.image: @@ -708,8 +726,8 @@ def extract_materials(mesh, scene): fn = os.path.normpath(fn) fn_strip = os.path.basename(fn) material['mapDiffuse'] = fn_strip - - material["useVertexColors"] = m.THREE_useVertexColors + + material["vertexColors"] = m.THREE_useVertexColors and use_colors # can't really use this reliably to tell apart Phong from Lambert # as Blender defaults to non-zero specular color @@ -742,9 +760,9 @@ def generate_materials_string(mesh, scene, use_colors, draw_type): # extract real materials from the mesh - mtl.update(extract_materials(mesh, scene)) + mtl.update(extract_materials(mesh, scene, use_colors)) - return generate_materials(mtl, materials, use_colors, draw_type) + return generate_materials(mtl, materials, draw_type) # ##################################################### # ASCII model generator @@ -834,7 +852,6 @@ def export_mesh(obj, scene, filepath, """Export single mesh""" - # collapse modifiers into mesh mesh = obj.create_mesh(scene, True, 'RENDER') @@ -845,17 +862,14 @@ def export_mesh(obj, scene, filepath, # that's what Blender's native export_obj.py does # to flip YZ - X_ROT = mathutils.Matrix.Rotation(-math.pi/2, 4, 'X') - if export_single_model: + X_ROT = mathutils.Matrix.Rotation(-math.pi/2, 4, 'X') mesh.transform(X_ROT * obj.matrix_world) - else: - mesh.transform(X_ROT) - - mesh.transform(mathutils.Matrix.Scale(option_scale, 4)) mesh.calc_normals() + mesh.transform(mathutils.Matrix.Scale(option_scale, 4)) + faceUV = (len(mesh.uv_textures) > 0) vertexUV = (len(mesh.sticky) > 0) vertexColors = len(mesh.vertex_colors) > 0 @@ -958,27 +972,20 @@ def generate_objects(data): for obj in data["objects"]: if obj.type == "MESH": object_id = obj.name - + if len(obj.modifiers) > 0: geo_name = obj.name else: geo_name = obj.data.name geometry_id = "geo_%s" % geo_name - + material_ids = generate_material_id_list(obj.material_slots) group_ids = generate_group_id_list(obj) - #position = obj.location - #rotation = obj.rotation_euler - scale = obj.scale - quaternion = obj.rotation_quaternion - - position = [obj.location.x, obj.location.z, -obj.location.y] - rotation = [obj.rotation_euler.x, -obj.rotation_euler.y, -obj.rotation_euler.z] - #quaternion = obj.rotation_euler.to_quat() - scale = [obj.scale.x, obj.scale.z, obj.scale.y] - + position, quaternion, scale = obj.matrix_world.decompose() + rotation = quaternion.to_euler("XYZ") + material_string = "" if len(material_ids) > 0: material_string = generate_string_list(material_ids) @@ -995,16 +1002,18 @@ def generate_objects(data): "geometry_id" : generate_string(geometry_id), "group_id" : group_string, "material_id" : material_string, + "position" : generate_vec3(position), "rotation" : generate_vec3(rotation), "quaternion" : generate_vec4(quaternion), "scale" : generate_vec3(scale), + "castsShadow" : castsShadow, "meshCollider" : meshCollider } chunks.append(object_string) - return ",\n\n".join(chunks) + return ",\n\n".join(chunks), len(chunks) # ##################################################### # Scene exporter - geometries @@ -1036,7 +1045,7 @@ def generate_geometries(data): geo_set.add(name) - return ",\n\n".join(chunks) + return ",\n\n".join(chunks), len(chunks) # ##################################################### # Scene exporter - textures @@ -1058,7 +1067,7 @@ def generate_textures_scene(data): } chunks.append(texture_string) - return ",\n\n".join(chunks) + return ",\n\n".join(chunks), len(chunks) def extract_texture_filename(image): fn = bpy.path.abspath(image.filepath) @@ -1176,7 +1185,7 @@ def generate_materials_scene(data): material_string = generate_material_string(material) chunks.append(material_string) - return ",\n\n".join(chunks) + return ",\n\n".join(chunks), len(chunks) # ##################################################### # Scene exporter - cameras @@ -1257,10 +1266,12 @@ def generate_lights(data): # ##################################################### def generate_ascii_scene(data): - objects = generate_objects(data) - geometries = generate_geometries(data) - textures = generate_textures_scene(data) - materials = generate_materials_scene(data) + + objects, nobjects = generate_objects(data) + geometries, ngeometries = generate_geometries(data) + textures, ntextures = generate_textures_scene(data) + materials, nmaterials = generate_materials_scene(data) + cameras = generate_cameras(data) lights = generate_lights(data) @@ -1284,10 +1295,21 @@ def generate_ascii_scene(data): parameters = { "fname" : data["source_file"], + "sections" : sections_string, + "bgcolor" : generate_vec3(DEFAULTS["bgcolor"]), "bgalpha" : DEFAULTS["bgalpha"], - "defcamera" : generate_string(default_camera) + "defcamera" : generate_string(default_camera), + + "nobjects" : nobjects, + "ngeometries" : ngeometries, + "ntextures" : ntextures, + "nmaterials" : nmaterials, + + "position" : generate_vec3(DEFAULTS["position"]), + "rotation" : generate_vec3(DEFAULTS["rotation"]), + "scale" : generate_vec3(DEFAULTS["scale"]) } text = TEMPLATE_SCENE_ASCII % parameters diff --git a/utils/exporters/convert_obj_three.py b/utils/exporters/convert_obj_three.py index b5230934..5d09bcaa 100644 --- a/utils/exporters/convert_obj_three.py +++ b/utils/exporters/convert_obj_three.py @@ -196,6 +196,7 @@ var model = { }; postMessage( model ); +close(); """ TEMPLATE_FILE_BIN = u"""\ @@ -219,6 +220,7 @@ var model = { }; postMessage( model ); +close(); """ TEMPLATE_VERTEX = "%f,%f,%f"