this)console.warn("THREE: Object3D.add(): An object can't be added as a child of itself.");elseif(-1===this.children.indexOf(a)){void0!==a.parent&&a.parent.remove(a);a.parent=this;this.children.push(a);for(varb=this;void0!==b.parent;)b=b.parent;void0!==b&&binstanceofTHREE.Scene&&b.addObject(a)}},remove:function(a){varb=this.children.indexOf(a);if(-1!==b){a.parent=void0;this.children.splice(b,1);for(b=this;void0!==b.parent;)b=b.parent;void0!==b&&binstanceofTHREE.Scene&&b.removeObject(a)}},
this)console.warn("THREE: Object3D.add(): An object can't be added as a child of itself.");elseif(-1===this.children.indexOf(a)){void0!==a.parent&&a.parent.remove(a);a.parent=this;this.children.push(a);for(varb=this;void0!==b.parent;)b=b.parent;void0!==b&&binstanceofTHREE.Scene&&b.addObject(a)}},remove:function(a){varb=this.children.indexOf(a);if(-1!==b){a.parent=void0;this.children.splice(b,1);for(b=this;void0!==b.parent;)b=b.parent;void0!==b&&binstanceofTHREE.Scene&&b.removeObject(a)}},
b,e.z=G.z,t.objects.push(e)):binstanceofTHREE.Sprite||binstanceofTHREE.Particle?(F.multiplyVector3(G.copy(b.position)),e=a(),e.object=b,e.z=G.z,t.sprites.push(e)):binstanceofTHREE.Light&&t.lights.push(b);for(varc=0,d=b.children.length;c<d;c++)g(b.children[c])}};g(b);d&&t.objects.sort(c);returnt};this.projectScene=function(a,e,f){varg=e.near,G=e.far,P=!1,T,D,I,Q,A,N,L,U,r,y,w,B,K,ka,ea;H=q=k=o=0;t.elements.length=0;void0===e.parent&&(console.warn("DEPRECATED: Camera hasn't been added to a Scene. Adding it..."),
b,e.z=H.z,v.objects.push(e)):binstanceofTHREE.Sprite||binstanceofTHREE.Particle?(F.multiplyVector3(H.copy(b.position)),e=a(),e.object=b,e.z=H.z,v.sprites.push(e)):binstanceofTHREE.Light&&v.lights.push(b);for(varc=0,d=b.children.length;c<d;c++)g(b.children[c])}};g(b);d&&v.objects.sort(c);returnv};this.projectScene=function(a,e,f){varg=e.near,H=e.far,Q=!1,U,E,J,R,B,O,M,V,t,y,x,C,L,la,fa;G=r=n=o=0;v.elements.length=0;void0===e.parent&&(console.warn("DEPRECATED: Camera hasn't been added to a Scene. Adding it..."),
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.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=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={};
this)console.warn("THREE: Object3D.add(): An object can't be added as a child of itself.");elseif(-1===this.children.indexOf(a)){void0!==a.parent&&a.parent.remove(a);a.parent=this;this.children.push(a);for(varb=this;void0!==b.parent;)b=b.parent;void0!==b&&binstanceofTHREE.Scene&&b.addObject(a)}},remove:function(a){varb=this.children.indexOf(a);if(-1!==b){a.parent=void0;this.children.splice(b,1);for(b=this;void0!==b.parent;)b=b.parent;void0!==b&&binstanceofTHREE.Scene&&b.removeObject(a)}},
this)console.warn("THREE: Object3D.add(): An object can't be added as a child of itself.");elseif(-1===this.children.indexOf(a)){void0!==a.parent&&a.parent.remove(a);a.parent=this;this.children.push(a);for(varb=this;void0!==b.parent;)b=b.parent;void0!==b&&binstanceofTHREE.Scene&&b.addObject(a)}},remove:function(a){varb=this.children.indexOf(a);if(-1!==b){a.parent=void0;this.children.splice(b,1);for(b=this;void0!==b.parent;)b=b.parent;void0!==b&&binstanceofTHREE.Scene&&b.removeObject(a)}},
b,e.z=A.z,t.objects.push(e)):binstanceofTHREE.Sprite||binstanceofTHREE.Particle?(y.multiplyVector3(A.copy(b.position)),e=a(),e.object=b,e.z=A.z,t.sprites.push(e)):binstanceofTHREE.Light&&t.lights.push(b);for(varc=0,d=b.children.length;c<d;c++)g(b.children[c])}};g(b);d&&t.objects.sort(c);returnt};this.projectScene=function(a,e,f){varg=e.near,A=e.far,N=!1,U,L,B,G,u,C,z,E,x,K,M,X,V,W,O;v=p=m=l=0;t.elements.length=0;void0===e.parent&&(console.warn("DEPRECATED: Camera hasn't been added to a Scene. Adding it..."),
b,e.z=B.z,s.objects.push(e)):binstanceofTHREE.Sprite||binstanceofTHREE.Particle?(z.multiplyVector3(B.copy(b.position)),e=a(),e.object=b,e.z=B.z,s.sprites.push(e)):binstanceofTHREE.Light&&s.lights.push(b);for(varc=0,d=b.children.length;c<d;c++)g(b.children[c])}};g(b);d&&s.objects.sort(c);returns};this.projectScene=function(a,e,f){varg=e.near,B=e.far,N=!1,U,L,v,H,t,C,A,F,x,K,M,X,V,W,O;y=p=m=k=0;s.elements.length=0;void0===e.parent&&(console.warn("DEPRECATED: Camera hasn't been added to a Scene. Adding it..."),
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=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={};
this)console.warn("THREE: Object3D.add(): An object can't be added as a child of itself.");elseif(-1===this.children.indexOf(a)){void0!==a.parent&&a.parent.remove(a);a.parent=this;this.children.push(a);for(varb=this;void0!==b.parent;)b=b.parent;void0!==b&&binstanceofTHREE.Scene&&b.addObject(a)}},remove:function(a){varb=this.children.indexOf(a);if(-1!==b){a.parent=void0;this.children.splice(b,1);for(b=this;void0!==b.parent;)b=b.parent;void0!==b&&binstanceofTHREE.Scene&&b.removeObject(a)}},
this)console.warn("THREE: Object3D.add(): An object can't be added as a child of itself.");elseif(-1===this.children.indexOf(a)){void0!==a.parent&&a.parent.remove(a);a.parent=this;this.children.push(a);for(varb=this;void0!==b.parent;)b=b.parent;void0!==b&&binstanceofTHREE.Scene&&b.addObject(a)}},remove:function(a){varb=this.children.indexOf(a);if(-1!==b){a.parent=void0;this.children.splice(b,1);for(b=this;void0!==b.parent;)b=b.parent;void0!==b&&binstanceofTHREE.Scene&&b.removeObject(a)}},
b,e.z=B.z,v.objects.push(e)):binstanceofTHREE.Sprite||binstanceofTHREE.Particle?(z.multiplyVector3(B.copy(b.position)),e=a(),e.object=b,e.z=B.z,v.sprites.push(e)):binstanceofTHREE.Light&&v.lights.push(b);for(varc=0,d=b.children.length;c<d;c++)g(b.children[c])}};g(b);d&&v.objects.sort(c);returnv};this.projectScene=function(a,e,f){varg=e.near,B=e.far,R=!1,U,s,r,J,w,G,H,K,F,N,P,X,V,W,S;D=q=k=m=0;v.elements.length=0;void0===e.parent&&(console.warn("DEPRECATED: Camera hasn't been added to a Scene. Adding it..."),
b,e.z=B.z,u.objects.push(e)):binstanceofTHREE.Sprite||binstanceofTHREE.Particle?(z.multiplyVector3(B.copy(b.position)),e=a(),e.object=b,e.z=B.z,u.sprites.push(e)):binstanceofTHREE.Light&&u.lights.push(b);for(varc=0,d=b.children.length;c<d;c++)g(b.children[c])}};g(b);d&&u.objects.sort(c);returnu};this.projectScene=function(a,e,f){varg=e.near,B=e.far,R=!1,U,s,r,J,w,H,I,K,G,N,P,X,V,W,S;D=q=l=m=0;u.elements.length=0;void0===e.parent&&(console.warn("DEPRECATED: Camera hasn't been added to a Scene. Adding it..."),
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=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={};
m,o.positionScreen.y*=-n,u.addPoint(k.positionScreen.x,k.positionScreen.y),u.addPoint(p.positionScreen.x,p.positionScreen.y),u.addPoint(o.positionScreen.x,o.positionScreen.y),y.intersects(u)){varJ=k,w=p,G=o;d.info.render.vertices+=3;d.info.render.faces++;A=b(L++);A.setAttribute("d","M "+J.positionScreen.x+""+J.positionScreen.y+" L "+w.positionScreen.x+""+w.positionScreen.y+" L "+G.positionScreen.x+","+G.positionScreen.y+"z");rinstanceofTHREE.MeshBasicMaterial?t.copy(r.color):rinstanceofTHREE.MeshLambertMaterial?
m,o.positionScreen.y*=-n,v.addPoint(l.positionScreen.x,l.positionScreen.y),v.addPoint(p.positionScreen.x,p.positionScreen.y),v.addPoint(o.positionScreen.x,o.positionScreen.y),y.intersects(v)){varJ=l,w=p,H=o;d.info.render.vertices+=3;d.info.render.faces++;A=b(L++);A.setAttribute("d","M "+J.positionScreen.x+""+J.positionScreen.y+" L "+w.positionScreen.x+""+w.positionScreen.y+" L "+H.positionScreen.x+","+H.positionScreen.y+"z");rinstanceofTHREE.MeshBasicMaterial?t.copy(r.color):rinstanceofTHREE.MeshLambertMaterial?
k.positionScreen.y),u.addPoint(p.positionScreen.x,p.positionScreen.y),u.addPoint(o.positionScreen.x,o.positionScreen.y),u.addPoint(q.positionScreen.x,q.positionScreen.y),y.intersects(u))){varJ=k,w=p,G=o,H=q;d.info.render.vertices+=4;d.info.render.faces++;A=b(L++);A.setAttribute("d","M "+J.positionScreen.x+""+J.positionScreen.y+" L "+w.positionScreen.x+""+w.positionScreen.y+" L "+G.positionScreen.x+","+G.positionScreen.y+" L "+H.positionScreen.x+","+H.positionScreen.y+"z");rinstanceofTHREE.MeshBasicMaterial?
l.positionScreen.y),v.addPoint(p.positionScreen.x,p.positionScreen.y),v.addPoint(o.positionScreen.x,o.positionScreen.y),v.addPoint(q.positionScreen.x,q.positionScreen.y),y.intersects(v))){varJ=l,w=p,H=o,I=q;d.info.render.vertices+=4;d.info.render.faces++;A=b(L++);A.setAttribute("d","M "+J.positionScreen.x+""+J.positionScreen.y+" L "+w.positionScreen.x+""+w.positionScreen.y+" L "+H.positionScreen.x+","+H.positionScreen.y+" L "+I.positionScreen.x+","+I.positionScreen.y+"z");rinstanceofTHREE.MeshBasicMaterial?