THREE.Camera=function(){if(arguments.length)returnconsole.warn("DEPRECATED: Camera() is now PerspectiveCamera() or OrthographicCamera()."),newTHREE.PerspectiveCamera(arguments[0],arguments[1],arguments[2],arguments[3]);THREE.Object3D.call(this);this.matrixWorldInverse=newTHREE.Matrix4;this.projectionMatrix=newTHREE.Matrix4;this.projectionMatrixInverse=newTHREE.Matrix4};THREE.Camera.prototype=newTHREE.Object3D;THREE.Camera.prototype.constructor=THREE.Camera;
THREE.Mesh=function(a,b){THREE.Object3D.call(this);this.geometry=a;this.material=b;if(binstanceofArray)console.warn("DEPRECATED: Mesh material can no longer be an Array. Using material at index 0..."),this.material=b[0];if(this.geometry&&(this.geometry.boundingSphere||this.geometry.computeBoundingSphere(),this.boundRadius=a.boundingSphere.radius,this.geometry.morphTargets.length)){this.morphTargetBase=-1;this.morphTargetForcedOrder=[];this.morphTargetInfluences=[];this.morphTargetDictionary={};
THREE.Mesh.prototype.getMorphTargetIndexByName=function(a){if(void0!==this.morphTargetDictionary[a])returnthis.morphTargetDictionary[a];console.log("THREE.Mesh.getMorphTargetIndexByName: morph target "+a+" does not exist. Returning 0.");return0};THREE.Bone=function(a){THREE.Object3D.call(this);this.skin=a;this.skinMatrix=newTHREE.Matrix4};THREE.Bone.prototype=newTHREE.Object3D;THREE.Bone.prototype.constructor=THREE.Bone;THREE.Bone.prototype.supr=THREE.Object3D.prototype;
c}};THREE.Mesh.prototype=newTHREE.Object3D;THREE.Mesh.prototype.constructor=THREE.Mesh;THREE.Mesh.prototype.supr=THREE.Object3D.prototype;THREE.Mesh.prototype.getMorphTargetIndexByName=function(a){if(void0!==this.morphTargetDictionary[a])returnthis.morphTargetDictionary[a];console.log("THREE.Mesh.getMorphTargetIndexByName: morph target "+a+" does not exist. Returning 0.");return0};THREE.Bone=function(a){THREE.Object3D.call(this);this.skin=a;this.skinMatrix=newTHREE.Matrix4};
THREE.Camera=function(){if(arguments.length)returnconsole.warn("DEPRECATED: Camera() is now PerspectiveCamera() or OrthographicCamera()."),newTHREE.PerspectiveCamera(arguments[0],arguments[1],arguments[2],arguments[3]);THREE.Object3D.call(this);this.matrixWorldInverse=newTHREE.Matrix4;this.projectionMatrix=newTHREE.Matrix4;this.projectionMatrixInverse=newTHREE.Matrix4};THREE.Camera.prototype=newTHREE.Object3D;THREE.Camera.prototype.constructor=THREE.Camera;
THREE.Mesh=function(a,b){THREE.Object3D.call(this);this.geometry=a;this.material=b;if(binstanceofArray)console.warn("DEPRECATED: Mesh material can no longer be an Array. Using material at index 0..."),this.material=b[0];if(this.geometry&&(this.geometry.boundingSphere||this.geometry.computeBoundingSphere(),this.boundRadius=a.boundingSphere.radius,this.geometry.morphTargets.length)){this.morphTargetBase=-1;this.morphTargetForcedOrder=[];this.morphTargetInfluences=[];this.morphTargetDictionary={};
THREE.Mesh.prototype.getMorphTargetIndexByName=function(a){if(void0!==this.morphTargetDictionary[a])returnthis.morphTargetDictionary[a];console.log("THREE.Mesh.getMorphTargetIndexByName: morph target "+a+" does not exist. Returning 0.");return0};THREE.Line=function(a,b,c){THREE.Object3D.call(this);this.geometry=a;this.material=b;this.type=void0!==c?c:THREE.LineStrip;this.geometry&&(this.geometry.boundingSphere||this.geometry.computeBoundingSphere())};THREE.LineStrip=0;THREE.LinePieces=1;
c}};THREE.Mesh.prototype=newTHREE.Object3D;THREE.Mesh.prototype.constructor=THREE.Mesh;THREE.Mesh.prototype.supr=THREE.Object3D.prototype;THREE.Mesh.prototype.getMorphTargetIndexByName=function(a){if(void0!==this.morphTargetDictionary[a])returnthis.morphTargetDictionary[a];console.log("THREE.Mesh.getMorphTargetIndexByName: morph target "+a+" does not exist. Returning 0.");return0};
h.copy(b).addSelf(f);i.copy(c).addSelf(g);f=d.dot(g);g=i.subSelf(h).dot(g);0===f&&(console.log("Either infinite or no solutions!"),0===g?console.log("Its finite solutions."):console.log("Too bad, no solutions."));g/=f;return0>g?(b=Math.atan2(b.y-a.y,b.x-a.x),a=Math.atan2(c.y-a.y,c.x-a.x),b>a&&(a+=2*Math.PI),c=(b+a)/2,a=-Math.cos(c),c=-Math.sin(c),newTHREE.Vector2(a,c)):d.multiplyScalar(g).addSelf(h).subSelf(a).clone()}functionf(a){for(y=a.length;0<=--y;){K=y;B=y-1;0>B&&(B=a.length-1);for(varb=
h.copy(b).addSelf(f);l.copy(c).addSelf(g);f=d.dot(g);g=l.subSelf(h).dot(g);0===f&&(console.log("Either infinite or no solutions!"),0===g?console.log("Its finite solutions."):console.log("Too bad, no solutions."));g/=f;return0>g?(b=Math.atan2(b.y-a.y,b.x-a.x),a=Math.atan2(c.y-a.y,c.x-a.x),b>a&&(a+=2*Math.PI),c=(b+a)/2,a=-Math.cos(c),c=-Math.sin(c),newTHREE.Vector2(a,c)):d.multiplyScalar(g).addSelf(h).subSelf(a).clone()}functionf(a){for(y=a.length;0<=--y;){K=y;B=y-1;0>B&&(B=a.length-1);for(varb=
(function(a){varb=function(a){for(varb=a.length,f=0,g=b-1,e=0;e<b;g=e++)f+=a[g].x*a[e].y-a[e].x*a[g].y;return0.5*f};a.Triangulate=function(a,d){varf=a.length;if(3>f)returnnull;varg=[],e=[],h=[],i,k,j;if(0<b(a))for(k=0;k<f;k++)e[k]=k;elsefor(k=0;k<f;k++)e[k]=f-1-k;varq=2*f;for(k=f-1;2<f;){if(0>=q--){console.log("Warning, unable to triangulate polygon!");break}i=k;f<=i&&(i=0);k=i+1;f<=k&&(k=0);j=k+1;f<=j&&(j=0);varl;a:{l=a;varn=i,r=k,m=j,o=f,p=e,s=void0,t=void0,v=void0,u=void0,w=void0,
p,A)):pinstanceofTHREE.Face4?(v=c(p.a,p.b),w=c(p.b,p.c),F=c(p.c,p.d),J=c(p.d,p.a),b(t,j[v],p.b,j[w],p,D),b(t,j[w],p.c,j[F],p,E),b(t,j[F],p.d,j[J],p,G),b(t,j[J],p.a,j[v],p,I)):console.log("face should be a face!",p);d=i;i=newTHREE.Vector3;j=newTHREE.Vector3;for(n=0,r=h.length;n<r;n++)if(void0!==z[n]){i.set(0,0,0);j.set(0,0,0);p=newTHREE.Vector3(0,0,0);t=0;for(minx[n])i.addSelf(k[m]),t++;v=0;s=z[n].length;for(m=0;m<s;m++)q[c(z[n][m][0],z[n][m][1])]&&v++;if(2!=v){i.divideScalar(t);for(m=0;m<
p,A)):pinstanceofTHREE.Face4?(v=c(p.a,p.b),w=c(p.b,p.c),G=c(p.c,p.d),J=c(p.d,p.a),b(t,j[v],p.b,j[w],p,D),b(t,j[w],p.c,j[G],p,F),b(t,j[G],p.d,j[J],p,E),b(t,j[J],p.a,j[v],p,C)):console.log("face should be a face!",p);d=i;i=newTHREE.Vector3;j=newTHREE.Vector3;for(n=0,r=h.length;n<r;n++)if(void0!==z[n]){i.set(0,0,0);j.set(0,0,0);p=newTHREE.Vector3(0,0,0);t=0;for(minx[n])i.addSelf(k[m]),t++;v=0;s=z[n].length;for(m=0;m<s;m++)q[c(z[n][m][0],z[n][m][1])]&&v++;if(2!=v){i.divideScalar(t);for(m=0;m<
THREE.BinaryLoader.prototype.load=function(a,b,c,d){if(ainstanceofObject)console.warn("DEPRECATED: BinaryLoader( parameters ) is now BinaryLoader( url, callback, texturePath, binaryPath )."),d=a,a=d.model,b=d.callback,c=d.texture_path,d=d.bin_path;varc=c?c:this.extractUrlbase(a),d=d?d:this.extractUrlbase(a),f=this.showProgress?THREE.Loader.prototype.updateProgress:null;this.onLoadStart();this.loadAjaxJSON(this,a,b,c,d,f)};
THREE.BinaryLoader.prototype.loadAjaxJSON=function(a,b,c,d,f,g){vare=newXMLHttpRequest;e.onreadystatechange=function(){if(4==e.readyState)if(200==e.status||0==e.status)try{varh=JSON.parse(e.responseText);void0===h.metadata||void0===h.metadata.formatVersion||3!==h.metadata.formatVersion?console.error("Deprecated file format."):a.loadAjaxBuffers(h,c,f,d,g)}catch(i){console.error(i),console.warn("DEPRECATED: ["+b+"] seems to be using old model format")}elseconsole.error("Couldn't load ["+b+"] ["+
n=x(a,C+20+4);r=x(a,C+20+8);b=x(a,C+20+12);m=x(a,C+20+16);o=x(a,C+20+20);p=x(a,C+20+24);s=x(a,C+20+28);t=x(a,C+20+32);v=x(a,C+20+36);u=x(a,C+20+40);"Three.js 003"!==c&&console.warn("DEPRECATED: binary model seems to be using old format");C+=f;c=3*i+q;B=4*i+q;f=b*c;K=m*(c+3*k);i=o*(c+3*j);q=p*(c+3*k+3*j);c=s*B;k=t*(B+4*k);j=v*(B+4*j);C+=function(b){varb=newFloat32Array(a,b,3*l),c,d,e,f;for(c=0;c<l;c++)d=b[3*c],e=b[3*c+1],f=b[3*c+2],I.vertices.push(newTHREE.Vertex(newTHREE.Vector3(d,e,f)));return3*
!f.skin)console.log("ColladaLoader: Could not find skin controller.");elseif(!b.skeleton||!b.skeleton.length)console.log("ColladaLoader: Could not find the skeleton for the skin. ");else{varc=1E6,g=-c,h=0;for(einW)for(vari=W[e],j=0;j<i.sampler.length;j++){vark=i.sampler[j];k.create();c=Math.min(c,k.startTime);g=Math.max(g,k.endTime);h=Math.max(h,k.input.length)}e=h;for(varb=S.getChildById(b.skeleton[0],!0)||S.getChildBySid(b.skeleton[0],!0),l,m,g=newTHREE.Vector3,n,j=0;j<a.vertices.length;j++)f.skin.bindShapeMatrix.multiplyVector3(a.vertices[j].position);
for(c=0;c<e;c++){h=[];i=[];for(j=0;j<a.vertices.length;j++)i.push(newTHREE.Vertex(newTHREE.Vector3));d(b,h,c);j=h;k=f.skin;for(m=0;m<j.length;m++)if(l=j[m],n=-1,"JOINT"==l.type){for(varq=0;q<k.joints.length;q++)if(l.sid==k.joints[q]){n=q;break}if(0<=n){q=k.invBindMatrices[n];l.invBindMatrix=q;l.skinningMatrix=newTHREE.Matrix4;l.skinningMatrix.multiply(l.world,q);l.weights=[];for(q=0;q<k.weights.length;q++)for(varp=0;p<k.weights[q].length;p++){varo=k.weights[q][p];o.joint==n&&l.weights.push(o)}}elsethrow"ColladaLoader: Could not find joint '"+
for(c=0;c<e;c++){h=[];i=[];for(j=0;j<a.vertices.length;j++)i.push(newTHREE.Vertex(newTHREE.Vector3));d(b,h,c);j=h;k=f.skin;for(m=0;m<j.length;m++)if(l=j[m],n=-1,"JOINT"==l.type){for(varq=0;q<k.joints.length;q++)if(l.sid==k.joints[q]){n=q;break}if(0<=n){q=k.invBindMatrices[n];l.invBindMatrix=q;l.skinningMatrix=newTHREE.Matrix4;l.skinningMatrix.multiply(l.world,q);l.weights=[];for(q=0;q<k.weights.length;q++)for(varo=0;o<k.weights[q].length;o++){varp=k.weights[q][o];p.joint==n&&l.weights.push(p)}}elsethrow"ColladaLoader: Could not find joint '"+
if(1<q){j=newTHREE.MeshFaceMaterial;i.materials=l;for(h=0;h<i.faces.length;h++)l=i.faces[h],l.materialIndex=k[l.daeMaterial]}if(void0!==c)f(i,c),j.morphTargets=!0,j=newTHREE.SkinnedMesh(i,j),j.skeleton=c.skeleton,j.skinController=T[c.url],j.skinInstanceController=c,j.name="skin_"+ba.length,ba.push(j);elseif(void0!==d){h=i;k=dinstanceofn?T[d.url]:d;if(!k||!k.morph)console.log("could not find morph controller!");else{k=k.morph;for(l=0;l<k.targets.length;l++)if(q=U[k.targets[l]],q.mesh&&q.mesh.primitives&&
if(1<q){j=newTHREE.MeshFaceMaterial;i.materials=k;for(h=0;h<i.faces.length;h++)k=i.faces[h],k.materialIndex=l[k.daeMaterial]}if(void0!==c)f(i,c),j.morphTargets=!0,j=newTHREE.SkinnedMesh(i,j),j.skeleton=c.skeleton,j.skinController=T[c.url],j.skinInstanceController=c,j.name="skin_"+ba.length,ba.push(j);elseif(void0!==d){h=i;l=dinstanceofn?T[d.url]:d;if(!l||!l.morph)console.log("could not find morph controller!");else{l=l.morph;for(k=0;k<l.targets.length;k++)if(q=U[l.targets[k]],q.mesh&&q.mesh.primitives&&
newH(p);s=-1;t=0;for(u=d.length;t<u&&-1==s;t++)d[t].time>=p&&(s=t);p=s;d.splice(-1==p?d.length:p,0,r)}r.addTarget(f,j,g,o)}}elseconsole.log('Could not find transform "'+b.sid+'" in node '+this.id)}for(c=0;c<a.length;c++){e=a[c];for(b=0;b<d.length;b++)if(r=d[b],!r.hasTarget(e)){h=d;f=r;j=b;g=e;i=void0;a:{i=j?j-1:0;for(i=0<=i?i:i+h.length;0<=i;i--)if(k=h[i],k.hasTarget(g)){i=k;breaka}i=null}k=void0;a:{for(j+=1;j<h.length;j++)if(k=h[j],k.hasTarget(g))breaka;k=null}if(i&&k){h=(f.time-i.time)/(k.time-
newI(o);s=-1;t=0;for(u=d.length;t<u&&-1==s;t++)d[t].time>=o&&(s=t);o=s;d.splice(-1==o?d.length:o,0,r)}r.addTarget(f,j,g,p)}}elseconsole.log('Could not find transform "'+b.sid+'" in node '+this.id)}for(c=0;c<a.length;c++){e=a[c];for(b=0;b<d.length;b++)if(r=d[b],!r.hasTarget(e)){h=d;f=r;j=b;g=e;i=void0;a:{i=j?j-1:0;for(i=0<=i?i:i+h.length;0<=i;i--)if(k=h[i],k.hasTarget(g)){i=k;breaka}i=null}k=void0;a:{for(j+=1;j<h.length;j++)if(k=h[j],k.hasTarget(g))breaka;k=null}if(i&&k){h=(f.time-i.time)/(k.time-
returnthis};l.prototype.convert=function(){switch(this.type){case"matrix":this.obj=da(this.data);break;case"rotate":this.angle=this.data[3]*ka;case"translate":P(this.data,-1);this.obj=newTHREE.Vector3(this.data[0],this.data[1],this.data[2]);break;case"scale":P(this.data,1);this.obj=newTHREE.Vector3(this.data[0],this.data[1],this.data[2]);break;default:console.log("Can not convert Transform of type "+this.type)}};l.prototype.apply=function(a){switch(this.type){case"matrix":a.multiplySelf(this.obj);
break;case"translate":a.translate(this.obj);break;case"rotate":a.rotateByAxis(this.obj,this.angle);break;case"scale":a.scale(this.obj)}};l.prototype.update=function(a,b){switch(this.type){case"matrix":console.log("Currently not handling matrix transform updates");break;case"translate":case"scale":switch(b){case"X":this.obj.x=a;break;case"Y":this.obj.y=a;break;case"Z":this.obj.z=a;break;default:this.obj.x=a[0],this.obj.y=a[1],this.obj.z=a[2]}break;case"rotate":switch(b){case"X":this.obj.x=
switch(c.nodeName){case"source":vard=c.getAttribute("id");void0==Y[d]&&(Y[d]=(newz(d)).parse(c));break;case"vertices":this.vertices=(newu).parse(c);break;case"triangles":this.primitives.push((newt).parse(c));break;case"polygons":console.warn("polygon holes not yet supported!");case"polylist":this.primitives.push((news).parse(c))}}this.geometry3js=newTHREE.Geometry;a=Y[this.vertices.input.POSITION.source].data;for(b=0;b<a.length;b+=3)this.geometry3js.vertices.push(newTHREE.Vertex(ca(a,
0;for(i=d.length;h<i;h++){e=d[h];e.daeMaterial=a.material;b.faces.push(e);for(e=0;e<q.length;e++)o=p[q[e]],o=4<m?[o[0],o[h+1],o[h+2]]:4===m?[o[0],o[1],o[2],o[3]]:[o[0],o[1],o[2]],b.faceVertexUvs[e]||(b.faceVertexUvs[e]=[]),b.faceVertexUvs[e].push(o)}}elseconsole.log("dropped face with vcount "+m+" for geometry with id: "+b.id);c+=n*m}};s.prototype=newt;s.prototype.constructor=s;t.prototype.setVertices=function(a){for(varb=0;b<this.inputs.length;b++)if(this.inputs[b].source==a.id)this.inputs[b].source=
0;for(i=d.length;h<i;h++){e=d[h];e.daeMaterial=a.material;b.faces.push(e);for(e=0;e<q.length;e++)p=o[q[e]],p=4<m?[p[0],p[h+1],p[h+2]]:4===m?[p[0],p[1],p[2],p[3]]:[p[0],p[1],p[2]],b.faceVertexUvs[e]||(b.faceVertexUvs[e]=[]),b.faceVertexUvs[e].push(p)}}elseconsole.log("dropped face with vcount "+m+" for geometry with id: "+b.id);c+=n*m}};s.prototype=newt;s.prototype.constructor=s;t.prototype.setVertices=function(a){for(varb=0;b<this.inputs.length;b++)if(this.inputs[b].source==a.id)this.inputs[b].source=
this.data.slice(b,b+16),c=da(c);a.push(c)}break;default:console.log("ColladaLoader: Source: Read dont know how to read "+b.type+".")}returna};x.prototype.parse=function(a){this.id=a.getAttribute("id");this.name=a.getAttribute("name");for(varb=0;b<a.childNodes.length;b++)if("instance_effect"==a.childNodes[b].nodeName){this.instance_effect=(newG).parse(a.childNodes[b]);break}returnthis};A.prototype.isColor=function(){returnnull==this.texture};A.prototype.isTexture=function(){returnnull!=this.texture};
this.data.slice(b,b+16),c=da(c);a.push(c)}break;default:console.log("ColladaLoader: Source: Read dont know how to read "+b.type+".")}returna};x.prototype.parse=function(a){this.id=a.getAttribute("id");this.name=a.getAttribute("name");for(varb=0;b<a.childNodes.length;b++)if("instance_effect"==a.childNodes[b].nodeName){this.instance_effect=(newE).parse(a.childNodes[b]);break}returnthis};A.prototype.isColor=function(){returnnull==this.texture};A.prototype.isTexture=function(){returnnull!=this.texture};
this.targets[c],e=a.getTarget(d.sid);if(e){varf=(b-this.time)/(a.time-this.time),g=e.data,h=d.data;if(0>f||1<f)console.log("Key.interpolate: Warning! Scale out of bounds:"+f),f=0>f?0:1;if(h.length)for(vare=[],i=0;i<h.length;++i)e[i]=h[i]+(g[i]-h[i])*f;elsee=h+(g-h)*f}elsee=d.data;d.transform.update(e,d.member)}};K.prototype.parse=function(a){this.id=a.getAttribute("id");this.name=a.getAttribute("name");for(varb=0;b<a.childNodes.length;b++){varc=a.childNodes[b];if(1==c.nodeType)switch(c.nodeName){case"optics":this.parseOptics(c)}}returnthis};
function(a){this.url=a.getAttribute("url").replace(/^#/,"");returnthis};return{load:function(b,c,d){vare=0;if(document.implementation&&document.implementation.createDocument){varf=newXMLHttpRequest;f.overrideMimeType&&f.overrideMimeType("text/xml");f.onreadystatechange=function(){if(4==f.readyState){if(0==f.status||200==f.status)f.responseXML?(la=c,a(f.responseXML,void0,b)):console.error("ColladaLoader: Empty or non-existing file ("+b+")")}else3==f.readyState&&d&&(0==e&&(e=f.getResponseHeader("Content-Length")),
d({total:e,loaded:f.responseText.length}))};f.open("GET",b,!0);f.send(null)}elsealert("Don't know how to parse XML!")},parse:a,setPreferredShading:function(a){na=a},applySkin:f,geometries:U,options:R}};THREE.JSONLoader=function(a){THREE.Loader.call(this,a)};THREE.JSONLoader.prototype=newTHREE.Loader;THREE.JSONLoader.prototype.constructor=THREE.JSONLoader;THREE.JSONLoader.prototype.supr=THREE.Loader.prototype;
THREE.JSONLoader.prototype.loadAjaxJSON=function(a,b,c,d,f){varg=newXMLHttpRequest,e=0;g.onreadystatechange=function(){if(g.readyState===g.DONE)if(200===g.status||0===g.status){varh;try{g.responseText?h=JSON.parse(g.responseText):console.warn("EMPTY: ["+b+"] seems to be unreachable or file there is empty")}catch(i){console.warn("DEPRECATED: ["+b+"] seems to be using old model format or JSON is invalid")}h&&a.createModel(h,c,d);a.onLoadComplete()}elseconsole.error("Couldn't load ["+b+"] ["+g.status+
THREE.SceneLoader.prototype.load=function(a,b){varc=this,d=newXMLHttpRequest;d.onreadystatechange=function(){if(4==d.readyState)if(200==d.status||0==d.status){try{varf=JSON.parse(d.responseText)}catch(g){console.warn("DEPRECATED: ["+a+"] seems to be using old model format")}c.createScene(f,b,a)}elseconsole.error("Couldn't load ["+a+"] ["+d.status+"]")};d.open("GET",a,!0);d.overrideMimeType&&d.overrideMimeType("text/plain; charset=x-user-defined");d.setRequestHeader("Content-Type","text/plain");
THREE.JSONLoader.prototype.loadAjaxJSON=function(a,b,c,d,f){varg=newXMLHttpRequest,e=0;g.onreadystatechange=function(){if(g.readyState===g.DONE)if(200===g.status||0===g.status){if(g.responseText){varh=JSON.parse(g.responseText);a.createModel(h,c,d)}elseconsole.warn("THREE.JSONLoader: ["+b+"] seems to be unreachable or file there is empty");a.onLoadComplete()}elseconsole.error("THREE.JSONLoader: Couldn't load ["+b+"] ["+g.status+"]");elseg.readyState===g.LOADING?f&&(0===e&&(e=g.getResponseHeader("Content-Length")),
THREE.Camera=function(){if(arguments.length)returnconsole.warn("DEPRECATED: Camera() is now PerspectiveCamera() or OrthographicCamera()."),newTHREE.PerspectiveCamera(arguments[0],arguments[1],arguments[2],arguments[3]);THREE.Object3D.call(this);this.matrixWorldInverse=newTHREE.Matrix4;this.projectionMatrix=newTHREE.Matrix4;this.projectionMatrixInverse=newTHREE.Matrix4};THREE.Camera.prototype=newTHREE.Object3D;THREE.Camera.prototype.constructor=THREE.Camera;
THREE.Mesh=function(a,b){THREE.Object3D.call(this);this.geometry=a;this.material=b;if(binstanceofArray)console.warn("DEPRECATED: Mesh material can no longer be an Array. Using material at index 0..."),this.material=b[0];if(this.geometry&&(this.geometry.boundingSphere||this.geometry.computeBoundingSphere(),this.boundRadius=a.boundingSphere.radius,this.geometry.morphTargets.length)){this.morphTargetBase=-1;this.morphTargetForcedOrder=[];this.morphTargetInfluences=[];this.morphTargetDictionary={};
THREE.Mesh.prototype.getMorphTargetIndexByName=function(a){if(void0!==this.morphTargetDictionary[a])returnthis.morphTargetDictionary[a];console.log("THREE.Mesh.getMorphTargetIndexByName: morph target "+a+" does not exist. Returning 0.");return0};THREE.Bone=function(a){THREE.Object3D.call(this);this.skin=a;this.skinMatrix=newTHREE.Matrix4};THREE.Bone.prototype=newTHREE.Object3D;THREE.Bone.prototype.constructor=THREE.Bone;THREE.Bone.prototype.supr=THREE.Object3D.prototype;
c}};THREE.Mesh.prototype=newTHREE.Object3D;THREE.Mesh.prototype.constructor=THREE.Mesh;THREE.Mesh.prototype.supr=THREE.Object3D.prototype;THREE.Mesh.prototype.getMorphTargetIndexByName=function(a){if(void0!==this.morphTargetDictionary[a])returnthis.morphTargetDictionary[a];console.log("THREE.Mesh.getMorphTargetIndexByName: morph target "+a+" does not exist. Returning 0.");return0};THREE.Bone=function(a){THREE.Object3D.call(this);this.skin=a;this.skinMatrix=newTHREE.Matrix4};
i}};THREE.Edge=function(a,b,c,d){this.vertices=[a,b];this.vertexIndices=[c,d];this.faces=[];this.faceIndices=[]};THREE.Camera=function(){if(arguments.length)returnconsole.warn("DEPRECATED: Camera() is now PerspectiveCamera() or OrthographicCamera()."),newTHREE.PerspectiveCamera(arguments[0],arguments[1],arguments[2],arguments[3]);THREE.Object3D.call(this);this.matrixWorldInverse=newTHREE.Matrix4;this.projectionMatrix=newTHREE.Matrix4;this.projectionMatrixInverse=newTHREE.Matrix4};
THREE.Mesh=function(a,b){THREE.Object3D.call(this);this.geometry=a;this.material=b;if(binstanceofArray)console.warn("DEPRECATED: Mesh material can no longer be an Array. Using material at index 0..."),this.material=b[0];if(this.geometry&&(this.geometry.boundingSphere||this.geometry.computeBoundingSphere(),this.boundRadius=a.boundingSphere.radius,this.geometry.morphTargets.length)){this.morphTargetBase=-1;this.morphTargetForcedOrder=[];this.morphTargetInfluences=[];this.morphTargetDictionary={};
THREE.Mesh.prototype.getMorphTargetIndexByName=function(a){if(void0!==this.morphTargetDictionary[a])returnthis.morphTargetDictionary[a];console.log("THREE.Mesh.getMorphTargetIndexByName: morph target "+a+" does not exist. Returning 0.");return0};THREE.Bone=function(a){THREE.Object3D.call(this);this.skin=a;this.skinMatrix=newTHREE.Matrix4};THREE.Bone.prototype=newTHREE.Object3D;THREE.Bone.prototype.constructor=THREE.Bone;THREE.Bone.prototype.supr=THREE.Object3D.prototype;
c}};THREE.Mesh.prototype=newTHREE.Object3D;THREE.Mesh.prototype.constructor=THREE.Mesh;THREE.Mesh.prototype.supr=THREE.Object3D.prototype;THREE.Mesh.prototype.getMorphTargetIndexByName=function(a){if(void0!==this.morphTargetDictionary[a])returnthis.morphTargetDictionary[a];console.log("THREE.Mesh.getMorphTargetIndexByName: morph target "+a+" does not exist. Returning 0.");return0};THREE.Bone=function(a){THREE.Object3D.call(this);this.skin=a;this.skinMatrix=newTHREE.Matrix4};
0,e.__webglVertexCount),C.info.render.calls++)}};this.render=function(a,b,c,d){vare,g,j,l,n=a.lights,p=a.fog;sa=-1;this.autoUpdateObjects&&this.initWebGLObjects(a);void0===b.parent&&(console.warn("DEPRECATED: Camera hasn't been added to a Scene. Adding it..."),a.add(b));this.autoUpdateScene&&a.updateMatrixWorld();i(this.renderPluginsPre,a,b);C.info.render.calls=0;C.info.render.vertices=0;C.info.render.faces=0;C.info.render.points=0;b.matrixWorldInverse.getInverse(b.matrixWorld);if(!b._viewMatrixArray)b._viewMatrixArray=
0,e.__webglVertexCount),C.info.render.calls++)}};this.render=function(a,b,c,d){vare,g,j,l,n=a.__lights,p=a.fog;sa=-1;this.autoUpdateObjects&&this.initWebGLObjects(a);void0===b.parent&&(console.warn("DEPRECATED: Camera hasn't been added to a Scene. Adding it..."),a.add(b));this.autoUpdateScene&&a.updateMatrixWorld();i(this.renderPluginsPre,a,b);C.info.render.calls=0;C.info.render.vertices=0;C.info.render.faces=0;C.info.render.points=0;b.matrixWorldInverse.getInverse(b.matrixWorld);if(!b._viewMatrixArray)b._viewMatrixArray=