浏览代码

update to latest dev

ide user ide_gero3 13 年之前
父节点
当前提交
9f94fcbba8
共有 100 个文件被更改,包括 7271 次插入726 次删除
  1. 1 1
      LICENSE
  2. 1 1
      README.md
  3. 222 0
      build/Three.js
  4. 181 0
      build/custom/ThreeCanvas.js
  5. 129 0
      build/custom/ThreeDOM.js
  6. 40 0
      build/custom/ThreeExtras.js
  7. 166 0
      build/custom/ThreeSVG.js
  8. 171 0
      build/custom/ThreeWebGL.js
  9. 2 2
      examples/canvas_camera_orthographic.html
  10. 13 2
      examples/canvas_camera_orthographic2.html
  11. 2 2
      examples/canvas_geometry_birds.html
  12. 2 2
      examples/canvas_geometry_panorama_fisheye.html
  13. 1 1
      examples/canvas_geometry_terrain.html
  14. 5 5
      examples/canvas_interactive_voxelpainter.html
  15. 1 1
      examples/canvas_lines.html
  16. 7 7
      examples/canvas_lines_sphere.html
  17. 2 2
      examples/canvas_materials.html
  18. 2 2
      examples/canvas_performance.html
  19. 2 2
      examples/canvas_sandbox.html
  20. 316 0
      examples/js/CurveExtras.js
  21. 7 4
      examples/js/ShaderExtras.js
  22. 286 0
      examples/js/ShaderGodRays.js
  23. 1 1
      examples/js/ctm/CTMLoader.js
  24. 6 6
      examples/misc_camera_fly.html
  25. 6 6
      examples/misc_ubiquity_test.html
  26. 0 0
      examples/models/collada/monster/monster.dae
  27. 0 0
      examples/models/collada/monster/monster.jpg
  28. 1 0
      examples/models/collada/monster/readme.txt
  29. 324 0
      examples/models/collada/pump/pump.dae
  30. 二进制
      examples/models/collada/pump/pump_body.jpg
  31. 二进制
      examples/models/collada/pump/pump_gears.jpg
  32. 二进制
      examples/models/collada/pump/pump_metalreflect.jpg
  33. 0 0
      examples/models/ctm/LeePerry.ctm
  34. 0 0
      examples/models/ctm/WaltHead.ctm
  35. 0 0
      examples/models/ctm/ben.ctm
  36. 0 0
      examples/models/ctm/camaro/camaro.ctm
  37. 0 0
      examples/models/ctm/camaro/camaro.js
  38. 0 0
      examples/models/ctm/camaro/car-ao.png
  39. 0 0
      examples/models/ctm/camaro/plane-ao-256.png
  40. 0 0
      examples/models/ctm/hand.ctm
  41. 0 1
      examples/models/readme.txt
  42. 0 0
      examples/models/utf8/ben.utf8
  43. 0 0
      examples/models/utf8/hand.utf8
  44. 1 1
      examples/obj/Bird.js
  45. 1 1
      examples/obj/Qrcode.js
  46. 7 0
      examples/obj/tree/.htaccess
  47. 23 0
      examples/obj/tree/tree.js
  48. 4311 0
      examples/obj/tree/tree.obj
  49. 1 2
      examples/webgl_camera.html
  50. 4 4
      examples/webgl_custom_attributes_particles.html
  51. 2 2
      examples/webgl_custom_attributes_particles2.html
  52. 6 6
      examples/webgl_custom_attributes_particles3.html
  53. 1 1
      examples/webgl_geometry_colors.html
  54. 2 2
      examples/webgl_geometry_dynamic.html
  55. 21 30
      examples/webgl_geometry_extrude_shapes.html
  56. 29 343
      examples/webgl_geometry_extrude_splines.html
  57. 5 15
      examples/webgl_geometry_shapes.html
  58. 9 5
      examples/webgl_geometry_subdivison.html
  59. 1 1
      examples/webgl_geometry_terrain.html
  60. 1 1
      examples/webgl_geometry_terrain_fog.html
  61. 3 3
      examples/webgl_geometry_text.html
  62. 4 4
      examples/webgl_kinect.html
  63. 1 1
      examples/webgl_lines_colors.html
  64. 1 1
      examples/webgl_lines_cubes.html
  65. 8 8
      examples/webgl_lines_sphere.html
  66. 1 1
      examples/webgl_lines_splines.html
  67. 5 5
      examples/webgl_loader_collada.html
  68. 228 0
      examples/webgl_loader_collada_keyframe.html
  69. 3 3
      examples/webgl_loader_ctm.html
  70. 1 1
      examples/webgl_loader_ctm_materials.html
  71. 1 1
      examples/webgl_loader_json_blender.html
  72. 17 5
      examples/webgl_loader_utf8.html
  73. 4 4
      examples/webgl_materials.html
  74. 42 44
      examples/webgl_materials_cubemap_dynamic.html
  75. 1 0
      examples/webgl_materials_cubemap_dynamic2.html
  76. 4 4
      examples/webgl_morphtargets.html
  77. 1 1
      examples/webgl_multiple_canvases_circle.html
  78. 1 1
      examples/webgl_multiple_canvases_complex.html
  79. 1 1
      examples/webgl_multiple_canvases_grid.html
  80. 1 1
      examples/webgl_multiple_views.html
  81. 6 6
      examples/webgl_particles_billboards.html
  82. 7 7
      examples/webgl_particles_billboards_colors.html
  83. 3 3
      examples/webgl_particles_dynamic.html
  84. 7 3
      examples/webgl_particles_random.html
  85. 15 15
      examples/webgl_particles_shapes.html
  86. 6 2
      examples/webgl_particles_sprites.html
  87. 422 0
      examples/webgl_postprocessing_godrays.html
  88. 5 8
      examples/webgl_ribbons.html
  89. 18 13
      examples/webgl_shading_physical.html
  90. 5 7
      examples/webgl_trackballcamera_earth.html
  91. 3 3
      examples/webgl_trails.html
  92. 0 1
      gui/js/UI.Viewport.js
  93. 33 24
      src/Three.js
  94. 17 17
      src/core/Geometry.js
  95. 1 1
      src/core/Object3D.js
  96. 3 3
      src/core/Projector.js
  97. 8 8
      src/core/Ray.js
  98. 1 17
      src/core/Vertex.js
  99. 31 31
      src/extras/GeometryUtils.js
  100. 30 6
      src/extras/cameras/CombinedCamera.js

+ 1 - 1
LICENSE

@@ -1,6 +1,6 @@
 The MIT License
 
-Copyright (c) 2010-2012 three.js Authors. All rights reserved.
+Copyright (c) 2010-2012 Three.js authors.
 
 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal

+ 1 - 1
README.md

@@ -142,7 +142,7 @@ This code creates a camera, then creates a scene, adds a cube on it, creates a &
 </script>
 ```
 
-### Change Log ###
+### Change log ###
 
 2012 03 04 - **r48** (393,626 KB, gzip: 99,395 KB)
 

文件差异内容过多而无法显示
+ 222 - 0
build/Three.js


+ 181 - 0
build/custom/ThreeCanvas.js

@@ -1,3 +1,4 @@
+<<<<<<< HEAD
 /**
  * @author mr.doob / http://mrdoob.com/
  */
@@ -6953,3 +6954,183 @@ THREE.RenderableLine = function () {
 	this.material = null;
 
 };
+=======
+// ThreeCanvas.js - http://github.com/mrdoob/three.js
+'use strict';var THREE=THREE||{REVISION:"49dev"};self.Int32Array||(self.Int32Array=Array,self.Float32Array=Array);
+(function(){for(var a=0,b=["ms","moz","webkit","o"],c=0;c<b.length&&!window.requestAnimationFrame;++c){window.requestAnimationFrame=window[b[c]+"RequestAnimationFrame"];window.cancelAnimationFrame=window[b[c]+"CancelAnimationFrame"]||window[b[c]+"CancelRequestAnimationFrame"]}if(!window.requestAnimationFrame)window.requestAnimationFrame=function(b){var c=Date.now(),f=Math.max(0,16-(c-a)),g=window.setTimeout(function(){b(c+f)},f);a=c+f;return g};if(!window.cancelAnimationFrame)window.cancelAnimationFrame=
+function(a){clearTimeout(a)}})();THREE.Color=function(a){a!==void 0&&this.setHex(a);return this};
+THREE.Color.prototype={constructor:THREE.Color,r:1,g:1,b:1,copy:function(a){this.r=a.r;this.g=a.g;this.b=a.b;return this},copyGammaToLinear:function(a){this.r=a.r*a.r;this.g=a.g*a.g;this.b=a.b*a.b;return this},copyLinearToGamma:function(a){this.r=Math.sqrt(a.r);this.g=Math.sqrt(a.g);this.b=Math.sqrt(a.b);return this},convertGammaToLinear:function(){var a=this.r,b=this.g,c=this.b;this.r=a*a;this.g=b*b;this.b=c*c;return this},convertLinearToGamma:function(){this.r=Math.sqrt(this.r);this.g=Math.sqrt(this.g);
+this.b=Math.sqrt(this.b);return this},setRGB:function(a,b,c){this.r=a;this.g=b;this.b=c;return this},setHSV:function(a,b,c){var d,e,f;if(c===0)this.r=this.g=this.b=0;else{d=Math.floor(a*6);e=a*6-d;a=c*(1-b);f=c*(1-b*e);b=c*(1-b*(1-e));switch(d){case 1:this.r=f;this.g=c;this.b=a;break;case 2:this.r=a;this.g=c;this.b=b;break;case 3:this.r=a;this.g=f;this.b=c;break;case 4:this.r=b;this.g=a;this.b=c;break;case 5:this.r=c;this.g=a;this.b=f;break;case 6:case 0:this.r=c;this.g=b;this.b=a}}return this},setHex:function(a){a=
+Math.floor(a);this.r=(a>>16&255)/255;this.g=(a>>8&255)/255;this.b=(a&255)/255;return this},lerpSelf:function(a,b){this.r=this.r+(a.r-this.r)*b;this.g=this.g+(a.g-this.g)*b;this.b=this.b+(a.b-this.b)*b;return this},getHex:function(){return Math.floor(this.r*255)<<16^Math.floor(this.g*255)<<8^Math.floor(this.b*255)},getContextStyle:function(){return"rgb("+Math.floor(this.r*255)+","+Math.floor(this.g*255)+","+Math.floor(this.b*255)+")"},clone:function(){return(new THREE.Color).setRGB(this.r,this.g,this.b)}};
+THREE.Vector2=function(a,b){this.x=a||0;this.y=b||0};
+THREE.Vector2.prototype={constructor:THREE.Vector2,set:function(a,b){this.x=a;this.y=b;return this},copy:function(a){this.x=a.x;this.y=a.y;return this},add:function(a,b){this.x=a.x+b.x;this.y=a.y+b.y;return this},addSelf:function(a){this.x=this.x+a.x;this.y=this.y+a.y;return this},sub:function(a,b){this.x=a.x-b.x;this.y=a.y-b.y;return this},subSelf:function(a){this.x=this.x-a.x;this.y=this.y-a.y;return this},multiplyScalar:function(a){this.x=this.x*a;this.y=this.y*a;return this},divideScalar:function(a){if(a){this.x=
+this.x/a;this.y=this.y/a}else this.set(0,0);return this},negate:function(){return this.multiplyScalar(-1)},dot:function(a){return this.x*a.x+this.y*a.y},lengthSq:function(){return this.x*this.x+this.y*this.y},length:function(){return Math.sqrt(this.lengthSq())},normalize:function(){return this.divideScalar(this.length())},distanceTo:function(a){return Math.sqrt(this.distanceToSquared(a))},distanceToSquared:function(a){var b=this.x-a.x,a=this.y-a.y;return b*b+a*a},setLength:function(a){return this.normalize().multiplyScalar(a)},
+lerpSelf:function(a,b){this.x=this.x+(a.x-this.x)*b;this.y=this.y+(a.y-this.y)*b;return this},equals:function(a){return a.x===this.x&&a.y===this.y},isZero:function(){return this.lengthSq()<1.0E-4},clone:function(){return new THREE.Vector2(this.x,this.y)}};THREE.Vector3=function(a,b,c){this.x=a||0;this.y=b||0;this.z=c||0};
+THREE.Vector3.prototype={constructor:THREE.Vector3,set:function(a,b,c){this.x=a;this.y=b;this.z=c;return this},setX:function(a){this.x=a;return this},setY:function(a){this.y=a;return this},setZ:function(a){this.z=a;return this},copy:function(a){this.x=a.x;this.y=a.y;this.z=a.z;return this},add:function(a,b){this.x=a.x+b.x;this.y=a.y+b.y;this.z=a.z+b.z;return this},addSelf:function(a){this.x=this.x+a.x;this.y=this.y+a.y;this.z=this.z+a.z;return this},addScalar:function(a){this.x=this.x+a;this.y=this.y+
+a;this.z=this.z+a;return this},sub:function(a,b){this.x=a.x-b.x;this.y=a.y-b.y;this.z=a.z-b.z;return this},subSelf:function(a){this.x=this.x-a.x;this.y=this.y-a.y;this.z=this.z-a.z;return this},multiply:function(a,b){this.x=a.x*b.x;this.y=a.y*b.y;this.z=a.z*b.z;return this},multiplySelf:function(a){this.x=this.x*a.x;this.y=this.y*a.y;this.z=this.z*a.z;return this},multiplyScalar:function(a){this.x=this.x*a;this.y=this.y*a;this.z=this.z*a;return this},divideSelf:function(a){this.x=this.x/a.x;this.y=
+this.y/a.y;this.z=this.z/a.z;return this},divideScalar:function(a){if(a){this.x=this.x/a;this.y=this.y/a;this.z=this.z/a}else this.z=this.y=this.x=0;return this},negate:function(){return this.multiplyScalar(-1)},dot:function(a){return this.x*a.x+this.y*a.y+this.z*a.z},lengthSq:function(){return this.x*this.x+this.y*this.y+this.z*this.z},length:function(){return Math.sqrt(this.lengthSq())},lengthManhattan:function(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)},normalize:function(){return this.divideScalar(this.length())},
+setLength:function(a){return this.normalize().multiplyScalar(a)},lerpSelf:function(a,b){this.x=this.x+(a.x-this.x)*b;this.y=this.y+(a.y-this.y)*b;this.z=this.z+(a.z-this.z)*b;return this},cross:function(a,b){this.x=a.y*b.z-a.z*b.y;this.y=a.z*b.x-a.x*b.z;this.z=a.x*b.y-a.y*b.x;return this},crossSelf:function(a){var b=this.x,c=this.y,d=this.z;this.x=c*a.z-d*a.y;this.y=d*a.x-b*a.z;this.z=b*a.y-c*a.x;return this},distanceTo:function(a){return Math.sqrt(this.distanceToSquared(a))},distanceToSquared:function(a){return(new THREE.Vector3).sub(this,
+a).lengthSq()},getPositionFromMatrix:function(a){this.x=a.n14;this.y=a.n24;this.z=a.n34;return this},getRotationFromMatrix:function(a,b){var c=b?b.x:1,d=b?b.y:1,e=b?b.z:1,f=a.n11/c,g=a.n12/d,c=a.n21/c,d=a.n22/d,i=a.n23/e,j=a.n33/e;this.y=Math.asin(a.n13/e);e=Math.cos(this.y);if(Math.abs(e)>1.0E-5){this.x=Math.atan2(-i/e,j/e);this.z=Math.atan2(-g/e,f/e)}else{this.x=0;this.z=Math.atan2(c,d)}return this},getScaleFromMatrix:function(a){var b=this.set(a.n11,a.n21,a.n31).length(),c=this.set(a.n12,a.n22,
+a.n32).length(),a=this.set(a.n13,a.n23,a.n33).length();this.x=b;this.y=c;this.z=a},equals:function(a){return a.x===this.x&&a.y===this.y&&a.z===this.z},isZero:function(){return this.lengthSq()<1.0E-4},clone:function(){return new THREE.Vector3(this.x,this.y,this.z)}};THREE.Vector4=function(a,b,c,d){this.x=a||0;this.y=b||0;this.z=c||0;this.w=d!==void 0?d:1};
+THREE.Vector4.prototype={constructor:THREE.Vector4,set:function(a,b,c,d){this.x=a;this.y=b;this.z=c;this.w=d;return this},copy:function(a){this.x=a.x;this.y=a.y;this.z=a.z;this.w=a.w!==void 0?a.w:1;return this},add:function(a,b){this.x=a.x+b.x;this.y=a.y+b.y;this.z=a.z+b.z;this.w=a.w+b.w;return this},addSelf:function(a){this.x=this.x+a.x;this.y=this.y+a.y;this.z=this.z+a.z;this.w=this.w+a.w;return this},sub:function(a,b){this.x=a.x-b.x;this.y=a.y-b.y;this.z=a.z-b.z;this.w=a.w-b.w;return this},subSelf:function(a){this.x=
+this.x-a.x;this.y=this.y-a.y;this.z=this.z-a.z;this.w=this.w-a.w;return this},multiplyScalar:function(a){this.x=this.x*a;this.y=this.y*a;this.z=this.z*a;this.w=this.w*a;return this},divideScalar:function(a){if(a){this.x=this.x/a;this.y=this.y/a;this.z=this.z/a;this.w=this.w/a}else{this.z=this.y=this.x=0;this.w=1}return this},negate:function(){return this.multiplyScalar(-1)},dot:function(a){return this.x*a.x+this.y*a.y+this.z*a.z+this.w*a.w},lengthSq:function(){return this.dot(this)},length:function(){return Math.sqrt(this.lengthSq())},
+normalize:function(){return this.divideScalar(this.length())},setLength:function(a){return this.normalize().multiplyScalar(a)},lerpSelf:function(a,b){this.x=this.x+(a.x-this.x)*b;this.y=this.y+(a.y-this.y)*b;this.z=this.z+(a.z-this.z)*b;this.w=this.w+(a.w-this.w)*b;return this},clone:function(){return new THREE.Vector4(this.x,this.y,this.z,this.w)}};THREE.Frustum=function(){this.planes=[new THREE.Vector4,new THREE.Vector4,new THREE.Vector4,new THREE.Vector4,new THREE.Vector4,new THREE.Vector4]};
+THREE.Frustum.prototype.setFromMatrix=function(a){var b,c=this.planes;c[0].set(a.n41-a.n11,a.n42-a.n12,a.n43-a.n13,a.n44-a.n14);c[1].set(a.n41+a.n11,a.n42+a.n12,a.n43+a.n13,a.n44+a.n14);c[2].set(a.n41+a.n21,a.n42+a.n22,a.n43+a.n23,a.n44+a.n24);c[3].set(a.n41-a.n21,a.n42-a.n22,a.n43-a.n23,a.n44-a.n24);c[4].set(a.n41-a.n31,a.n42-a.n32,a.n43-a.n33,a.n44-a.n34);c[5].set(a.n41+a.n31,a.n42+a.n32,a.n43+a.n33,a.n44+a.n34);for(a=0;a<6;a++){b=c[a];b.divideScalar(Math.sqrt(b.x*b.x+b.y*b.y+b.z*b.z))}};
+THREE.Frustum.prototype.contains=function(a){for(var b=this.planes,c=a.matrixWorld,d=THREE.Frustum.__v1.set(c.getColumnX().length(),c.getColumnY().length(),c.getColumnZ().length()),d=-a.geometry.boundingSphere.radius*Math.max(d.x,Math.max(d.y,d.z)),e=0;e<6;e++){a=b[e].x*c.n14+b[e].y*c.n24+b[e].z*c.n34+b[e].w;if(a<=d)return false}return true};THREE.Frustum.__v1=new THREE.Vector3;
+THREE.Ray=function(a,b){function c(a,b,c){p.sub(c,a);H=p.dot(b);D=k.add(a,u.copy(b).multiplyScalar(H));return L=c.distanceTo(D)}function d(a,b,c,d){p.sub(d,b);k.sub(c,b);u.sub(a,b);G=p.dot(p);t=p.dot(k);E=p.dot(u);A=k.dot(k);F=k.dot(u);r=1/(G*A-t*t);v=(A*E-t*F)*r;y=(G*F-t*E)*r;return v>=0&&y>=0&&v+y<1}this.origin=a||new THREE.Vector3;this.direction=b||new THREE.Vector3;var e=1.0E-4;this.setPrecision=function(a){e=a};var f=new THREE.Vector3,g=new THREE.Vector3,i=new THREE.Vector3,j=new THREE.Vector3,
+h=new THREE.Vector3,l=new THREE.Vector3,o=new THREE.Vector3,m=new THREE.Vector3,n=new THREE.Vector3;this.intersectObject=function(a){var b,k=[];if(a instanceof THREE.Particle){var p=c(this.origin,this.direction,a.matrixWorld.getPosition());if(p>a.scale.x)return[];b={distance:p,point:a.position,face:null,object:a};k.push(b)}else if(a instanceof THREE.Mesh){var p=c(this.origin,this.direction,a.matrixWorld.getPosition()),I=THREE.Frustum.__v1.set(a.matrixWorld.getColumnX().length(),a.matrixWorld.getColumnY().length(),
+a.matrixWorld.getColumnZ().length());if(p>a.geometry.boundingSphere.radius*Math.max(I.x,Math.max(I.y,I.z)))return k;var r,u,v=a.geometry,C=v.vertices,t;a.matrixRotationWorld.extractRotation(a.matrixWorld);p=0;for(I=v.faces.length;p<I;p++){b=v.faces[p];h.copy(this.origin);l.copy(this.direction);t=a.matrixWorld;o=t.multiplyVector3(o.copy(b.centroid)).subSelf(h);m=a.matrixRotationWorld.multiplyVector3(m.copy(b.normal));r=l.dot(m);if(!(Math.abs(r)<e)){u=m.dot(o)/r;if(!(u<0)&&(a.doubleSided||(a.flipSided?
+r>0:r<0))){n.add(h,l.multiplyScalar(u));if(b instanceof THREE.Face3){f=t.multiplyVector3(f.copy(C[b.a]));g=t.multiplyVector3(g.copy(C[b.b]));i=t.multiplyVector3(i.copy(C[b.c]));if(d(n,f,g,i)){b={distance:h.distanceTo(n),point:n.clone(),face:b,object:a};k.push(b)}}else if(b instanceof THREE.Face4){f=t.multiplyVector3(f.copy(C[b.a]));g=t.multiplyVector3(g.copy(C[b.b]));i=t.multiplyVector3(i.copy(C[b.c]));j=t.multiplyVector3(j.copy(C[b.d]));if(d(n,f,g,j)||d(n,g,i,j)){b={distance:h.distanceTo(n),point:n.clone(),
+face:b,object:a};k.push(b)}}}}}}return k};this.intersectObjects=function(a){for(var b=[],c=0,d=a.length;c<d;c++)Array.prototype.push.apply(b,this.intersectObject(a[c]));b.sort(function(a,b){return a.distance-b.distance});return b};var p=new THREE.Vector3,k=new THREE.Vector3,u=new THREE.Vector3,H,D,L,G,t,E,A,F,r,v,y};
+THREE.Rectangle=function(){function a(){f=d-b;g=e-c}var b,c,d,e,f,g,i=true;this.getX=function(){return b};this.getY=function(){return c};this.getWidth=function(){return f};this.getHeight=function(){return g};this.getLeft=function(){return b};this.getTop=function(){return c};this.getRight=function(){return d};this.getBottom=function(){return e};this.set=function(f,h,g,o){i=false;b=f;c=h;d=g;e=o;a()};this.addPoint=function(f,h){if(i){i=false;b=f;c=h;d=f;e=h}else{b=b<f?b:f;c=c<h?c:h;d=d>f?d:f;e=e>h?
+e:h}a()};this.add3Points=function(f,h,g,o,m,n){if(i){i=false;b=f<g?f<m?f:m:g<m?g:m;c=h<o?h<n?h:n:o<n?o:n;d=f>g?f>m?f:m:g>m?g:m;e=h>o?h>n?h:n:o>n?o:n}else{b=f<g?f<m?f<b?f:b:m<b?m:b:g<m?g<b?g:b:m<b?m:b;c=h<o?h<n?h<c?h:c:n<c?n:c:o<n?o<c?o:c:n<c?n:c;d=f>g?f>m?f>d?f:d:m>d?m:d:g>m?g>d?g:d:m>d?m:d;e=h>o?h>n?h>e?h:e:n>e?n:e:o>n?o>e?o:e:n>e?n:e}a()};this.addRectangle=function(f){if(i){i=false;b=f.getLeft();c=f.getTop();d=f.getRight();e=f.getBottom()}else{b=b<f.getLeft()?b:f.getLeft();c=c<f.getTop()?c:f.getTop();
+d=d>f.getRight()?d:f.getRight();e=e>f.getBottom()?e:f.getBottom()}a()};this.inflate=function(f){b=b-f;c=c-f;d=d+f;e=e+f;a()};this.minSelf=function(f){b=b>f.getLeft()?b:f.getLeft();c=c>f.getTop()?c:f.getTop();d=d<f.getRight()?d:f.getRight();e=e<f.getBottom()?e:f.getBottom();a()};this.intersects=function(a){return d<a.getLeft()||b>a.getRight()||e<a.getTop()||c>a.getBottom()?false:true};this.empty=function(){i=true;e=d=c=b=0;a()};this.isEmpty=function(){return i}};
+THREE.Math={clamp:function(a,b,c){return a<b?b:a>c?c:a},clampBottom:function(a,b){return a<b?b:a},mapLinear:function(a,b,c,d,e){return d+(a-b)*(e-d)/(c-b)},random16:function(){return(65280*Math.random()+255*Math.random())/65535},randInt:function(a,b){return a+Math.floor(Math.random()*(b-a+1))},randFloat:function(a,b){return a+Math.random()*(b-a)},randFloatSpread:function(a){return a*(0.5-Math.random())},sign:function(a){return a<0?-1:a>0?1:0}};THREE.Matrix3=function(){this.m=[]};
+THREE.Matrix3.prototype={constructor:THREE.Matrix3,getInverse:function(a){var b=a.n33*a.n22-a.n32*a.n23,c=-a.n33*a.n21+a.n31*a.n23,d=a.n32*a.n21-a.n31*a.n22,e=-a.n33*a.n12+a.n32*a.n13,f=a.n33*a.n11-a.n31*a.n13,g=-a.n32*a.n11+a.n31*a.n12,i=a.n23*a.n12-a.n22*a.n13,j=-a.n23*a.n11+a.n21*a.n13,h=a.n22*a.n11-a.n21*a.n12,a=a.n11*b+a.n21*e+a.n31*i;a===0&&console.warn("Matrix3.getInverse(): determinant == 0");var a=1/a,l=this.m;l[0]=a*b;l[1]=a*c;l[2]=a*d;l[3]=a*e;l[4]=a*f;l[5]=a*g;l[6]=a*i;l[7]=a*j;l[8]=a*
+h;return this},transposeIntoArray:function(a){var b=this.m;a[0]=b[0];a[1]=b[3];a[2]=b[6];a[3]=b[1];a[4]=b[4];a[5]=b[7];a[6]=b[2];a[7]=b[5];a[8]=b[8];return this}};THREE.Matrix4=function(a,b,c,d,e,f,g,i,j,h,l,o,m,n,p,k){this.set(a!==void 0?a:1,b||0,c||0,d||0,e||0,f!==void 0?f:1,g||0,i||0,j||0,h||0,l!==void 0?l:1,o||0,m||0,n||0,p||0,k!==void 0?k:1)};
+THREE.Matrix4.prototype={constructor:THREE.Matrix4,set:function(a,b,c,d,e,f,g,i,j,h,l,o,m,n,p,k){this.n11=a;this.n12=b;this.n13=c;this.n14=d;this.n21=e;this.n22=f;this.n23=g;this.n24=i;this.n31=j;this.n32=h;this.n33=l;this.n34=o;this.n41=m;this.n42=n;this.n43=p;this.n44=k;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(a){this.set(a.n11,a.n12,a.n13,a.n14,a.n21,a.n22,a.n23,a.n24,a.n31,a.n32,a.n33,a.n34,a.n41,a.n42,a.n43,a.n44);return this},lookAt:function(a,
+b,c){var d=THREE.Matrix4.__v1,e=THREE.Matrix4.__v2,f=THREE.Matrix4.__v3;f.sub(a,b).normalize();if(f.length()===0)f.z=1;d.cross(c,f).normalize();if(d.length()===0){f.x=f.x+1.0E-4;d.cross(c,f).normalize()}e.cross(f,d);this.n11=d.x;this.n12=e.x;this.n13=f.x;this.n21=d.y;this.n22=e.y;this.n23=f.y;this.n31=d.z;this.n32=e.z;this.n33=f.z;return this},multiply:function(a,b){var c=a.n11,d=a.n12,e=a.n13,f=a.n14,g=a.n21,i=a.n22,j=a.n23,h=a.n24,l=a.n31,o=a.n32,m=a.n33,n=a.n34,p=a.n41,k=a.n42,u=a.n43,H=a.n44,
+D=b.n11,L=b.n12,G=b.n13,t=b.n14,E=b.n21,A=b.n22,F=b.n23,r=b.n24,v=b.n31,y=b.n32,K=b.n33,$=b.n34,da=b.n41,O=b.n42,I=b.n43,T=b.n44;this.n11=c*D+d*E+e*v+f*da;this.n12=c*L+d*A+e*y+f*O;this.n13=c*G+d*F+e*K+f*I;this.n14=c*t+d*r+e*$+f*T;this.n21=g*D+i*E+j*v+h*da;this.n22=g*L+i*A+j*y+h*O;this.n23=g*G+i*F+j*K+h*I;this.n24=g*t+i*r+j*$+h*T;this.n31=l*D+o*E+m*v+n*da;this.n32=l*L+o*A+m*y+n*O;this.n33=l*G+o*F+m*K+n*I;this.n34=l*t+o*r+m*$+n*T;this.n41=p*D+k*E+u*v+H*da;this.n42=p*L+k*A+u*y+H*O;this.n43=p*G+k*F+u*
+K+H*I;this.n44=p*t+k*r+u*$+H*T;return this},multiplySelf:function(a){return this.multiply(this,a)},multiplyToArray:function(a,b,c){this.multiply(a,b);c[0]=this.n11;c[1]=this.n21;c[2]=this.n31;c[3]=this.n41;c[4]=this.n12;c[5]=this.n22;c[6]=this.n32;c[7]=this.n42;c[8]=this.n13;c[9]=this.n23;c[10]=this.n33;c[11]=this.n43;c[12]=this.n14;c[13]=this.n24;c[14]=this.n34;c[15]=this.n44;return this},multiplyScalar:function(a){this.n11=this.n11*a;this.n12=this.n12*a;this.n13=this.n13*a;this.n14=this.n14*a;this.n21=
+this.n21*a;this.n22=this.n22*a;this.n23=this.n23*a;this.n24=this.n24*a;this.n31=this.n31*a;this.n32=this.n32*a;this.n33=this.n33*a;this.n34=this.n34*a;this.n41=this.n41*a;this.n42=this.n42*a;this.n43=this.n43*a;this.n44=this.n44*a;return this},multiplyVector3:function(a){var b=a.x,c=a.y,d=a.z,e=1/(this.n41*b+this.n42*c+this.n43*d+this.n44);a.x=(this.n11*b+this.n12*c+this.n13*d+this.n14)*e;a.y=(this.n21*b+this.n22*c+this.n23*d+this.n24)*e;a.z=(this.n31*b+this.n32*c+this.n33*d+this.n34)*e;return a},
+multiplyVector4:function(a){var b=a.x,c=a.y,d=a.z,e=a.w;a.x=this.n11*b+this.n12*c+this.n13*d+this.n14*e;a.y=this.n21*b+this.n22*c+this.n23*d+this.n24*e;a.z=this.n31*b+this.n32*c+this.n33*d+this.n34*e;a.w=this.n41*b+this.n42*c+this.n43*d+this.n44*e;return a},rotateAxis:function(a){var b=a.x,c=a.y,d=a.z;a.x=b*this.n11+c*this.n12+d*this.n13;a.y=b*this.n21+c*this.n22+d*this.n23;a.z=b*this.n31+c*this.n32+d*this.n33;a.normalize();return a},crossVector:function(a){var b=new THREE.Vector4;b.x=this.n11*a.x+
+this.n12*a.y+this.n13*a.z+this.n14*a.w;b.y=this.n21*a.x+this.n22*a.y+this.n23*a.z+this.n24*a.w;b.z=this.n31*a.x+this.n32*a.y+this.n33*a.z+this.n34*a.w;b.w=a.w?this.n41*a.x+this.n42*a.y+this.n43*a.z+this.n44*a.w:1;return b},determinant:function(){var a=this.n11,b=this.n12,c=this.n13,d=this.n14,e=this.n21,f=this.n22,g=this.n23,i=this.n24,j=this.n31,h=this.n32,l=this.n33,o=this.n34,m=this.n41,n=this.n42,p=this.n43,k=this.n44;return d*g*h*m-c*i*h*m-d*f*l*m+b*i*l*m+c*f*o*m-b*g*o*m-d*g*j*n+c*i*j*n+d*e*
+l*n-a*i*l*n-c*e*o*n+a*g*o*n+d*f*j*p-b*i*j*p-d*e*h*p+a*i*h*p+b*e*o*p-a*f*o*p-c*f*j*k+b*g*j*k+c*e*h*k-a*g*h*k-b*e*l*k+a*f*l*k},transpose:function(){var a;a=this.n21;this.n21=this.n12;this.n12=a;a=this.n31;this.n31=this.n13;this.n13=a;a=this.n32;this.n32=this.n23;this.n23=a;a=this.n41;this.n41=this.n14;this.n14=a;a=this.n42;this.n42=this.n24;this.n24=a;a=this.n43;this.n43=this.n34;this.n34=a;return this},flattenToArray:function(a){a[0]=this.n11;a[1]=this.n21;a[2]=this.n31;a[3]=this.n41;a[4]=this.n12;
+a[5]=this.n22;a[6]=this.n32;a[7]=this.n42;a[8]=this.n13;a[9]=this.n23;a[10]=this.n33;a[11]=this.n43;a[12]=this.n14;a[13]=this.n24;a[14]=this.n34;a[15]=this.n44;return a},flattenToArrayOffset:function(a,b){a[b]=this.n11;a[b+1]=this.n21;a[b+2]=this.n31;a[b+3]=this.n41;a[b+4]=this.n12;a[b+5]=this.n22;a[b+6]=this.n32;a[b+7]=this.n42;a[b+8]=this.n13;a[b+9]=this.n23;a[b+10]=this.n33;a[b+11]=this.n43;a[b+12]=this.n14;a[b+13]=this.n24;a[b+14]=this.n34;a[b+15]=this.n44;return a},getPosition:function(){return THREE.Matrix4.__v1.set(this.n14,
+this.n24,this.n34)},setPosition:function(a){this.n14=a.x;this.n24=a.y;this.n34=a.z;return this},getColumnX:function(){return THREE.Matrix4.__v1.set(this.n11,this.n21,this.n31)},getColumnY:function(){return THREE.Matrix4.__v1.set(this.n12,this.n22,this.n32)},getColumnZ:function(){return THREE.Matrix4.__v1.set(this.n13,this.n23,this.n33)},getInverse:function(a){var b=a.n11,c=a.n12,d=a.n13,e=a.n14,f=a.n21,g=a.n22,i=a.n23,j=a.n24,h=a.n31,l=a.n32,o=a.n33,m=a.n34,n=a.n41,p=a.n42,k=a.n43,u=a.n44;this.n11=
+i*m*p-j*o*p+j*l*k-g*m*k-i*l*u+g*o*u;this.n12=e*o*p-d*m*p-e*l*k+c*m*k+d*l*u-c*o*u;this.n13=d*j*p-e*i*p+e*g*k-c*j*k-d*g*u+c*i*u;this.n14=e*i*l-d*j*l-e*g*o+c*j*o+d*g*m-c*i*m;this.n21=j*o*n-i*m*n-j*h*k+f*m*k+i*h*u-f*o*u;this.n22=d*m*n-e*o*n+e*h*k-b*m*k-d*h*u+b*o*u;this.n23=e*i*n-d*j*n-e*f*k+b*j*k+d*f*u-b*i*u;this.n24=d*j*h-e*i*h+e*f*o-b*j*o-d*f*m+b*i*m;this.n31=g*m*n-j*l*n+j*h*p-f*m*p-g*h*u+f*l*u;this.n32=e*l*n-c*m*n-e*h*p+b*m*p+c*h*u-b*l*u;this.n33=c*j*n-e*g*n+e*f*p-b*j*p-c*f*u+b*g*u;this.n34=e*g*h-
+c*j*h-e*f*l+b*j*l+c*f*m-b*g*m;this.n41=i*l*n-g*o*n-i*h*p+f*o*p+g*h*k-f*l*k;this.n42=c*o*n-d*l*n+d*h*p-b*o*p-c*h*k+b*l*k;this.n43=d*g*n-c*i*n-d*f*p+b*i*p+c*f*k-b*g*k;this.n44=c*i*h-d*g*h+d*f*l-b*i*l-c*f*o+b*g*o;this.multiplyScalar(1/a.determinant());return this},setRotationFromEuler:function(a,b){var c=a.x,d=a.y,e=a.z,f=Math.cos(c),c=Math.sin(c),g=Math.cos(d),d=Math.sin(d),i=Math.cos(e),e=Math.sin(e);switch(b){case "YXZ":var j=g*i,h=g*e,l=d*i,o=d*e;this.n11=j+o*c;this.n12=l*c-h;this.n13=f*d;this.n21=
+f*e;this.n22=f*i;this.n23=-c;this.n31=h*c-l;this.n32=o+j*c;this.n33=f*g;break;case "ZXY":j=g*i;h=g*e;l=d*i;o=d*e;this.n11=j-o*c;this.n12=-f*e;this.n13=l+h*c;this.n21=h+l*c;this.n22=f*i;this.n23=o-j*c;this.n31=-f*d;this.n32=c;this.n33=f*g;break;case "ZYX":j=f*i;h=f*e;l=c*i;o=c*e;this.n11=g*i;this.n12=l*d-h;this.n13=j*d+o;this.n21=g*e;this.n22=o*d+j;this.n23=h*d-l;this.n31=-d;this.n32=c*g;this.n33=f*g;break;case "YZX":j=f*g;h=f*d;l=c*g;o=c*d;this.n11=g*i;this.n12=o-j*e;this.n13=l*e+h;this.n21=e;this.n22=
+f*i;this.n23=-c*i;this.n31=-d*i;this.n32=h*e+l;this.n33=j-o*e;break;case "XZY":j=f*g;h=f*d;l=c*g;o=c*d;this.n11=g*i;this.n12=-e;this.n13=d*i;this.n21=j*e+o;this.n22=f*i;this.n23=h*e-l;this.n31=l*e-h;this.n32=c*i;this.n33=o*e+j;break;default:j=f*i;h=f*e;l=c*i;o=c*e;this.n11=g*i;this.n12=-g*e;this.n13=d;this.n21=h+l*d;this.n22=j-o*d;this.n23=-c*g;this.n31=o-j*d;this.n32=l+h*d;this.n33=f*g}return this},setRotationFromQuaternion:function(a){var b=a.x,c=a.y,d=a.z,e=a.w,f=b+b,g=c+c,i=d+d,a=b*f,j=b*g,b=
+b*i,h=c*g,c=c*i,d=d*i,f=e*f,g=e*g,e=e*i;this.n11=1-(h+d);this.n12=j-e;this.n13=b+g;this.n21=j+e;this.n22=1-(a+d);this.n23=c-f;this.n31=b-g;this.n32=c+f;this.n33=1-(a+h);return this},compose:function(a,b,c){var d=THREE.Matrix4.__m1,e=THREE.Matrix4.__m2;d.identity();d.setRotationFromQuaternion(b);e.makeScale(c.x,c.y,c.z);this.multiply(d,e);this.n14=a.x;this.n24=a.y;this.n34=a.z;return this},decompose:function(a,b,c){var d=THREE.Matrix4.__v1,e=THREE.Matrix4.__v2,f=THREE.Matrix4.__v3;d.set(this.n11,this.n21,
+this.n31);e.set(this.n12,this.n22,this.n32);f.set(this.n13,this.n23,this.n33);a=a instanceof THREE.Vector3?a:new THREE.Vector3;b=b instanceof THREE.Quaternion?b:new THREE.Quaternion;c=c instanceof THREE.Vector3?c:new THREE.Vector3;c.x=d.length();c.y=e.length();c.z=f.length();a.x=this.n14;a.y=this.n24;a.z=this.n34;d=THREE.Matrix4.__m1;d.copy(this);d.n11=d.n11/c.x;d.n21=d.n21/c.x;d.n31=d.n31/c.x;d.n12=d.n12/c.y;d.n22=d.n22/c.y;d.n32=d.n32/c.y;d.n13=d.n13/c.z;d.n23=d.n23/c.z;d.n33=d.n33/c.z;b.setFromRotationMatrix(d);
+return[a,b,c]},extractPosition:function(a){this.n14=a.n14;this.n24=a.n24;this.n34=a.n34;return this},extractRotation:function(a){var b=THREE.Matrix4.__v1,c=1/b.set(a.n11,a.n21,a.n31).length(),d=1/b.set(a.n12,a.n22,a.n32).length(),b=1/b.set(a.n13,a.n23,a.n33).length();this.n11=a.n11*c;this.n21=a.n21*c;this.n31=a.n31*c;this.n12=a.n12*d;this.n22=a.n22*d;this.n32=a.n32*d;this.n13=a.n13*b;this.n23=a.n23*b;this.n33=a.n33*b;return this},translate:function(a){var b=a.x,c=a.y,a=a.z;this.n14=this.n11*b+this.n12*
+c+this.n13*a+this.n14;this.n24=this.n21*b+this.n22*c+this.n23*a+this.n24;this.n34=this.n31*b+this.n32*c+this.n33*a+this.n34;this.n44=this.n41*b+this.n42*c+this.n43*a+this.n44;return this},rotateX:function(a){var b=this.n12,c=this.n22,d=this.n32,e=this.n42,f=this.n13,g=this.n23,i=this.n33,j=this.n43,h=Math.cos(a),a=Math.sin(a);this.n12=h*b+a*f;this.n22=h*c+a*g;this.n32=h*d+a*i;this.n42=h*e+a*j;this.n13=h*f-a*b;this.n23=h*g-a*c;this.n33=h*i-a*d;this.n43=h*j-a*e;return this},rotateY:function(a){var b=
+this.n11,c=this.n21,d=this.n31,e=this.n41,f=this.n13,g=this.n23,i=this.n33,j=this.n43,h=Math.cos(a),a=Math.sin(a);this.n11=h*b-a*f;this.n21=h*c-a*g;this.n31=h*d-a*i;this.n41=h*e-a*j;this.n13=h*f+a*b;this.n23=h*g+a*c;this.n33=h*i+a*d;this.n43=h*j+a*e;return this},rotateZ:function(a){var b=this.n11,c=this.n21,d=this.n31,e=this.n41,f=this.n12,g=this.n22,i=this.n32,j=this.n42,h=Math.cos(a),a=Math.sin(a);this.n11=h*b+a*f;this.n21=h*c+a*g;this.n31=h*d+a*i;this.n41=h*e+a*j;this.n12=h*f-a*b;this.n22=h*g-
+a*c;this.n32=h*i-a*d;this.n42=h*j-a*e;return this},rotateByAxis:function(a,b){if(a.x===1&&a.y===0&&a.z===0)return this.rotateX(b);if(a.x===0&&a.y===1&&a.z===0)return this.rotateY(b);if(a.x===0&&a.y===0&&a.z===1)return this.rotateZ(b);var c=a.x,d=a.y,e=a.z,f=Math.sqrt(c*c+d*d+e*e),c=c/f,d=d/f,e=e/f,f=c*c,g=d*d,i=e*e,j=Math.cos(b),h=Math.sin(b),l=1-j,o=c*d*l,m=c*e*l,l=d*e*l,c=c*h,n=d*h,h=e*h,e=f+(1-f)*j,f=o+h,d=m-n,o=o-h,g=g+(1-g)*j,h=l+c,m=m+n,l=l-c,i=i+(1-i)*j,j=this.n11,c=this.n21,n=this.n31,p=this.n41,
+k=this.n12,u=this.n22,H=this.n32,D=this.n42,L=this.n13,G=this.n23,t=this.n33,E=this.n43;this.n11=e*j+f*k+d*L;this.n21=e*c+f*u+d*G;this.n31=e*n+f*H+d*t;this.n41=e*p+f*D+d*E;this.n12=o*j+g*k+h*L;this.n22=o*c+g*u+h*G;this.n32=o*n+g*H+h*t;this.n42=o*p+g*D+h*E;this.n13=m*j+l*k+i*L;this.n23=m*c+l*u+i*G;this.n33=m*n+l*H+i*t;this.n43=m*p+l*D+i*E;return this},scale:function(a){var b=a.x,c=a.y,a=a.z;this.n11=this.n11*b;this.n12=this.n12*c;this.n13=this.n13*a;this.n21=this.n21*b;this.n22=this.n22*c;this.n23=
+this.n23*a;this.n31=this.n31*b;this.n32=this.n32*c;this.n33=this.n33*a;this.n41=this.n41*b;this.n42=this.n42*c;this.n43=this.n43*a;return this},makeTranslation:function(a,b,c){this.set(1,0,0,a,0,1,0,b,0,0,1,c,0,0,0,1);return this},makeRotationX:function(a){var b=Math.cos(a),a=Math.sin(a);this.set(1,0,0,0,0,b,-a,0,0,a,b,0,0,0,0,1);return this},makeRotationY:function(a){var b=Math.cos(a),a=Math.sin(a);this.set(b,0,a,0,0,1,0,0,-a,0,b,0,0,0,0,1);return this},makeRotationZ:function(a){var b=Math.cos(a),
+a=Math.sin(a);this.set(b,-a,0,0,a,b,0,0,0,0,1,0,0,0,0,1);return this},makeRotationAxis:function(a,b){var c=Math.cos(b),d=Math.sin(b),e=1-c,f=a.x,g=a.y,i=a.z,j=e*f,h=e*g;this.set(j*f+c,j*g-d*i,j*i+d*g,0,j*g+d*i,h*g+c,h*i-d*f,0,j*i-d*g,h*i+d*f,e*i*i+c,0,0,0,0,1);return this},makeScale:function(a,b,c){this.set(a,0,0,0,0,b,0,0,0,0,c,0,0,0,0,1);return this},makeFrustum:function(a,b,c,d,e,f){this.n11=2*e/(b-a);this.n12=0;this.n13=(b+a)/(b-a);this.n21=this.n14=0;this.n22=2*e/(d-c);this.n23=(d+c)/(d-c);this.n32=
+this.n31=this.n24=0;this.n33=-(f+e)/(f-e);this.n34=-2*f*e/(f-e);this.n42=this.n41=0;this.n43=-1;this.n44=0;return this},makePerspective:function(a,b,c,d){var a=c*Math.tan(a*Math.PI/360),e=-a;return this.makeFrustum(e*b,a*b,e,a,c,d)},makeOrthographic:function(a,b,c,d,e,f){var g=b-a,i=c-d,j=f-e;this.n11=2/g;this.n13=this.n12=0;this.n14=-((b+a)/g);this.n21=0;this.n22=2/i;this.n23=0;this.n24=-((c+d)/i);this.n32=this.n31=0;this.n33=-2/j;this.n34=-((f+e)/j);this.n43=this.n42=this.n41=0;this.n44=1;return this},
+clone:function(){return new THREE.Matrix4(this.n11,this.n12,this.n13,this.n14,this.n21,this.n22,this.n23,this.n24,this.n31,this.n32,this.n33,this.n34,this.n41,this.n42,this.n43,this.n44)}};THREE.Matrix4.__v1=new THREE.Vector3;THREE.Matrix4.__v2=new THREE.Vector3;THREE.Matrix4.__v3=new THREE.Vector3;THREE.Matrix4.__m1=new THREE.Matrix4;THREE.Matrix4.__m2=new THREE.Matrix4;
+THREE.Object3D=function(){this.id=THREE.Object3DCount++;this.name="";this.parent=void 0;this.children=[];this.up=new THREE.Vector3(0,1,0);this.position=new THREE.Vector3;this.rotation=new THREE.Vector3;this.eulerOrder="XYZ";this.scale=new THREE.Vector3(1,1,1);this.flipSided=this.doubleSided=false;this.renderDepth=null;this.rotationAutoUpdate=true;this.matrix=new THREE.Matrix4;this.matrixWorld=new THREE.Matrix4;this.matrixRotationWorld=new THREE.Matrix4;this.matrixWorldNeedsUpdate=this.matrixAutoUpdate=
+true;this.quaternion=new THREE.Quaternion;this.useQuaternion=false;this.boundRadius=0;this.boundRadiusScale=1;this.visible=true;this.receiveShadow=this.castShadow=false;this.frustumCulled=true;this._vector=new THREE.Vector3};
+THREE.Object3D.prototype={constructor:THREE.Object3D,applyMatrix:function(a){this.matrix.multiply(a,this.matrix);this.scale.getScaleFromMatrix(this.matrix);this.rotation.getRotationFromMatrix(this.matrix,this.scale);this.position.getPositionFromMatrix(this.matrix)},translate:function(a,b){this.matrix.rotateAxis(b);this.position.addSelf(b.multiplyScalar(a))},translateX:function(a){this.translate(a,this._vector.set(1,0,0))},translateY:function(a){this.translate(a,this._vector.set(0,1,0))},translateZ:function(a){this.translate(a,
+this._vector.set(0,0,1))},lookAt:function(a){this.matrix.lookAt(a,this.position,this.up);this.rotationAutoUpdate&&this.rotation.getRotationFromMatrix(this.matrix)},add:function(a){if(a===this)console.warn("THREE.Object3D.add: An object can't be added as a child of itself.");else if(a instanceof THREE.Object3D){a.parent!==void 0&&a.parent.remove(a);a.parent=this;this.children.push(a);for(var b=this;b.parent!==void 0;)b=b.parent;b!==void 0&&b instanceof THREE.Scene&&b.__addObject(a)}},remove:function(a){var b=
+this.children.indexOf(a);if(b!==-1){a.parent=void 0;this.children.splice(b,1);for(b=this;b.parent!==void 0;)b=b.parent;b!==void 0&&b instanceof THREE.Scene&&b.__removeObject(a)}},getChildByName:function(a,b){var c,d,e;c=0;for(d=this.children.length;c<d;c++){e=this.children[c];if(e.name===a)return e;if(b){e=e.getChildByName(a,b);if(e!==void 0)return e}}},updateMatrix:function(){this.matrix.setPosition(this.position);this.useQuaternion?this.matrix.setRotationFromQuaternion(this.quaternion):this.matrix.setRotationFromEuler(this.rotation,
+this.eulerOrder);if(this.scale.x!==1||this.scale.y!==1||this.scale.z!==1){this.matrix.scale(this.scale);this.boundRadiusScale=Math.max(this.scale.x,Math.max(this.scale.y,this.scale.z))}this.matrixWorldNeedsUpdate=true},updateMatrixWorld:function(a){this.matrixAutoUpdate&&this.updateMatrix();if(this.matrixWorldNeedsUpdate||a){this.parent?this.matrixWorld.multiply(this.parent.matrixWorld,this.matrix):this.matrixWorld.copy(this.matrix);this.matrixWorldNeedsUpdate=false;a=true}for(var b=0,c=this.children.length;b<
+c;b++)this.children[b].updateMatrixWorld(a)}};THREE.Object3DCount=0;
+THREE.Projector=function(){function a(){var a=g[f]=g[f]||new THREE.RenderableObject;f++;return a}function b(){var a=h[j]=h[j]||new THREE.RenderableVertex;j++;return a}function c(a,b){return b.z-a.z}function d(a,b){var c=0,d=1,e=a.z+a.w,f=b.z+b.w,g=-a.z+a.w,h=-b.z+b.w;if(e>=0&&f>=0&&g>=0&&h>=0)return true;if(e<0&&f<0||g<0&&h<0)return false;e<0?c=Math.max(c,e/(e-f)):f<0&&(d=Math.min(d,e/(e-f)));g<0?c=Math.max(c,g/(g-h)):h<0&&(d=Math.min(d,g/(g-h)));if(d<c)return false;a.lerpSelf(b,c);b.lerpSelf(a,1-
+d);return true}var e,f,g=[],i,j,h=[],l,o,m=[],n,p=[],k,u,H=[],D,L,G=[],t={objects:[],sprites:[],lights:[],elements:[]},E=new THREE.Vector3,A=new THREE.Vector4,F=new THREE.Matrix4,r=new THREE.Matrix4,v=new THREE.Frustum,y=new THREE.Vector4,K=new THREE.Vector4;this.projectVector=function(a,b){b.matrixWorldInverse.getInverse(b.matrixWorld);F.multiply(b.projectionMatrix,b.matrixWorldInverse);F.multiplyVector3(a);return a};this.unprojectVector=function(a,b){b.projectionMatrixInverse.getInverse(b.projectionMatrix);
+F.multiply(b.matrixWorld,b.projectionMatrixInverse);F.multiplyVector3(a);return a};this.pickingRay=function(a,b){var c;a.z=-1;c=new THREE.Vector3(a.x,a.y,1);this.unprojectVector(a,b);this.unprojectVector(c,b);c.subSelf(a).normalize();return new THREE.Ray(a,c)};this.projectGraph=function(b,d){f=0;t.objects.length=0;t.sprites.length=0;t.lights.length=0;var g=function(b){if(b.visible!==false){if((b instanceof THREE.Mesh||b instanceof THREE.Line)&&(b.frustumCulled===false||v.contains(b))){E.copy(b.matrixWorld.getPosition());
+F.multiplyVector3(E);e=a();e.object=b;e.z=E.z;t.objects.push(e)}else if(b instanceof THREE.Sprite||b instanceof THREE.Particle){E.copy(b.matrixWorld.getPosition());F.multiplyVector3(E);e=a();e.object=b;e.z=E.z;t.sprites.push(e)}else b instanceof THREE.Light&&t.lights.push(b);for(var c=0,d=b.children.length;c<d;c++)g(b.children[c])}};g(b);d&&t.objects.sort(c);return t};this.projectScene=function(a,e,f){var g=e.near,E=e.far,Q=false,U,C,J,R,B,P,N,V,s,x,w,z,M,la,fa;L=u=n=o=0;t.elements.length=0;if(e.parent===
+void 0){console.warn("DEPRECATED: Camera hasn't been added to a Scene. Adding it...");a.add(e)}a.updateMatrixWorld();e.matrixWorldInverse.getInverse(e.matrixWorld);F.multiply(e.projectionMatrix,e.matrixWorldInverse);v.setFromMatrix(F);t=this.projectGraph(a,false);a=0;for(U=t.objects.length;a<U;a++){s=t.objects[a].object;x=s.matrixWorld;j=0;if(s instanceof THREE.Mesh){w=s.geometry;z=s.geometry.materials;R=w.vertices;M=w.faces;la=w.faceVertexUvs;w=s.matrixRotationWorld.extractRotation(x);C=0;for(J=
+R.length;C<J;C++){i=b();i.positionWorld.copy(R[C]);x.multiplyVector3(i.positionWorld);i.positionScreen.copy(i.positionWorld);F.multiplyVector4(i.positionScreen);i.positionScreen.x=i.positionScreen.x/i.positionScreen.w;i.positionScreen.y=i.positionScreen.y/i.positionScreen.w;i.visible=i.positionScreen.z>g&&i.positionScreen.z<E}R=0;for(C=M.length;R<C;R++){J=M[R];if(J instanceof THREE.Face3){B=h[J.a];P=h[J.b];N=h[J.c];if(B.visible&&P.visible&&N.visible){Q=(N.positionScreen.x-B.positionScreen.x)*(P.positionScreen.y-
+B.positionScreen.y)-(N.positionScreen.y-B.positionScreen.y)*(P.positionScreen.x-B.positionScreen.x)<0;if(s.doubleSided||Q!=s.flipSided){V=m[o]=m[o]||new THREE.RenderableFace3;o++;l=V;l.v1.copy(B);l.v2.copy(P);l.v3.copy(N)}else continue}else continue}else if(J instanceof THREE.Face4){B=h[J.a];P=h[J.b];N=h[J.c];V=h[J.d];if(B.visible&&P.visible&&N.visible&&V.visible){Q=(V.positionScreen.x-B.positionScreen.x)*(P.positionScreen.y-B.positionScreen.y)-(V.positionScreen.y-B.positionScreen.y)*(P.positionScreen.x-
+B.positionScreen.x)<0||(P.positionScreen.x-N.positionScreen.x)*(V.positionScreen.y-N.positionScreen.y)-(P.positionScreen.y-N.positionScreen.y)*(V.positionScreen.x-N.positionScreen.x)<0;if(s.doubleSided||Q!=s.flipSided){fa=p[n]=p[n]||new THREE.RenderableFace4;n++;l=fa;l.v1.copy(B);l.v2.copy(P);l.v3.copy(N);l.v4.copy(V)}else continue}else continue}l.normalWorld.copy(J.normal);!Q&&(s.flipSided||s.doubleSided)&&l.normalWorld.negate();w.multiplyVector3(l.normalWorld);l.centroidWorld.copy(J.centroid);x.multiplyVector3(l.centroidWorld);
+l.centroidScreen.copy(l.centroidWorld);F.multiplyVector3(l.centroidScreen);N=J.vertexNormals;B=0;for(P=N.length;B<P;B++){V=l.vertexNormalsWorld[B];V.copy(N[B]);!Q&&(s.flipSided||s.doubleSided)&&V.negate();w.multiplyVector3(V)}B=0;for(P=la.length;B<P;B++)if(fa=la[B][R]){N=0;for(V=fa.length;N<V;N++)l.uvs[B][N]=fa[N]}l.material=s.material;l.faceMaterial=J.materialIndex!==null?z[J.materialIndex]:null;l.z=l.centroidScreen.z;t.elements.push(l)}}else if(s instanceof THREE.Line){r.multiply(F,x);R=s.geometry.vertices;
+B=b();B.positionScreen.copy(R[0]);r.multiplyVector4(B.positionScreen);x=s.type===THREE.LinePieces?2:1;C=1;for(J=R.length;C<J;C++){B=b();B.positionScreen.copy(R[C]);r.multiplyVector4(B.positionScreen);if(!((C+1)%x>0)){P=h[j-2];y.copy(B.positionScreen);K.copy(P.positionScreen);if(d(y,K)){y.multiplyScalar(1/y.w);K.multiplyScalar(1/K.w);z=H[u]=H[u]||new THREE.RenderableLine;u++;k=z;k.v1.positionScreen.copy(y);k.v2.positionScreen.copy(K);k.z=Math.max(y.z,K.z);k.material=s.material;t.elements.push(k)}}}}}a=
+0;for(U=t.sprites.length;a<U;a++){s=t.sprites[a].object;x=s.matrixWorld;if(s instanceof THREE.Particle){A.set(x.n14,x.n24,x.n34,1);F.multiplyVector4(A);A.z=A.z/A.w;if(A.z>0&&A.z<1){g=G[L]=G[L]||new THREE.RenderableParticle;L++;D=g;D.x=A.x/A.w;D.y=A.y/A.w;D.z=A.z;D.rotation=s.rotation.z;D.scale.x=s.scale.x*Math.abs(D.x-(A.x+e.projectionMatrix.n11)/(A.w+e.projectionMatrix.n14));D.scale.y=s.scale.y*Math.abs(D.y-(A.y+e.projectionMatrix.n22)/(A.w+e.projectionMatrix.n24));D.material=s.material;t.elements.push(D)}}}f&&
+t.elements.sort(c);return t}};THREE.Quaternion=function(a,b,c,d){this.x=a||0;this.y=b||0;this.z=c||0;this.w=d!==void 0?d:1};
+THREE.Quaternion.prototype={constructor:THREE.Quaternion,set:function(a,b,c,d){this.x=a;this.y=b;this.z=c;this.w=d;return this},copy:function(a){this.x=a.x;this.y=a.y;this.z=a.z;this.w=a.w;return this},setFromEuler:function(a){var b=Math.PI/360,c=a.x*b,d=a.y*b,e=a.z*b,a=Math.cos(d),d=Math.sin(d),b=Math.cos(-e),e=Math.sin(-e),f=Math.cos(c),c=Math.sin(c),g=a*b,i=d*e;this.w=g*f-i*c;this.x=g*c+i*f;this.y=d*b*f+a*e*c;this.z=a*e*f-d*b*c;return this},setFromAxisAngle:function(a,b){var c=b/2,d=Math.sin(c);
+this.x=a.x*d;this.y=a.y*d;this.z=a.z*d;this.w=Math.cos(c);return this},setFromRotationMatrix:function(a){var b=Math.pow(a.determinant(),1/3);this.w=Math.sqrt(Math.max(0,b+a.n11+a.n22+a.n33))/2;this.x=Math.sqrt(Math.max(0,b+a.n11-a.n22-a.n33))/2;this.y=Math.sqrt(Math.max(0,b-a.n11+a.n22-a.n33))/2;this.z=Math.sqrt(Math.max(0,b-a.n11-a.n22+a.n33))/2;this.x=a.n32-a.n23<0?-Math.abs(this.x):Math.abs(this.x);this.y=a.n13-a.n31<0?-Math.abs(this.y):Math.abs(this.y);this.z=a.n21-a.n12<0?-Math.abs(this.z):Math.abs(this.z);
+this.normalize();return this},calculateW:function(){this.w=-Math.sqrt(Math.abs(1-this.x*this.x-this.y*this.y-this.z*this.z));return this},inverse:function(){this.x=this.x*-1;this.y=this.y*-1;this.z=this.z*-1;return this},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)},normalize:function(){var a=Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w);if(a===0)this.w=this.z=this.y=this.x=0;else{a=1/a;this.x=this.x*a;this.y=this.y*a;this.z=this.z*
+a;this.w=this.w*a}return this},multiply:function(a,b){this.x=a.x*b.w+a.y*b.z-a.z*b.y+a.w*b.x;this.y=-a.x*b.z+a.y*b.w+a.z*b.x+a.w*b.y;this.z=a.x*b.y-a.y*b.x+a.z*b.w+a.w*b.z;this.w=-a.x*b.x-a.y*b.y-a.z*b.z+a.w*b.w;return this},multiplySelf:function(a){var b=this.x,c=this.y,d=this.z,e=this.w,f=a.x,g=a.y,i=a.z,a=a.w;this.x=b*a+e*f+c*i-d*g;this.y=c*a+e*g+d*f-b*i;this.z=d*a+e*i+b*g-c*f;this.w=e*a-b*f-c*g-d*i;return this},multiplyVector3:function(a,b){b||(b=a);var c=a.x,d=a.y,e=a.z,f=this.x,g=this.y,i=this.z,
+j=this.w,h=j*c+g*e-i*d,l=j*d+i*c-f*e,o=j*e+f*d-g*c,c=-f*c-g*d-i*e;b.x=h*j+c*-f+l*-i-o*-g;b.y=l*j+c*-g+o*-f-h*-i;b.z=o*j+c*-i+h*-g-l*-f;return b},clone:function(){return new THREE.Quaternion(this.x,this.y,this.z,this.w)}};
+THREE.Quaternion.slerp=function(a,b,c,d){var e=a.w*b.w+a.x*b.x+a.y*b.y+a.z*b.z;if(e<0){c.w=-b.w;c.x=-b.x;c.y=-b.y;c.z=-b.z;e=-e}else c.copy(b);if(Math.abs(e)>=1){c.w=a.w;c.x=a.x;c.y=a.y;c.z=a.z;return c}var f=Math.acos(e),e=Math.sqrt(1-e*e);if(Math.abs(e)<0.001){c.w=0.5*(a.w+b.w);c.x=0.5*(a.x+b.x);c.y=0.5*(a.y+b.y);c.z=0.5*(a.z+b.z);return c}b=Math.sin((1-d)*f)/e;d=Math.sin(d*f)/e;c.w=a.w*b+c.w*d;c.x=a.x*b+c.x*d;c.y=a.y*b+c.y*d;c.z=a.z*b+c.z*d;return c};THREE.Vertex=THREE.Vector3;
+THREE.Face3=function(a,b,c,d,e,f){this.a=a;this.b=b;this.c=c;this.normal=d instanceof THREE.Vector3?d:new THREE.Vector3;this.vertexNormals=d instanceof Array?d:[];this.color=e instanceof THREE.Color?e:new THREE.Color;this.vertexColors=e instanceof Array?e:[];this.vertexTangents=[];this.materialIndex=f;this.centroid=new THREE.Vector3};
+THREE.Face3.prototype={constructor:THREE.Face3,clone:function(){var a=new THREE.Face3(this.a,this.b,this.c);a.normal.copy(this.normal);a.color.copy(this.color);a.centroid.copy(this.centroid);a.materialIndex=this.materialIndex;var b,c;b=0;for(c=this.vertexNormals.length;b<c;b++)a.vertexNormals[b]=this.vertexNormals[b].clone();b=0;for(c=this.vertexColors.length;b<c;b++)a.vertexColors[b]=this.vertexColors[b].clone();b=0;for(c=this.vertexTangents.length;b<c;b++)a.vertexTangents[b]=this.vertexTangents[b].clone();
+return a}};THREE.Face4=function(a,b,c,d,e,f,g){this.a=a;this.b=b;this.c=c;this.d=d;this.normal=e instanceof THREE.Vector3?e:new THREE.Vector3;this.vertexNormals=e instanceof Array?e:[];this.color=f instanceof THREE.Color?f:new THREE.Color;this.vertexColors=f instanceof Array?f:[];this.vertexTangents=[];this.materialIndex=g;this.centroid=new THREE.Vector3};
+THREE.Face4.prototype={constructor:THREE.Face4,clone:function(){var a=new THREE.Face4(this.a,this.b,this.c,this.d);a.normal.copy(this.normal);a.color.copy(this.color);a.centroid.copy(this.centroid);a.materialIndex=this.materialIndex;var b,c;b=0;for(c=this.vertexNormals.length;b<c;b++)a.vertexNormals[b]=this.vertexNormals[b].clone();b=0;for(c=this.vertexColors.length;b<c;b++)a.vertexColors[b]=this.vertexColors[b].clone();b=0;for(c=this.vertexTangents.length;b<c;b++)a.vertexTangents[b]=this.vertexTangents[b].clone();
+return a}};THREE.UV=function(a,b){this.u=a||0;this.v=b||0};THREE.UV.prototype={constructor:THREE.UV,set:function(a,b){this.u=a;this.v=b;return this},copy:function(a){this.u=a.u;this.v=a.v;return this},lerpSelf:function(a,b){this.u=this.u+(a.u-this.u)*b;this.v=this.v+(a.v-this.v)*b;return this},clone:function(){return new THREE.UV(this.u,this.v)}};
+THREE.Geometry=function(){this.id=THREE.GeometryCount++;this.vertices=[];this.colors=[];this.materials=[];this.faces=[];this.faceUvs=[[]];this.faceVertexUvs=[[]];this.morphTargets=[];this.morphColors=[];this.morphNormals=[];this.skinWeights=[];this.skinIndices=[];this.boundingSphere=this.boundingBox=null;this.dynamic=this.hasTangents=false};
+THREE.Geometry.prototype={constructor:THREE.Geometry,applyMatrix:function(a){var b=new THREE.Matrix4;b.extractRotation(a);for(var c=0,d=this.vertices.length;c<d;c++)a.multiplyVector3(this.vertices[c]);c=0;for(d=this.faces.length;c<d;c++){var e=this.faces[c];b.multiplyVector3(e.normal);for(var f=0,g=e.vertexNormals.length;f<g;f++)b.multiplyVector3(e.vertexNormals[f]);a.multiplyVector3(e.centroid)}},computeCentroids:function(){var a,b,c;a=0;for(b=this.faces.length;a<b;a++){c=this.faces[a];c.centroid.set(0,
+0,0);if(c instanceof THREE.Face3){c.centroid.addSelf(this.vertices[c.a]);c.centroid.addSelf(this.vertices[c.b]);c.centroid.addSelf(this.vertices[c.c]);c.centroid.divideScalar(3)}else if(c instanceof THREE.Face4){c.centroid.addSelf(this.vertices[c.a]);c.centroid.addSelf(this.vertices[c.b]);c.centroid.addSelf(this.vertices[c.c]);c.centroid.addSelf(this.vertices[c.d]);c.centroid.divideScalar(4)}}},computeFaceNormals:function(){var a,b,c,d,e,f,g=new THREE.Vector3,i=new THREE.Vector3;a=0;for(b=this.faces.length;a<
+b;a++){c=this.faces[a];d=this.vertices[c.a];e=this.vertices[c.b];f=this.vertices[c.c];g.sub(f,e);i.sub(d,e);g.crossSelf(i);g.isZero()||g.normalize();c.normal.copy(g)}},computeVertexNormals:function(){var a,b,c,d;if(this.__tmpVertices===void 0){d=this.__tmpVertices=Array(this.vertices.length);a=0;for(b=this.vertices.length;a<b;a++)d[a]=new THREE.Vector3;a=0;for(b=this.faces.length;a<b;a++){c=this.faces[a];if(c instanceof THREE.Face3)c.vertexNormals=[new THREE.Vector3,new THREE.Vector3,new THREE.Vector3];
+else if(c instanceof THREE.Face4)c.vertexNormals=[new THREE.Vector3,new THREE.Vector3,new THREE.Vector3,new THREE.Vector3]}}else{d=this.__tmpVertices;a=0;for(b=this.vertices.length;a<b;a++)d[a].set(0,0,0)}a=0;for(b=this.faces.length;a<b;a++){c=this.faces[a];if(c instanceof THREE.Face3){d[c.a].addSelf(c.normal);d[c.b].addSelf(c.normal);d[c.c].addSelf(c.normal)}else if(c instanceof THREE.Face4){d[c.a].addSelf(c.normal);d[c.b].addSelf(c.normal);d[c.c].addSelf(c.normal);d[c.d].addSelf(c.normal)}}a=0;
+for(b=this.vertices.length;a<b;a++)d[a].normalize();a=0;for(b=this.faces.length;a<b;a++){c=this.faces[a];if(c instanceof THREE.Face3){c.vertexNormals[0].copy(d[c.a]);c.vertexNormals[1].copy(d[c.b]);c.vertexNormals[2].copy(d[c.c])}else if(c instanceof THREE.Face4){c.vertexNormals[0].copy(d[c.a]);c.vertexNormals[1].copy(d[c.b]);c.vertexNormals[2].copy(d[c.c]);c.vertexNormals[3].copy(d[c.d])}}},computeMorphNormals:function(){var a,b,c,d,e;c=0;for(d=this.faces.length;c<d;c++){e=this.faces[c];e.__originalFaceNormal?
+e.__originalFaceNormal.copy(e.normal):e.__originalFaceNormal=e.normal.clone();if(!e.__originalVertexNormals)e.__originalVertexNormals=[];a=0;for(b=e.vertexNormals.length;a<b;a++)e.__originalVertexNormals[a]?e.__originalVertexNormals[a].copy(e.vertexNormals[a]):e.__originalVertexNormals[a]=e.vertexNormals[a].clone()}var f=new THREE.Geometry;f.faces=this.faces;a=0;for(b=this.morphTargets.length;a<b;a++){if(!this.morphNormals[a]){this.morphNormals[a]={};this.morphNormals[a].faceNormals=[];this.morphNormals[a].vertexNormals=
+[];var g=this.morphNormals[a].faceNormals,i=this.morphNormals[a].vertexNormals,j,h;c=0;for(d=this.faces.length;c<d;c++){e=this.faces[c];j=new THREE.Vector3;h=e instanceof THREE.Face3?{a:new THREE.Vector3,b:new THREE.Vector3,c:new THREE.Vector3}:{a:new THREE.Vector3,b:new THREE.Vector3,c:new THREE.Vector3,d:new THREE.Vector3};g.push(j);i.push(h)}}g=this.morphNormals[a];f.vertices=this.morphTargets[a].vertices;f.computeFaceNormals();f.computeVertexNormals();c=0;for(d=this.faces.length;c<d;c++){e=this.faces[c];
+j=g.faceNormals[c];h=g.vertexNormals[c];j.copy(e.normal);if(e instanceof THREE.Face3){h.a.copy(e.vertexNormals[0]);h.b.copy(e.vertexNormals[1]);h.c.copy(e.vertexNormals[2])}else{h.a.copy(e.vertexNormals[0]);h.b.copy(e.vertexNormals[1]);h.c.copy(e.vertexNormals[2]);h.d.copy(e.vertexNormals[3])}}}c=0;for(d=this.faces.length;c<d;c++){e=this.faces[c];e.normal=e.__originalFaceNormal;e.vertexNormals=e.__originalVertexNormals}},computeTangents:function(){function a(a,b,c,d,e,f,B){i=a.vertices[b];j=a.vertices[c];
+h=a.vertices[d];l=g[e];o=g[f];m=g[B];n=j.x-i.x;p=h.x-i.x;k=j.y-i.y;u=h.y-i.y;H=j.z-i.z;D=h.z-i.z;L=o.u-l.u;G=m.u-l.u;t=o.v-l.v;E=m.v-l.v;A=1/(L*E-G*t);y.set((E*n-t*p)*A,(E*k-t*u)*A,(E*H-t*D)*A);K.set((L*p-G*n)*A,(L*u-G*k)*A,(L*D-G*H)*A);r[b].addSelf(y);r[c].addSelf(y);r[d].addSelf(y);v[b].addSelf(K);v[c].addSelf(K);v[d].addSelf(K)}var b,c,d,e,f,g,i,j,h,l,o,m,n,p,k,u,H,D,L,G,t,E,A,F,r=[],v=[],y=new THREE.Vector3,K=new THREE.Vector3,$=new THREE.Vector3,da=new THREE.Vector3,O=new THREE.Vector3;b=0;for(c=
+this.vertices.length;b<c;b++){r[b]=new THREE.Vector3;v[b]=new THREE.Vector3}b=0;for(c=this.faces.length;b<c;b++){f=this.faces[b];g=this.faceVertexUvs[0][b];if(f instanceof THREE.Face3)a(this,f.a,f.b,f.c,0,1,2);else if(f instanceof THREE.Face4){a(this,f.a,f.b,f.d,0,1,3);a(this,f.b,f.c,f.d,1,2,3)}}var I=["a","b","c","d"];b=0;for(c=this.faces.length;b<c;b++){f=this.faces[b];for(d=0;d<f.vertexNormals.length;d++){O.copy(f.vertexNormals[d]);e=f[I[d]];F=r[e];$.copy(F);$.subSelf(O.multiplyScalar(O.dot(F))).normalize();
+da.cross(f.vertexNormals[d],F);e=da.dot(v[e]);e=e<0?-1:1;f.vertexTangents[d]=new THREE.Vector4($.x,$.y,$.z,e)}}this.hasTangents=true},computeBoundingBox:function(){if(!this.boundingBox)this.boundingBox={min:new THREE.Vector3,max:new THREE.Vector3};if(this.vertices.length>0){var a;a=this.vertices[0];this.boundingBox.min.copy(a);this.boundingBox.max.copy(a);for(var b=this.boundingBox.min,c=this.boundingBox.max,d=1,e=this.vertices.length;d<e;d++){a=this.vertices[d];if(a.x<b.x)b.x=a.x;else if(a.x>c.x)c.x=
+a.x;if(a.y<b.y)b.y=a.y;else if(a.y>c.y)c.y=a.y;if(a.z<b.z)b.z=a.z;else if(a.z>c.z)c.z=a.z}}else{this.boundingBox.min.set(0,0,0);this.boundingBox.max.set(0,0,0)}},computeBoundingSphere:function(){if(!this.boundingSphere)this.boundingSphere={radius:0};for(var a,b=0,c=0,d=this.vertices.length;c<d;c++){a=this.vertices[c].length();a>b&&(b=a)}this.boundingSphere.radius=b},mergeVertices:function(){var a={},b=[],c=[],d,e=Math.pow(10,4),f,g;f=0;for(g=this.vertices.length;f<g;f++){d=this.vertices[f];d=[Math.round(d.x*
+e),Math.round(d.y*e),Math.round(d.z*e)].join("_");if(a[d]===void 0){a[d]=f;b.push(this.vertices[f]);c[f]=b.length-1}else c[f]=c[a[d]]}f=0;for(g=this.faces.length;f<g;f++){a=this.faces[f];if(a instanceof THREE.Face3){a.a=c[a.a];a.b=c[a.b];a.c=c[a.c]}else if(a instanceof THREE.Face4){a.a=c[a.a];a.b=c[a.b];a.c=c[a.c];a.d=c[a.d]}}this.vertices=b}};THREE.GeometryCount=0;
+THREE.Camera=function(){THREE.Object3D.call(this);this.matrixWorldInverse=new THREE.Matrix4;this.projectionMatrix=new THREE.Matrix4;this.projectionMatrixInverse=new THREE.Matrix4};THREE.Camera.prototype=new THREE.Object3D;THREE.Camera.prototype.constructor=THREE.Camera;THREE.Camera.prototype.lookAt=function(a){this.matrix.lookAt(this.position,a,this.up);this.rotationAutoUpdate&&this.rotation.getRotationFromMatrix(this.matrix)};
+THREE.OrthographicCamera=function(a,b,c,d,e,f){THREE.Camera.call(this);this.left=a;this.right=b;this.top=c;this.bottom=d;this.near=e!==void 0?e:0.1;this.far=f!==void 0?f:2E3;this.updateProjectionMatrix()};THREE.OrthographicCamera.prototype=new THREE.Camera;THREE.OrthographicCamera.prototype.constructor=THREE.OrthographicCamera;THREE.OrthographicCamera.prototype.updateProjectionMatrix=function(){this.projectionMatrix.makeOrthographic(this.left,this.right,this.top,this.bottom,this.near,this.far)};
+THREE.PerspectiveCamera=function(a,b,c,d){THREE.Camera.call(this);this.fov=a!==void 0?a:50;this.aspect=b!==void 0?b:1;this.near=c!==void 0?c:0.1;this.far=d!==void 0?d:2E3;this.updateProjectionMatrix()};THREE.PerspectiveCamera.prototype=new THREE.Camera;THREE.PerspectiveCamera.prototype.constructor=THREE.PerspectiveCamera;THREE.PerspectiveCamera.prototype.setLens=function(a,b){this.fov=2*Math.atan((b!==void 0?b:24)/(a*2))*(180/Math.PI);this.updateProjectionMatrix()};
+THREE.PerspectiveCamera.prototype.setViewOffset=function(a,b,c,d,e,f){this.fullWidth=a;this.fullHeight=b;this.x=c;this.y=d;this.width=e;this.height=f;this.updateProjectionMatrix()};
+THREE.PerspectiveCamera.prototype.updateProjectionMatrix=function(){if(this.fullWidth){var a=this.fullWidth/this.fullHeight,b=Math.tan(this.fov*Math.PI/360)*this.near,c=-b,d=a*c,a=Math.abs(a*b-d),c=Math.abs(b-c);this.projectionMatrix.makeFrustum(d+this.x*a/this.fullWidth,d+(this.x+this.width)*a/this.fullWidth,b-(this.y+this.height)*c/this.fullHeight,b-this.y*c/this.fullHeight,this.near,this.far)}else this.projectionMatrix.makePerspective(this.fov,this.aspect,this.near,this.far)};
+THREE.Light=function(a){THREE.Object3D.call(this);this.color=new THREE.Color(a)};THREE.Light.prototype=new THREE.Object3D;THREE.Light.prototype.constructor=THREE.Light;THREE.Light.prototype.supr=THREE.Object3D.prototype;THREE.AmbientLight=function(a){THREE.Light.call(this,a)};THREE.AmbientLight.prototype=new THREE.Light;THREE.AmbientLight.prototype.constructor=THREE.AmbientLight;
+THREE.DirectionalLight=function(a,b,c){THREE.Light.call(this,a);this.position=new THREE.Vector3(0,1,0);this.target=new THREE.Object3D;this.intensity=b!==void 0?b:1;this.distance=c!==void 0?c:0;this.onlyShadow=this.castShadow=false;this.shadowCameraNear=50;this.shadowCameraFar=5E3;this.shadowCameraLeft=-500;this.shadowCameraTop=this.shadowCameraRight=500;this.shadowCameraBottom=-500;this.shadowCameraVisible=false;this.shadowBias=0;this.shadowDarkness=0.5;this.shadowMapHeight=this.shadowMapWidth=512;
+this.shadowCascade=false;this.shadowCascadeOffset=new THREE.Vector3(0,0,-1E3);this.shadowCascadeCount=2;this.shadowCascadeBias=[0,0,0];this.shadowCascadeWidth=[512,512,512];this.shadowCascadeHeight=[512,512,512];this.shadowCascadeNearZ=[-1,0.99,0.998];this.shadowCascadeFarZ=[0.99,0.998,1];this.shadowCascadeArray=[];this.shadowMatrix=this.shadowCamera=this.shadowMapSize=this.shadowMap=null};THREE.DirectionalLight.prototype=new THREE.Light;THREE.DirectionalLight.prototype.constructor=THREE.DirectionalLight;
+THREE.PointLight=function(a,b,c){THREE.Light.call(this,a);this.position=new THREE.Vector3(0,0,0);this.intensity=b!==void 0?b:1;this.distance=c!==void 0?c:0};THREE.PointLight.prototype=new THREE.Light;THREE.PointLight.prototype.constructor=THREE.PointLight;
+THREE.Material=function(a){a=a||{};this.id=THREE.MaterialCount++;this.name="";this.opacity=a.opacity!==void 0?a.opacity:1;this.transparent=a.transparent!==void 0?a.transparent:false;this.blending=a.blending!==void 0?a.blending:THREE.NormalBlending;this.blendSrc=a.blendSrc!==void 0?a.blendSrc:THREE.SrcAlphaFactor;this.blendDst=a.blendDst!==void 0?a.blendDst:THREE.OneMinusSrcAlphaFactor;this.blendEquation=a.blendEquation!==void 0?a.blendEquation:THREE.AddEquation;this.depthTest=a.depthTest!==void 0?
+a.depthTest:true;this.depthWrite=a.depthWrite!==void 0?a.depthWrite:true;this.polygonOffset=a.polygonOffset!==void 0?a.polygonOffset:false;this.polygonOffsetFactor=a.polygonOffsetFactor!==void 0?a.polygonOffsetFactor:0;this.polygonOffsetUnits=a.polygonOffsetUnits!==void 0?a.polygonOffsetUnits:0;this.alphaTest=a.alphaTest!==void 0?a.alphaTest:0;this.overdraw=a.overdraw!==void 0?a.overdraw:false;this.needsUpdate=true};THREE.MaterialCount=0;THREE.NoShading=0;THREE.FlatShading=1;THREE.SmoothShading=2;
+THREE.NoColors=0;THREE.FaceColors=1;THREE.VertexColors=2;THREE.NoBlending=0;THREE.NormalBlending=1;THREE.AdditiveBlending=2;THREE.SubtractiveBlending=3;THREE.MultiplyBlending=4;THREE.AdditiveAlphaBlending=5;THREE.CustomBlending=6;THREE.AddEquation=100;THREE.SubtractEquation=101;THREE.ReverseSubtractEquation=102;THREE.ZeroFactor=200;THREE.OneFactor=201;THREE.SrcColorFactor=202;THREE.OneMinusSrcColorFactor=203;THREE.SrcAlphaFactor=204;THREE.OneMinusSrcAlphaFactor=205;THREE.DstAlphaFactor=206;
+THREE.OneMinusDstAlphaFactor=207;THREE.DstColorFactor=208;THREE.OneMinusDstColorFactor=209;THREE.SrcAlphaSaturateFactor=210;
+THREE.LineBasicMaterial=function(a){THREE.Material.call(this,a);a=a||{};this.color=a.color!==void 0?new THREE.Color(a.color):new THREE.Color(16777215);this.linewidth=a.linewidth!==void 0?a.linewidth:1;this.linecap=a.linecap!==void 0?a.linecap:"round";this.linejoin=a.linejoin!==void 0?a.linejoin:"round";this.vertexColors=a.vertexColors?a.vertexColors:false;this.fog=a.fog!==void 0?a.fog:true};THREE.LineBasicMaterial.prototype=new THREE.Material;THREE.LineBasicMaterial.prototype.constructor=THREE.LineBasicMaterial;
+THREE.MeshBasicMaterial=function(a){THREE.Material.call(this,a);a=a||{};this.color=a.color!==void 0?new THREE.Color(a.color):new THREE.Color(16777215);this.map=a.map!==void 0?a.map:null;this.lightMap=a.lightMap!==void 0?a.lightMap:null;this.envMap=a.envMap!==void 0?a.envMap:null;this.combine=a.combine!==void 0?a.combine:THREE.MultiplyOperation;this.reflectivity=a.reflectivity!==void 0?a.reflectivity:1;this.refractionRatio=a.refractionRatio!==void 0?a.refractionRatio:0.98;this.fog=a.fog!==void 0?a.fog:
+true;this.shading=a.shading!==void 0?a.shading:THREE.SmoothShading;this.wireframe=a.wireframe!==void 0?a.wireframe:false;this.wireframeLinewidth=a.wireframeLinewidth!==void 0?a.wireframeLinewidth:1;this.wireframeLinecap=a.wireframeLinecap!==void 0?a.wireframeLinecap:"round";this.wireframeLinejoin=a.wireframeLinejoin!==void 0?a.wireframeLinejoin:"round";this.vertexColors=a.vertexColors!==void 0?a.vertexColors:THREE.NoColors;this.skinning=a.skinning!==void 0?a.skinning:false;this.morphTargets=a.morphTargets!==
+void 0?a.morphTargets:false};THREE.MeshBasicMaterial.prototype=new THREE.Material;THREE.MeshBasicMaterial.prototype.constructor=THREE.MeshBasicMaterial;
+THREE.MeshLambertMaterial=function(a){THREE.Material.call(this,a);a=a||{};this.color=a.color!==void 0?new THREE.Color(a.color):new THREE.Color(16777215);this.ambient=a.ambient!==void 0?new THREE.Color(a.ambient):new THREE.Color(16777215);this.emissive=a.emissive!==void 0?new THREE.Color(a.emissive):new THREE.Color(0);this.wrapAround=a.wrapAround!==void 0?a.wrapAround:false;this.wrapRGB=new THREE.Vector3(1,1,1);this.map=a.map!==void 0?a.map:null;this.lightMap=a.lightMap!==void 0?a.lightMap:null;this.envMap=
+a.envMap!==void 0?a.envMap:null;this.combine=a.combine!==void 0?a.combine:THREE.MultiplyOperation;this.reflectivity=a.reflectivity!==void 0?a.reflectivity:1;this.refractionRatio=a.refractionRatio!==void 0?a.refractionRatio:0.98;this.fog=a.fog!==void 0?a.fog:true;this.shading=a.shading!==void 0?a.shading:THREE.SmoothShading;this.wireframe=a.wireframe!==void 0?a.wireframe:false;this.wireframeLinewidth=a.wireframeLinewidth!==void 0?a.wireframeLinewidth:1;this.wireframeLinecap=a.wireframeLinecap!==void 0?
+a.wireframeLinecap:"round";this.wireframeLinejoin=a.wireframeLinejoin!==void 0?a.wireframeLinejoin:"round";this.vertexColors=a.vertexColors!==void 0?a.vertexColors:THREE.NoColors;this.skinning=a.skinning!==void 0?a.skinning:false;this.morphTargets=a.morphTargets!==void 0?a.morphTargets:false;this.morphNormals=a.morphNormals!==void 0?a.morphNormals:false};THREE.MeshLambertMaterial.prototype=new THREE.Material;THREE.MeshLambertMaterial.prototype.constructor=THREE.MeshLambertMaterial;
+THREE.MeshPhongMaterial=function(a){THREE.Material.call(this,a);a=a||{};this.color=a.color!==void 0?new THREE.Color(a.color):new THREE.Color(16777215);this.ambient=a.ambient!==void 0?new THREE.Color(a.ambient):new THREE.Color(16777215);this.emissive=a.emissive!==void 0?new THREE.Color(a.emissive):new THREE.Color(0);this.specular=a.specular!==void 0?new THREE.Color(a.specular):new THREE.Color(1118481);this.shininess=a.shininess!==void 0?a.shininess:30;this.metal=a.metal!==void 0?a.metal:false;this.perPixel=
+a.perPixel!==void 0?a.perPixel:false;this.wrapAround=a.wrapAround!==void 0?a.wrapAround:false;this.wrapRGB=new THREE.Vector3(1,1,1);this.map=a.map!==void 0?a.map:null;this.lightMap=a.lightMap!==void 0?a.lightMap:null;this.envMap=a.envMap!==void 0?a.envMap:null;this.combine=a.combine!==void 0?a.combine:THREE.MultiplyOperation;this.reflectivity=a.reflectivity!==void 0?a.reflectivity:1;this.refractionRatio=a.refractionRatio!==void 0?a.refractionRatio:0.98;this.fog=a.fog!==void 0?a.fog:true;this.shading=
+a.shading!==void 0?a.shading:THREE.SmoothShading;this.wireframe=a.wireframe!==void 0?a.wireframe:false;this.wireframeLinewidth=a.wireframeLinewidth!==void 0?a.wireframeLinewidth:1;this.wireframeLinecap=a.wireframeLinecap!==void 0?a.wireframeLinecap:"round";this.wireframeLinejoin=a.wireframeLinejoin!==void 0?a.wireframeLinejoin:"round";this.vertexColors=a.vertexColors!==void 0?a.vertexColors:THREE.NoColors;this.skinning=a.skinning!==void 0?a.skinning:false;this.morphTargets=a.morphTargets!==void 0?
+a.morphTargets:false;this.morphNormals=a.morphNormals!==void 0?a.morphNormals:false};THREE.MeshPhongMaterial.prototype=new THREE.Material;THREE.MeshPhongMaterial.prototype.constructor=THREE.MeshPhongMaterial;THREE.MeshDepthMaterial=function(a){THREE.Material.call(this,a);a=a||{};this.shading=a.shading!==void 0?a.shading:THREE.SmoothShading;this.wireframe=a.wireframe!==void 0?a.wireframe:false;this.wireframeLinewidth=a.wireframeLinewidth!==void 0?a.wireframeLinewidth:1};
+THREE.MeshDepthMaterial.prototype=new THREE.Material;THREE.MeshDepthMaterial.prototype.constructor=THREE.MeshDepthMaterial;THREE.MeshNormalMaterial=function(a){THREE.Material.call(this,a);a=a||{};this.shading=a.shading?a.shading:THREE.FlatShading;this.wireframe=a.wireframe?a.wireframe:false;this.wireframeLinewidth=a.wireframeLinewidth?a.wireframeLinewidth:1};THREE.MeshNormalMaterial.prototype=new THREE.Material;THREE.MeshNormalMaterial.prototype.constructor=THREE.MeshNormalMaterial;
+THREE.MeshFaceMaterial=function(){};THREE.ParticleBasicMaterial=function(a){THREE.Material.call(this,a);a=a||{};this.color=a.color!==void 0?new THREE.Color(a.color):new THREE.Color(16777215);this.map=a.map!==void 0?a.map:null;this.size=a.size!==void 0?a.size:1;this.sizeAttenuation=a.sizeAttenuation!==void 0?a.sizeAttenuation:true;this.vertexColors=a.vertexColors!==void 0?a.vertexColors:false;this.fog=a.fog!==void 0?a.fog:true};THREE.ParticleBasicMaterial.prototype=new THREE.Material;
+THREE.ParticleBasicMaterial.prototype.constructor=THREE.ParticleBasicMaterial;THREE.ParticleCanvasMaterial=function(a){THREE.Material.call(this,a);a=a||{};this.color=a.color!==void 0?new THREE.Color(a.color):new THREE.Color(16777215);this.program=a.program!==void 0?a.program:function(){}};THREE.ParticleCanvasMaterial.prototype=new THREE.Material;THREE.ParticleCanvasMaterial.prototype.constructor=THREE.ParticleCanvasMaterial;
+THREE.Texture=function(a,b,c,d,e,f,g,i){this.id=THREE.TextureCount++;this.image=a;this.mapping=b!==void 0?b:new THREE.UVMapping;this.wrapS=c!==void 0?c:THREE.ClampToEdgeWrapping;this.wrapT=d!==void 0?d:THREE.ClampToEdgeWrapping;this.magFilter=e!==void 0?e:THREE.LinearFilter;this.minFilter=f!==void 0?f:THREE.LinearMipMapLinearFilter;this.format=g!==void 0?g:THREE.RGBAFormat;this.type=i!==void 0?i:THREE.UnsignedByteType;this.offset=new THREE.Vector2(0,0);this.repeat=new THREE.Vector2(1,1);this.generateMipmaps=
+true;this.needsUpdate=this.premultiplyAlpha=false;this.onUpdate=null};THREE.Texture.prototype={constructor:THREE.Texture,clone:function(){var a=new THREE.Texture(this.image,this.mapping,this.wrapS,this.wrapT,this.magFilter,this.minFilter,this.format,this.type);a.offset.copy(this.offset);a.repeat.copy(this.repeat);return a}};THREE.TextureCount=0;THREE.MultiplyOperation=0;THREE.MixOperation=1;THREE.UVMapping=function(){};THREE.CubeReflectionMapping=function(){};THREE.CubeRefractionMapping=function(){};
+THREE.SphericalReflectionMapping=function(){};THREE.SphericalRefractionMapping=function(){};THREE.RepeatWrapping=0;THREE.ClampToEdgeWrapping=1;THREE.MirroredRepeatWrapping=2;THREE.NearestFilter=3;THREE.NearestMipMapNearestFilter=4;THREE.NearestMipMapLinearFilter=5;THREE.LinearFilter=6;THREE.LinearMipMapNearestFilter=7;THREE.LinearMipMapLinearFilter=8;THREE.ByteType=9;THREE.UnsignedByteType=10;THREE.ShortType=11;THREE.UnsignedShortType=12;THREE.IntType=13;THREE.UnsignedIntType=14;THREE.FloatType=15;
+THREE.AlphaFormat=16;THREE.RGBFormat=17;THREE.RGBAFormat=18;THREE.LuminanceFormat=19;THREE.LuminanceAlphaFormat=20;THREE.DataTexture=function(a,b,c,d,e,f,g,i,j,h){THREE.Texture.call(this,null,f,g,i,j,h,d,e);this.image={data:a,width:b,height:c}};THREE.DataTexture.prototype=new THREE.Texture;THREE.DataTexture.prototype.constructor=THREE.DataTexture;
+THREE.DataTexture.prototype.clone=function(){var a=new THREE.DataTexture(this.image.data,this.image.width,this.image.height,this.format,this.type,this.mapping,this.wrapS,this.wrapT,this.magFilter,this.minFilter);a.offset.copy(this.offset);a.repeat.copy(this.repeat);return a};THREE.Particle=function(a){THREE.Object3D.call(this);this.material=a};THREE.Particle.prototype=new THREE.Object3D;THREE.Particle.prototype.constructor=THREE.Particle;
+THREE.Line=function(a,b,c){THREE.Object3D.call(this);this.geometry=a;this.material=b!==void 0?b:new THREE.LineBasicMaterial({color:Math.random()*16777215});this.type=c!==void 0?c:THREE.LineStrip;this.geometry&&(this.geometry.boundingSphere||this.geometry.computeBoundingSphere())};THREE.LineStrip=0;THREE.LinePieces=1;THREE.Line.prototype=new THREE.Object3D;THREE.Line.prototype.constructor=THREE.Line;
+THREE.Mesh=function(a,b){THREE.Object3D.call(this);this.geometry=a;this.material=b!==void 0?b:new THREE.MeshBasicMaterial({color:Math.random()*16777215,wireframe:true});if(this.geometry){this.geometry.boundingSphere||this.geometry.computeBoundingSphere();this.boundRadius=a.boundingSphere.radius;if(this.geometry.morphTargets.length){this.morphTargetBase=-1;this.morphTargetForcedOrder=[];this.morphTargetInfluences=[];this.morphTargetDictionary={};for(var c=0;c<this.geometry.morphTargets.length;c++){this.morphTargetInfluences.push(0);
+this.morphTargetDictionary[this.geometry.morphTargets[c].name]=c}}}};THREE.Mesh.prototype=new THREE.Object3D;THREE.Mesh.prototype.constructor=THREE.Mesh;THREE.Mesh.prototype.supr=THREE.Object3D.prototype;THREE.Mesh.prototype.getMorphTargetIndexByName=function(a){if(this.morphTargetDictionary[a]!==void 0)return this.morphTargetDictionary[a];console.log("THREE.Mesh.getMorphTargetIndexByName: morph target "+a+" does not exist. Returning 0.");return 0};
+THREE.Bone=function(a){THREE.Object3D.call(this);this.skin=a;this.skinMatrix=new THREE.Matrix4};THREE.Bone.prototype=new THREE.Object3D;THREE.Bone.prototype.constructor=THREE.Bone;THREE.Bone.prototype.supr=THREE.Object3D.prototype;
+THREE.Bone.prototype.update=function(a,b){this.matrixAutoUpdate&&(b=b|this.updateMatrix());if(b||this.matrixWorldNeedsUpdate){a?this.skinMatrix.multiply(a,this.matrix):this.skinMatrix.copy(this.matrix);this.matrixWorldNeedsUpdate=false;b=true}var c,d=this.children.length;for(c=0;c<d;c++)this.children[c].update(this.skinMatrix,b)};
+THREE.Sprite=function(a){THREE.Object3D.call(this);this.color=a.color!==void 0?new THREE.Color(a.color):new THREE.Color(16777215);this.map=a.map!==void 0?a.map:new THREE.Texture;this.blending=a.blending!==void 0?a.blending:THREE.NormalBlending;this.blendSrc=a.blendSrc!==void 0?a.blendSrc:THREE.SrcAlphaFactor;this.blendDst=a.blendDst!==void 0?a.blendDst:THREE.OneMinusSrcAlphaFactor;this.blendEquation=a.blendEquation!==void 0?a.blendEquation:THREE.AddEquation;this.useScreenCoordinates=a.useScreenCoordinates!==
+void 0?a.useScreenCoordinates:true;this.mergeWith3D=a.mergeWith3D!==void 0?a.mergeWith3D:!this.useScreenCoordinates;this.affectedByDistance=a.affectedByDistance!==void 0?a.affectedByDistance:!this.useScreenCoordinates;this.scaleByViewport=a.scaleByViewport!==void 0?a.scaleByViewport:!this.affectedByDistance;this.alignment=a.alignment instanceof THREE.Vector2?a.alignment:THREE.SpriteAlignment.center;this.rotation3d=this.rotation;this.rotation=0;this.opacity=1;this.uvOffset=new THREE.Vector2(0,0);this.uvScale=
+new THREE.Vector2(1,1)};THREE.Sprite.prototype=new THREE.Object3D;THREE.Sprite.prototype.constructor=THREE.Sprite;THREE.Sprite.prototype.updateMatrix=function(){this.matrix.setPosition(this.position);this.rotation3d.set(0,0,this.rotation);this.matrix.setRotationFromEuler(this.rotation3d);if(this.scale.x!==1||this.scale.y!==1){this.matrix.scale(this.scale);this.boundRadiusScale=Math.max(this.scale.x,this.scale.y)}this.matrixWorldNeedsUpdate=true};THREE.SpriteAlignment={};
+THREE.SpriteAlignment.topLeft=new THREE.Vector2(1,-1);THREE.SpriteAlignment.topCenter=new THREE.Vector2(0,-1);THREE.SpriteAlignment.topRight=new THREE.Vector2(-1,-1);THREE.SpriteAlignment.centerLeft=new THREE.Vector2(1,0);THREE.SpriteAlignment.center=new THREE.Vector2(0,0);THREE.SpriteAlignment.centerRight=new THREE.Vector2(-1,0);THREE.SpriteAlignment.bottomLeft=new THREE.Vector2(1,1);THREE.SpriteAlignment.bottomCenter=new THREE.Vector2(0,1);
+THREE.SpriteAlignment.bottomRight=new THREE.Vector2(-1,1);THREE.Scene=function(){THREE.Object3D.call(this);this.overrideMaterial=this.fog=null;this.matrixAutoUpdate=false;this.__objects=[];this.__lights=[];this.__objectsAdded=[];this.__objectsRemoved=[]};THREE.Scene.prototype=new THREE.Object3D;THREE.Scene.prototype.constructor=THREE.Scene;
+THREE.Scene.prototype.__addObject=function(a){if(a instanceof THREE.Light)this.__lights.indexOf(a)===-1&&this.__lights.push(a);else if(!(a instanceof THREE.Camera||a instanceof THREE.Bone)&&this.__objects.indexOf(a)===-1){this.__objects.push(a);this.__objectsAdded.push(a);var b=this.__objectsRemoved.indexOf(a);b!==-1&&this.__objectsRemoved.splice(b,1)}for(b=0;b<a.children.length;b++)this.__addObject(a.children[b])};
+THREE.Scene.prototype.__removeObject=function(a){if(a instanceof THREE.Light){var b=this.__lights.indexOf(a);b!==-1&&this.__lights.splice(b,1)}else if(!(a instanceof THREE.Camera)){b=this.__objects.indexOf(a);if(b!==-1){this.__objects.splice(b,1);this.__objectsRemoved.push(a);b=this.__objectsAdded.indexOf(a);b!==-1&&this.__objectsAdded.splice(b,1)}}for(b=0;b<a.children.length;b++)this.__removeObject(a.children[b])};
+THREE.CanvasRenderer=function(a){function b(a){if(D!=a)k.globalAlpha=D=a}function c(a){if(L!=a){switch(a){case THREE.NormalBlending:k.globalCompositeOperation="source-over";break;case THREE.AdditiveBlending:k.globalCompositeOperation="lighter";break;case THREE.SubtractiveBlending:k.globalCompositeOperation="darker"}L=a}}function d(a){if(G!=a)k.strokeStyle=G=a}function e(a){if(t!=a)k.fillStyle=t=a}console.log("THREE.CanvasRenderer",THREE.REVISION);var a=a||{},f=this,g,i,j,h=new THREE.Projector,l=a.canvas!==
+void 0?a.canvas:document.createElement("canvas"),o,m,n,p,k=l.getContext("2d"),u=new THREE.Color(0),H=0,D=1,L=0,G=null,t=null,E=null,A=null,F=null,r,v,y,K,$=new THREE.RenderableVertex,da=new THREE.RenderableVertex,O,I,T,Q,U,C,J,R,B,P,N,V,s=new THREE.Color,x=new THREE.Color,w=new THREE.Color,z=new THREE.Color,M=new THREE.Color,la=[],fa=[],ga,ha,ea,aa,Ba,Ca,Da,Ea,Fa,Ga,ma=new THREE.Rectangle,Z=new THREE.Rectangle,Y=new THREE.Rectangle,ya=false,X=new THREE.Color,na=new THREE.Color,oa=new THREE.Color,
+S=new THREE.Vector3,sa,ta,za,ba,ua,va,a=16;sa=document.createElement("canvas");sa.width=sa.height=2;ta=sa.getContext("2d");ta.fillStyle="rgba(0,0,0,1)";ta.fillRect(0,0,2,2);za=ta.getImageData(0,0,2,2);ba=za.data;ua=document.createElement("canvas");ua.width=ua.height=a;va=ua.getContext("2d");va.translate(-a/2,-a/2);va.scale(a,a);a--;this.domElement=l;this.sortElements=this.sortObjects=this.autoClear=true;this.info={render:{vertices:0,faces:0}};this.setSize=function(a,b){o=a;m=b;n=Math.floor(o/2);p=
+Math.floor(m/2);l.width=o;l.height=m;ma.set(-n,-p,n,p);Z.set(-n,-p,n,p);D=1;L=0;F=A=E=t=G=null};this.setClearColor=function(a,b){u.copy(a);H=b!==void 0?b:1;Z.set(-n,-p,n,p)};this.setClearColorHex=function(a,b){u.setHex(a);H=b!==void 0?b:1;Z.set(-n,-p,n,p)};this.clear=function(){k.setTransform(1,0,0,-1,n,p);if(!Z.isEmpty()){Z.minSelf(ma);Z.inflate(2);H<1&&k.clearRect(Math.floor(Z.getX()),Math.floor(Z.getY()),Math.floor(Z.getWidth()),Math.floor(Z.getHeight()));if(H>0){c(THREE.NormalBlending);b(1);e("rgba("+
+Math.floor(u.r*255)+","+Math.floor(u.g*255)+","+Math.floor(u.b*255)+","+H+")");k.fillRect(Math.floor(Z.getX()),Math.floor(Z.getY()),Math.floor(Z.getWidth()),Math.floor(Z.getHeight()))}Z.empty()}};this.render=function(a,l){function o(a){var b,c,d,e;X.setRGB(0,0,0);na.setRGB(0,0,0);oa.setRGB(0,0,0);b=0;for(c=a.length;b<c;b++){d=a[b];e=d.color;if(d instanceof THREE.AmbientLight){X.r=X.r+e.r;X.g=X.g+e.g;X.b=X.b+e.b}else if(d instanceof THREE.DirectionalLight){na.r=na.r+e.r;na.g=na.g+e.g;na.b=na.b+e.b}else if(d instanceof
+THREE.PointLight){oa.r=oa.r+e.r;oa.g=oa.g+e.g;oa.b=oa.b+e.b}}}function m(a,b,c,d){var e,f,g,h,i,j;e=0;for(f=a.length;e<f;e++){g=a[e];h=g.color;if(g instanceof THREE.DirectionalLight){i=g.matrixWorld.getPosition();j=c.dot(i);if(!(j<=0)){j=j*g.intensity;d.r=d.r+h.r*j;d.g=d.g+h.g*j;d.b=d.b+h.b*j}}else if(g instanceof THREE.PointLight){i=g.matrixWorld.getPosition();j=c.dot(S.sub(i,b).normalize());if(!(j<=0)){j=j*(g.distance==0?1:1-Math.min(b.distanceTo(i)/g.distance,1));if(j!=0){j=j*g.intensity;d.r=d.r+
+h.r*j;d.g=d.g+h.g*j;d.b=d.b+h.b*j}}}}}function t(a,f,g){b(g.opacity);c(g.blending);var h,i,j,l,q,o;if(g instanceof THREE.ParticleBasicMaterial){if(g.map){l=g.map.image;q=l.width>>1;o=l.height>>1;g=f.scale.x*n;j=f.scale.y*p;h=g*q;i=j*o;Y.set(a.x-h,a.y-i,a.x+h,a.y+i);if(ma.intersects(Y)){k.save();k.translate(a.x,a.y);k.rotate(-f.rotation);k.scale(g,-j);k.translate(-q,-o);k.drawImage(l,0,0);k.restore()}}}else if(g instanceof THREE.ParticleCanvasMaterial){h=f.scale.x*n;i=f.scale.y*p;Y.set(a.x-h,a.y-i,
+a.x+h,a.y+i);if(ma.intersects(Y)){d(g.color.getContextStyle());e(g.color.getContextStyle());k.save();k.translate(a.x,a.y);k.rotate(-f.rotation);k.scale(h,i);g.program(k);k.restore()}}}function u(a,e,f,g){b(g.opacity);c(g.blending);k.beginPath();k.moveTo(a.positionScreen.x,a.positionScreen.y);k.lineTo(e.positionScreen.x,e.positionScreen.y);k.closePath();if(g instanceof THREE.LineBasicMaterial){a=g.linewidth;if(E!=a)k.lineWidth=E=a;a=g.linecap;if(A!=a)k.lineCap=A=a;a=g.linejoin;if(F!=a)k.lineJoin=F=
+a;d(g.color.getContextStyle());k.stroke();Y.inflate(g.linewidth*2)}}function D(a,d,e,g,h,i,k,q){f.info.render.vertices=f.info.render.vertices+3;f.info.render.faces++;b(q.opacity);c(q.blending);O=a.positionScreen.x;I=a.positionScreen.y;T=d.positionScreen.x;Q=d.positionScreen.y;U=e.positionScreen.x;C=e.positionScreen.y;G(O,I,T,Q,U,C);if(q instanceof THREE.MeshBasicMaterial)if(q.map){if(q.map.mapping instanceof THREE.UVMapping){aa=k.uvs[0];Aa(O,I,T,Q,U,C,aa[g].u,aa[g].v,aa[h].u,aa[h].v,aa[i].u,aa[i].v,
+q.map)}}else if(q.envMap){if(q.envMap.mapping instanceof THREE.SphericalReflectionMapping){a=l.matrixWorldInverse;S.copy(k.vertexNormalsWorld[g]);Ba=(S.x*a.n11+S.y*a.n12+S.z*a.n13)*0.5+0.5;Ca=-(S.x*a.n21+S.y*a.n22+S.z*a.n23)*0.5+0.5;S.copy(k.vertexNormalsWorld[h]);Da=(S.x*a.n11+S.y*a.n12+S.z*a.n13)*0.5+0.5;Ea=-(S.x*a.n21+S.y*a.n22+S.z*a.n23)*0.5+0.5;S.copy(k.vertexNormalsWorld[i]);Fa=(S.x*a.n11+S.y*a.n12+S.z*a.n13)*0.5+0.5;Ga=-(S.x*a.n21+S.y*a.n22+S.z*a.n23)*0.5+0.5;Aa(O,I,T,Q,U,C,Ba,Ca,Da,Ea,Fa,
+Ga,q.envMap)}}else q.wireframe?ja(q.color,q.wireframeLinewidth,q.wireframeLinecap,q.wireframeLinejoin):ia(q.color);else if(q instanceof THREE.MeshLambertMaterial){if(q.map&&!q.wireframe){if(q.map.mapping instanceof THREE.UVMapping){aa=k.uvs[0];Aa(O,I,T,Q,U,C,aa[g].u,aa[g].v,aa[h].u,aa[h].v,aa[i].u,aa[i].v,q.map)}c(THREE.SubtractiveBlending)}if(ya)if(!q.wireframe&&q.shading==THREE.SmoothShading&&k.vertexNormalsWorld.length==3){x.r=w.r=z.r=X.r;x.g=w.g=z.g=X.g;x.b=w.b=z.b=X.b;m(j,k.v1.positionWorld,
+k.vertexNormalsWorld[0],x);m(j,k.v2.positionWorld,k.vertexNormalsWorld[1],w);m(j,k.v3.positionWorld,k.vertexNormalsWorld[2],z);x.r=Math.max(0,Math.min(q.color.r*x.r,1));x.g=Math.max(0,Math.min(q.color.g*x.g,1));x.b=Math.max(0,Math.min(q.color.b*x.b,1));w.r=Math.max(0,Math.min(q.color.r*w.r,1));w.g=Math.max(0,Math.min(q.color.g*w.g,1));w.b=Math.max(0,Math.min(q.color.b*w.b,1));z.r=Math.max(0,Math.min(q.color.r*z.r,1));z.g=Math.max(0,Math.min(q.color.g*z.g,1));z.b=Math.max(0,Math.min(q.color.b*z.b,
+1));M.r=(w.r+z.r)*0.5;M.g=(w.g+z.g)*0.5;M.b=(w.b+z.b)*0.5;ea=wa(x,w,z,M);qa(O,I,T,Q,U,C,0,0,1,0,0,1,ea)}else{s.r=X.r;s.g=X.g;s.b=X.b;m(j,k.centroidWorld,k.normalWorld,s);s.r=Math.max(0,Math.min(q.color.r*s.r,1));s.g=Math.max(0,Math.min(q.color.g*s.g,1));s.b=Math.max(0,Math.min(q.color.b*s.b,1));q.wireframe?ja(s,q.wireframeLinewidth,q.wireframeLinecap,q.wireframeLinejoin):ia(s)}else q.wireframe?ja(q.color,q.wireframeLinewidth,q.wireframeLinecap,q.wireframeLinejoin):ia(q.color)}else if(q instanceof
+THREE.MeshDepthMaterial){ga=l.near;ha=l.far;x.r=x.g=x.b=1-pa(a.positionScreen.z,ga,ha);w.r=w.g=w.b=1-pa(d.positionScreen.z,ga,ha);z.r=z.g=z.b=1-pa(e.positionScreen.z,ga,ha);M.r=(w.r+z.r)*0.5;M.g=(w.g+z.g)*0.5;M.b=(w.b+z.b)*0.5;ea=wa(x,w,z,M);qa(O,I,T,Q,U,C,0,0,1,0,0,1,ea)}else if(q instanceof THREE.MeshNormalMaterial){s.r=ra(k.normalWorld.x);s.g=ra(k.normalWorld.y);s.b=ra(k.normalWorld.z);q.wireframe?ja(s,q.wireframeLinewidth,q.wireframeLinecap,q.wireframeLinejoin):ia(s)}}function L(a,d,e,g,h,i,k,
+q,o){f.info.render.vertices=f.info.render.vertices+4;f.info.render.faces++;b(q.opacity);c(q.blending);if(q.map||q.envMap){D(a,d,g,0,1,3,k,q,o);D(h,e,i,1,2,3,k,q,o)}else{O=a.positionScreen.x;I=a.positionScreen.y;T=d.positionScreen.x;Q=d.positionScreen.y;U=e.positionScreen.x;C=e.positionScreen.y;J=g.positionScreen.x;R=g.positionScreen.y;B=h.positionScreen.x;P=h.positionScreen.y;N=i.positionScreen.x;V=i.positionScreen.y;if(q instanceof THREE.MeshBasicMaterial){H(O,I,T,Q,U,C,J,R);q.wireframe?ja(q.color,
+q.wireframeLinewidth,q.wireframeLinecap,q.wireframeLinejoin):ia(q.color)}else if(q instanceof THREE.MeshLambertMaterial)if(ya)if(!q.wireframe&&q.shading==THREE.SmoothShading&&k.vertexNormalsWorld.length==4){x.r=w.r=z.r=M.r=X.r;x.g=w.g=z.g=M.g=X.g;x.b=w.b=z.b=M.b=X.b;m(j,k.v1.positionWorld,k.vertexNormalsWorld[0],x);m(j,k.v2.positionWorld,k.vertexNormalsWorld[1],w);m(j,k.v4.positionWorld,k.vertexNormalsWorld[3],z);m(j,k.v3.positionWorld,k.vertexNormalsWorld[2],M);x.r=Math.max(0,Math.min(q.color.r*
+x.r,1));x.g=Math.max(0,Math.min(q.color.g*x.g,1));x.b=Math.max(0,Math.min(q.color.b*x.b,1));w.r=Math.max(0,Math.min(q.color.r*w.r,1));w.g=Math.max(0,Math.min(q.color.g*w.g,1));w.b=Math.max(0,Math.min(q.color.b*w.b,1));z.r=Math.max(0,Math.min(q.color.r*z.r,1));z.g=Math.max(0,Math.min(q.color.g*z.g,1));z.b=Math.max(0,Math.min(q.color.b*z.b,1));M.r=Math.max(0,Math.min(q.color.r*M.r,1));M.g=Math.max(0,Math.min(q.color.g*M.g,1));M.b=Math.max(0,Math.min(q.color.b*M.b,1));ea=wa(x,w,z,M);G(O,I,T,Q,J,R);qa(O,
+I,T,Q,J,R,0,0,1,0,0,1,ea);G(B,P,U,C,N,V);qa(B,P,U,C,N,V,1,0,1,1,0,1,ea)}else{s.r=X.r;s.g=X.g;s.b=X.b;m(j,k.centroidWorld,k.normalWorld,s);s.r=Math.max(0,Math.min(q.color.r*s.r,1));s.g=Math.max(0,Math.min(q.color.g*s.g,1));s.b=Math.max(0,Math.min(q.color.b*s.b,1));H(O,I,T,Q,U,C,J,R);q.wireframe?ja(s,q.wireframeLinewidth,q.wireframeLinecap,q.wireframeLinejoin):ia(s)}else{H(O,I,T,Q,U,C,J,R);q.wireframe?ja(q.color,q.wireframeLinewidth,q.wireframeLinecap,q.wireframeLinejoin):ia(q.color)}else if(q instanceof
+THREE.MeshNormalMaterial){s.r=ra(k.normalWorld.x);s.g=ra(k.normalWorld.y);s.b=ra(k.normalWorld.z);H(O,I,T,Q,U,C,J,R);q.wireframe?ja(s,q.wireframeLinewidth,q.wireframeLinecap,q.wireframeLinejoin):ia(s)}else if(q instanceof THREE.MeshDepthMaterial){ga=l.near;ha=l.far;x.r=x.g=x.b=1-pa(a.positionScreen.z,ga,ha);w.r=w.g=w.b=1-pa(d.positionScreen.z,ga,ha);z.r=z.g=z.b=1-pa(g.positionScreen.z,ga,ha);M.r=M.g=M.b=1-pa(e.positionScreen.z,ga,ha);ea=wa(x,w,z,M);G(O,I,T,Q,J,R);qa(O,I,T,Q,J,R,0,0,1,0,0,1,ea);G(B,
+P,U,C,N,V);qa(B,P,U,C,N,V,1,0,1,1,0,1,ea)}}}function G(a,b,c,d,e,f){k.beginPath();k.moveTo(a,b);k.lineTo(c,d);k.lineTo(e,f);k.lineTo(a,b);k.closePath()}function H(a,b,c,d,e,f,g,h){k.beginPath();k.moveTo(a,b);k.lineTo(c,d);k.lineTo(e,f);k.lineTo(g,h);k.lineTo(a,b);k.closePath()}function ja(a,b,c,e){if(E!=b)k.lineWidth=E=b;if(A!=c)k.lineCap=A=c;if(F!=e)k.lineJoin=F=e;d(a.getContextStyle());k.stroke();Y.inflate(b*2)}function ia(a){e(a.getContextStyle());k.fill()}function Aa(a,b,c,d,f,g,h,i,j,l,o,n,m){if(m.image.width!=
+0){if(m.needsUpdate==true||la[m.id]==void 0){var p=m.wrapS==THREE.RepeatWrapping,r=m.wrapT==THREE.RepeatWrapping;la[m.id]=k.createPattern(m.image,p&&r?"repeat":p&&!r?"repeat-x":!p&&r?"repeat-y":"no-repeat");m.needsUpdate=false}e(la[m.id]);var p=m.offset.x/m.repeat.x,r=m.offset.y/m.repeat.y,t=m.image.width*m.repeat.x,u=m.image.height*m.repeat.y,h=(h+p)*t,i=(i+r)*u,c=c-a,d=d-b,f=f-a,g=g-b,j=(j+p)*t-h,l=(l+r)*u-i,o=(o+p)*t-h,n=(n+r)*u-i,p=j*n-o*l;if(p==0){if(fa[m.id]===void 0){b=document.createElement("canvas");
+b.width=m.image.width;b.height=m.image.height;b=b.getContext("2d");b.drawImage(m.image,0,0);fa[m.id]=b.getImageData(0,0,m.image.width,m.image.height).data}b=fa[m.id];h=(Math.floor(h)+Math.floor(i)*m.image.width)*4;s.setRGB(b[h]/255,b[h+1]/255,b[h+2]/255);ia(s)}else{p=1/p;m=(n*c-l*f)*p;l=(n*d-l*g)*p;c=(j*f-o*c)*p;d=(j*g-o*d)*p;a=a-m*h-c*i;h=b-l*h-d*i;k.save();k.transform(m,l,c,d,a,h);k.fill();k.restore()}}}function qa(a,b,c,d,e,f,g,h,i,j,l,m,o){var n,p;n=o.width-1;p=o.height-1;g=g*n;h=h*p;c=c-a;d=
+d-b;e=e-a;f=f-b;i=i*n-g;j=j*p-h;l=l*n-g;m=m*p-h;p=1/(i*m-l*j);n=(m*c-j*e)*p;j=(m*d-j*f)*p;c=(i*e-l*c)*p;d=(i*f-l*d)*p;a=a-n*g-c*h;b=b-j*g-d*h;k.save();k.transform(n,j,c,d,a,b);k.clip();k.drawImage(o,0,0);k.restore()}function wa(a,b,c,d){var e=~~(a.r*255),f=~~(a.g*255),a=~~(a.b*255),g=~~(b.r*255),h=~~(b.g*255),b=~~(b.b*255),i=~~(c.r*255),j=~~(c.g*255),c=~~(c.b*255),k=~~(d.r*255),l=~~(d.g*255),d=~~(d.b*255);ba[0]=e<0?0:e>255?255:e;ba[1]=f<0?0:f>255?255:f;ba[2]=a<0?0:a>255?255:a;ba[4]=g<0?0:g>255?255:
+g;ba[5]=h<0?0:h>255?255:h;ba[6]=b<0?0:b>255?255:b;ba[8]=i<0?0:i>255?255:i;ba[9]=j<0?0:j>255?255:j;ba[10]=c<0?0:c>255?255:c;ba[12]=k<0?0:k>255?255:k;ba[13]=l<0?0:l>255?255:l;ba[14]=d<0?0:d>255?255:d;ta.putImageData(za,0,0);va.drawImage(sa,0,0);return ua}function pa(a,b,c){a=(a-b)/(c-b);return a*a*(3-2*a)}function ra(a){a=(a+1)*0.5;return a<0?0:a>1?1:a}function ka(a,b){var c=b.x-a.x,d=b.y-a.y,e=c*c+d*d;if(e!=0){e=1/Math.sqrt(e);c=c*e;d=d*e;b.x=b.x+c;b.y=b.y+d;a.x=a.x-c;a.y=a.y-d}}var xa,Ha,W,ca;this.autoClear?
+this.clear():k.setTransform(1,0,0,-1,n,p);f.info.render.vertices=0;f.info.render.faces=0;g=h.projectScene(a,l,this.sortElements);i=g.elements;j=g.lights;(ya=j.length>0)&&o(j);xa=0;for(Ha=i.length;xa<Ha;xa++){W=i[xa];ca=W.material;ca=ca instanceof THREE.MeshFaceMaterial?W.faceMaterial:ca;if(!(ca==null||ca.opacity==0)){Y.empty();if(W instanceof THREE.RenderableParticle){r=W;r.x=r.x*n;r.y=r.y*p;t(r,W,ca,a)}else if(W instanceof THREE.RenderableLine){r=W.v1;v=W.v2;r.positionScreen.x=r.positionScreen.x*
+n;r.positionScreen.y=r.positionScreen.y*p;v.positionScreen.x=v.positionScreen.x*n;v.positionScreen.y=v.positionScreen.y*p;Y.addPoint(r.positionScreen.x,r.positionScreen.y);Y.addPoint(v.positionScreen.x,v.positionScreen.y);ma.intersects(Y)&&u(r,v,W,ca,a)}else if(W instanceof THREE.RenderableFace3){r=W.v1;v=W.v2;y=W.v3;r.positionScreen.x=r.positionScreen.x*n;r.positionScreen.y=r.positionScreen.y*p;v.positionScreen.x=v.positionScreen.x*n;v.positionScreen.y=v.positionScreen.y*p;y.positionScreen.x=y.positionScreen.x*
+n;y.positionScreen.y=y.positionScreen.y*p;if(ca.overdraw){ka(r.positionScreen,v.positionScreen);ka(v.positionScreen,y.positionScreen);ka(y.positionScreen,r.positionScreen)}Y.add3Points(r.positionScreen.x,r.positionScreen.y,v.positionScreen.x,v.positionScreen.y,y.positionScreen.x,y.positionScreen.y);ma.intersects(Y)&&D(r,v,y,0,1,2,W,ca,a)}else if(W instanceof THREE.RenderableFace4){r=W.v1;v=W.v2;y=W.v3;K=W.v4;r.positionScreen.x=r.positionScreen.x*n;r.positionScreen.y=r.positionScreen.y*p;v.positionScreen.x=
+v.positionScreen.x*n;v.positionScreen.y=v.positionScreen.y*p;y.positionScreen.x=y.positionScreen.x*n;y.positionScreen.y=y.positionScreen.y*p;K.positionScreen.x=K.positionScreen.x*n;K.positionScreen.y=K.positionScreen.y*p;$.positionScreen.copy(v.positionScreen);da.positionScreen.copy(K.positionScreen);if(ca.overdraw){ka(r.positionScreen,v.positionScreen);ka(v.positionScreen,K.positionScreen);ka(K.positionScreen,r.positionScreen);ka(y.positionScreen,$.positionScreen);ka(y.positionScreen,da.positionScreen)}Y.addPoint(r.positionScreen.x,
+r.positionScreen.y);Y.addPoint(v.positionScreen.x,v.positionScreen.y);Y.addPoint(y.positionScreen.x,y.positionScreen.y);Y.addPoint(K.positionScreen.x,K.positionScreen.y);ma.intersects(Y)&&L(r,v,y,K,$,da,W,ca,a)}Z.addRectangle(Y)}}k.setTransform(1,0,0,1,0,0)}};THREE.RenderableVertex=function(){this.positionWorld=new THREE.Vector3;this.positionScreen=new THREE.Vector4;this.visible=true};THREE.RenderableVertex.prototype.copy=function(a){this.positionWorld.copy(a.positionWorld);this.positionScreen.copy(a.positionScreen)};
+THREE.RenderableFace3=function(){this.v1=new THREE.RenderableVertex;this.v2=new THREE.RenderableVertex;this.v3=new THREE.RenderableVertex;this.centroidWorld=new THREE.Vector3;this.centroidScreen=new THREE.Vector3;this.normalWorld=new THREE.Vector3;this.vertexNormalsWorld=[new THREE.Vector3,new THREE.Vector3,new THREE.Vector3];this.faceMaterial=this.material=null;this.uvs=[[]];this.z=null};
+THREE.RenderableFace4=function(){this.v1=new THREE.RenderableVertex;this.v2=new THREE.RenderableVertex;this.v3=new THREE.RenderableVertex;this.v4=new THREE.RenderableVertex;this.centroidWorld=new THREE.Vector3;this.centroidScreen=new THREE.Vector3;this.normalWorld=new THREE.Vector3;this.vertexNormalsWorld=[new THREE.Vector3,new THREE.Vector3,new THREE.Vector3,new THREE.Vector3];this.faceMaterial=this.material=null;this.uvs=[[]];this.z=null};THREE.RenderableObject=function(){this.z=this.object=null};
+THREE.RenderableParticle=function(){this.rotation=this.z=this.y=this.x=null;this.scale=new THREE.Vector2;this.material=null};THREE.RenderableLine=function(){this.z=null;this.v1=new THREE.RenderableVertex;this.v2=new THREE.RenderableVertex;this.material=null};
+>>>>>>> mrdoob/dev

+ 129 - 0
build/custom/ThreeDOM.js

@@ -1,3 +1,4 @@
+<<<<<<< HEAD
 /**
  * @author mr.doob / http://mrdoob.com/
  */
@@ -4947,3 +4948,131 @@ THREE.RenderableLine = function () {
 	this.material = null;
 
 };
+=======
+// ThreeDOM.js - http://github.com/mrdoob/three.js
+'use strict';var THREE=THREE||{REVISION:"49dev"};self.Int32Array||(self.Int32Array=Array,self.Float32Array=Array);
+(function(){for(var a=0,b=["ms","moz","webkit","o"],c=0;c<b.length&&!window.requestAnimationFrame;++c){window.requestAnimationFrame=window[b[c]+"RequestAnimationFrame"];window.cancelAnimationFrame=window[b[c]+"CancelAnimationFrame"]||window[b[c]+"CancelRequestAnimationFrame"]}if(!window.requestAnimationFrame)window.requestAnimationFrame=function(b){var c=Date.now(),f=Math.max(0,16-(c-a)),g=window.setTimeout(function(){b(c+f)},f);a=c+f;return g};if(!window.cancelAnimationFrame)window.cancelAnimationFrame=
+function(a){clearTimeout(a)}})();THREE.Color=function(a){a!==void 0&&this.setHex(a);return this};
+THREE.Color.prototype={constructor:THREE.Color,r:1,g:1,b:1,copy:function(a){this.r=a.r;this.g=a.g;this.b=a.b;return this},copyGammaToLinear:function(a){this.r=a.r*a.r;this.g=a.g*a.g;this.b=a.b*a.b;return this},copyLinearToGamma:function(a){this.r=Math.sqrt(a.r);this.g=Math.sqrt(a.g);this.b=Math.sqrt(a.b);return this},convertGammaToLinear:function(){var a=this.r,b=this.g,c=this.b;this.r=a*a;this.g=b*b;this.b=c*c;return this},convertLinearToGamma:function(){this.r=Math.sqrt(this.r);this.g=Math.sqrt(this.g);
+this.b=Math.sqrt(this.b);return this},setRGB:function(a,b,c){this.r=a;this.g=b;this.b=c;return this},setHSV:function(a,b,c){var d,e,f;if(c===0)this.r=this.g=this.b=0;else{d=Math.floor(a*6);e=a*6-d;a=c*(1-b);f=c*(1-b*e);b=c*(1-b*(1-e));switch(d){case 1:this.r=f;this.g=c;this.b=a;break;case 2:this.r=a;this.g=c;this.b=b;break;case 3:this.r=a;this.g=f;this.b=c;break;case 4:this.r=b;this.g=a;this.b=c;break;case 5:this.r=c;this.g=a;this.b=f;break;case 6:case 0:this.r=c;this.g=b;this.b=a}}return this},setHex:function(a){a=
+Math.floor(a);this.r=(a>>16&255)/255;this.g=(a>>8&255)/255;this.b=(a&255)/255;return this},lerpSelf:function(a,b){this.r=this.r+(a.r-this.r)*b;this.g=this.g+(a.g-this.g)*b;this.b=this.b+(a.b-this.b)*b;return this},getHex:function(){return Math.floor(this.r*255)<<16^Math.floor(this.g*255)<<8^Math.floor(this.b*255)},getContextStyle:function(){return"rgb("+Math.floor(this.r*255)+","+Math.floor(this.g*255)+","+Math.floor(this.b*255)+")"},clone:function(){return(new THREE.Color).setRGB(this.r,this.g,this.b)}};
+THREE.Vector2=function(a,b){this.x=a||0;this.y=b||0};
+THREE.Vector2.prototype={constructor:THREE.Vector2,set:function(a,b){this.x=a;this.y=b;return this},copy:function(a){this.x=a.x;this.y=a.y;return this},add:function(a,b){this.x=a.x+b.x;this.y=a.y+b.y;return this},addSelf:function(a){this.x=this.x+a.x;this.y=this.y+a.y;return this},sub:function(a,b){this.x=a.x-b.x;this.y=a.y-b.y;return this},subSelf:function(a){this.x=this.x-a.x;this.y=this.y-a.y;return this},multiplyScalar:function(a){this.x=this.x*a;this.y=this.y*a;return this},divideScalar:function(a){if(a){this.x=
+this.x/a;this.y=this.y/a}else this.set(0,0);return this},negate:function(){return this.multiplyScalar(-1)},dot:function(a){return this.x*a.x+this.y*a.y},lengthSq:function(){return this.x*this.x+this.y*this.y},length:function(){return Math.sqrt(this.lengthSq())},normalize:function(){return this.divideScalar(this.length())},distanceTo:function(a){return Math.sqrt(this.distanceToSquared(a))},distanceToSquared:function(a){var b=this.x-a.x,a=this.y-a.y;return b*b+a*a},setLength:function(a){return this.normalize().multiplyScalar(a)},
+lerpSelf:function(a,b){this.x=this.x+(a.x-this.x)*b;this.y=this.y+(a.y-this.y)*b;return this},equals:function(a){return a.x===this.x&&a.y===this.y},isZero:function(){return this.lengthSq()<1.0E-4},clone:function(){return new THREE.Vector2(this.x,this.y)}};THREE.Vector3=function(a,b,c){this.x=a||0;this.y=b||0;this.z=c||0};
+THREE.Vector3.prototype={constructor:THREE.Vector3,set:function(a,b,c){this.x=a;this.y=b;this.z=c;return this},setX:function(a){this.x=a;return this},setY:function(a){this.y=a;return this},setZ:function(a){this.z=a;return this},copy:function(a){this.x=a.x;this.y=a.y;this.z=a.z;return this},add:function(a,b){this.x=a.x+b.x;this.y=a.y+b.y;this.z=a.z+b.z;return this},addSelf:function(a){this.x=this.x+a.x;this.y=this.y+a.y;this.z=this.z+a.z;return this},addScalar:function(a){this.x=this.x+a;this.y=this.y+
+a;this.z=this.z+a;return this},sub:function(a,b){this.x=a.x-b.x;this.y=a.y-b.y;this.z=a.z-b.z;return this},subSelf:function(a){this.x=this.x-a.x;this.y=this.y-a.y;this.z=this.z-a.z;return this},multiply:function(a,b){this.x=a.x*b.x;this.y=a.y*b.y;this.z=a.z*b.z;return this},multiplySelf:function(a){this.x=this.x*a.x;this.y=this.y*a.y;this.z=this.z*a.z;return this},multiplyScalar:function(a){this.x=this.x*a;this.y=this.y*a;this.z=this.z*a;return this},divideSelf:function(a){this.x=this.x/a.x;this.y=
+this.y/a.y;this.z=this.z/a.z;return this},divideScalar:function(a){if(a){this.x=this.x/a;this.y=this.y/a;this.z=this.z/a}else this.z=this.y=this.x=0;return this},negate:function(){return this.multiplyScalar(-1)},dot:function(a){return this.x*a.x+this.y*a.y+this.z*a.z},lengthSq:function(){return this.x*this.x+this.y*this.y+this.z*this.z},length:function(){return Math.sqrt(this.lengthSq())},lengthManhattan:function(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)},normalize:function(){return this.divideScalar(this.length())},
+setLength:function(a){return this.normalize().multiplyScalar(a)},lerpSelf:function(a,b){this.x=this.x+(a.x-this.x)*b;this.y=this.y+(a.y-this.y)*b;this.z=this.z+(a.z-this.z)*b;return this},cross:function(a,b){this.x=a.y*b.z-a.z*b.y;this.y=a.z*b.x-a.x*b.z;this.z=a.x*b.y-a.y*b.x;return this},crossSelf:function(a){var b=this.x,c=this.y,d=this.z;this.x=c*a.z-d*a.y;this.y=d*a.x-b*a.z;this.z=b*a.y-c*a.x;return this},distanceTo:function(a){return Math.sqrt(this.distanceToSquared(a))},distanceToSquared:function(a){return(new THREE.Vector3).sub(this,
+a).lengthSq()},getPositionFromMatrix:function(a){this.x=a.n14;this.y=a.n24;this.z=a.n34;return this},getRotationFromMatrix:function(a,b){var c=b?b.x:1,d=b?b.y:1,e=b?b.z:1,f=a.n11/c,g=a.n12/d,c=a.n21/c,d=a.n22/d,i=a.n23/e,k=a.n33/e;this.y=Math.asin(a.n13/e);e=Math.cos(this.y);if(Math.abs(e)>1.0E-5){this.x=Math.atan2(-i/e,k/e);this.z=Math.atan2(-g/e,f/e)}else{this.x=0;this.z=Math.atan2(c,d)}return this},getScaleFromMatrix:function(a){var b=this.set(a.n11,a.n21,a.n31).length(),c=this.set(a.n12,a.n22,
+a.n32).length(),a=this.set(a.n13,a.n23,a.n33).length();this.x=b;this.y=c;this.z=a},equals:function(a){return a.x===this.x&&a.y===this.y&&a.z===this.z},isZero:function(){return this.lengthSq()<1.0E-4},clone:function(){return new THREE.Vector3(this.x,this.y,this.z)}};THREE.Vector4=function(a,b,c,d){this.x=a||0;this.y=b||0;this.z=c||0;this.w=d!==void 0?d:1};
+THREE.Vector4.prototype={constructor:THREE.Vector4,set:function(a,b,c,d){this.x=a;this.y=b;this.z=c;this.w=d;return this},copy:function(a){this.x=a.x;this.y=a.y;this.z=a.z;this.w=a.w!==void 0?a.w:1;return this},add:function(a,b){this.x=a.x+b.x;this.y=a.y+b.y;this.z=a.z+b.z;this.w=a.w+b.w;return this},addSelf:function(a){this.x=this.x+a.x;this.y=this.y+a.y;this.z=this.z+a.z;this.w=this.w+a.w;return this},sub:function(a,b){this.x=a.x-b.x;this.y=a.y-b.y;this.z=a.z-b.z;this.w=a.w-b.w;return this},subSelf:function(a){this.x=
+this.x-a.x;this.y=this.y-a.y;this.z=this.z-a.z;this.w=this.w-a.w;return this},multiplyScalar:function(a){this.x=this.x*a;this.y=this.y*a;this.z=this.z*a;this.w=this.w*a;return this},divideScalar:function(a){if(a){this.x=this.x/a;this.y=this.y/a;this.z=this.z/a;this.w=this.w/a}else{this.z=this.y=this.x=0;this.w=1}return this},negate:function(){return this.multiplyScalar(-1)},dot:function(a){return this.x*a.x+this.y*a.y+this.z*a.z+this.w*a.w},lengthSq:function(){return this.dot(this)},length:function(){return Math.sqrt(this.lengthSq())},
+normalize:function(){return this.divideScalar(this.length())},setLength:function(a){return this.normalize().multiplyScalar(a)},lerpSelf:function(a,b){this.x=this.x+(a.x-this.x)*b;this.y=this.y+(a.y-this.y)*b;this.z=this.z+(a.z-this.z)*b;this.w=this.w+(a.w-this.w)*b;return this},clone:function(){return new THREE.Vector4(this.x,this.y,this.z,this.w)}};THREE.Frustum=function(){this.planes=[new THREE.Vector4,new THREE.Vector4,new THREE.Vector4,new THREE.Vector4,new THREE.Vector4,new THREE.Vector4]};
+THREE.Frustum.prototype.setFromMatrix=function(a){var b,c=this.planes;c[0].set(a.n41-a.n11,a.n42-a.n12,a.n43-a.n13,a.n44-a.n14);c[1].set(a.n41+a.n11,a.n42+a.n12,a.n43+a.n13,a.n44+a.n14);c[2].set(a.n41+a.n21,a.n42+a.n22,a.n43+a.n23,a.n44+a.n24);c[3].set(a.n41-a.n21,a.n42-a.n22,a.n43-a.n23,a.n44-a.n24);c[4].set(a.n41-a.n31,a.n42-a.n32,a.n43-a.n33,a.n44-a.n34);c[5].set(a.n41+a.n31,a.n42+a.n32,a.n43+a.n33,a.n44+a.n34);for(a=0;a<6;a++){b=c[a];b.divideScalar(Math.sqrt(b.x*b.x+b.y*b.y+b.z*b.z))}};
+THREE.Frustum.prototype.contains=function(a){for(var b=this.planes,c=a.matrixWorld,d=THREE.Frustum.__v1.set(c.getColumnX().length(),c.getColumnY().length(),c.getColumnZ().length()),d=-a.geometry.boundingSphere.radius*Math.max(d.x,Math.max(d.y,d.z)),e=0;e<6;e++){a=b[e].x*c.n14+b[e].y*c.n24+b[e].z*c.n34+b[e].w;if(a<=d)return false}return true};THREE.Frustum.__v1=new THREE.Vector3;
+THREE.Ray=function(a,b){function c(a,b,c){p.sub(c,a);G=p.dot(b);w=o.add(a,q.copy(b).multiplyScalar(G));return C=c.distanceTo(w)}function d(a,b,c,d){p.sub(d,b);o.sub(c,b);q.sub(a,b);D=p.dot(p);r=p.dot(o);x=p.dot(q);t=o.dot(o);y=o.dot(q);H=1/(D*t-r*r);K=(t*x-r*y)*H;E=(D*y-r*x)*H;return K>=0&&E>=0&&K+E<1}this.origin=a||new THREE.Vector3;this.direction=b||new THREE.Vector3;var e=1.0E-4;this.setPrecision=function(a){e=a};var f=new THREE.Vector3,g=new THREE.Vector3,i=new THREE.Vector3,k=new THREE.Vector3,
+h=new THREE.Vector3,j=new THREE.Vector3,l=new THREE.Vector3,n=new THREE.Vector3,m=new THREE.Vector3;this.intersectObject=function(a){var b,o=[];if(a instanceof THREE.Particle){var p=c(this.origin,this.direction,a.matrixWorld.getPosition());if(p>a.scale.x)return[];b={distance:p,point:a.position,face:null,object:a};o.push(b)}else if(a instanceof THREE.Mesh){var p=c(this.origin,this.direction,a.matrixWorld.getPosition()),M=THREE.Frustum.__v1.set(a.matrixWorld.getColumnX().length(),a.matrixWorld.getColumnY().length(),
+a.matrixWorld.getColumnZ().length());if(p>a.geometry.boundingSphere.radius*Math.max(M.x,Math.max(M.y,M.z)))return o;var q,r,t=a.geometry,A=t.vertices,u;a.matrixRotationWorld.extractRotation(a.matrixWorld);p=0;for(M=t.faces.length;p<M;p++){b=t.faces[p];h.copy(this.origin);j.copy(this.direction);u=a.matrixWorld;l=u.multiplyVector3(l.copy(b.centroid)).subSelf(h);n=a.matrixRotationWorld.multiplyVector3(n.copy(b.normal));q=j.dot(n);if(!(Math.abs(q)<e)){r=n.dot(l)/q;if(!(r<0)&&(a.doubleSided||(a.flipSided?
+q>0:q<0))){m.add(h,j.multiplyScalar(r));if(b instanceof THREE.Face3){f=u.multiplyVector3(f.copy(A[b.a]));g=u.multiplyVector3(g.copy(A[b.b]));i=u.multiplyVector3(i.copy(A[b.c]));if(d(m,f,g,i)){b={distance:h.distanceTo(m),point:m.clone(),face:b,object:a};o.push(b)}}else if(b instanceof THREE.Face4){f=u.multiplyVector3(f.copy(A[b.a]));g=u.multiplyVector3(g.copy(A[b.b]));i=u.multiplyVector3(i.copy(A[b.c]));k=u.multiplyVector3(k.copy(A[b.d]));if(d(m,f,g,k)||d(m,g,i,k)){b={distance:h.distanceTo(m),point:m.clone(),
+face:b,object:a};o.push(b)}}}}}}return o};this.intersectObjects=function(a){for(var b=[],c=0,d=a.length;c<d;c++)Array.prototype.push.apply(b,this.intersectObject(a[c]));b.sort(function(a,b){return a.distance-b.distance});return b};var p=new THREE.Vector3,o=new THREE.Vector3,q=new THREE.Vector3,G,w,C,D,r,x,t,y,H,K,E};
+THREE.Rectangle=function(){function a(){f=d-b;g=e-c}var b,c,d,e,f,g,i=true;this.getX=function(){return b};this.getY=function(){return c};this.getWidth=function(){return f};this.getHeight=function(){return g};this.getLeft=function(){return b};this.getTop=function(){return c};this.getRight=function(){return d};this.getBottom=function(){return e};this.set=function(f,h,g,l){i=false;b=f;c=h;d=g;e=l;a()};this.addPoint=function(f,h){if(i){i=false;b=f;c=h;d=f;e=h}else{b=b<f?b:f;c=c<h?c:h;d=d>f?d:f;e=e>h?
+e:h}a()};this.add3Points=function(f,h,g,l,n,m){if(i){i=false;b=f<g?f<n?f:n:g<n?g:n;c=h<l?h<m?h:m:l<m?l:m;d=f>g?f>n?f:n:g>n?g:n;e=h>l?h>m?h:m:l>m?l:m}else{b=f<g?f<n?f<b?f:b:n<b?n:b:g<n?g<b?g:b:n<b?n:b;c=h<l?h<m?h<c?h:c:m<c?m:c:l<m?l<c?l:c:m<c?m:c;d=f>g?f>n?f>d?f:d:n>d?n:d:g>n?g>d?g:d:n>d?n:d;e=h>l?h>m?h>e?h:e:m>e?m:e:l>m?l>e?l:e:m>e?m:e}a()};this.addRectangle=function(f){if(i){i=false;b=f.getLeft();c=f.getTop();d=f.getRight();e=f.getBottom()}else{b=b<f.getLeft()?b:f.getLeft();c=c<f.getTop()?c:f.getTop();
+d=d>f.getRight()?d:f.getRight();e=e>f.getBottom()?e:f.getBottom()}a()};this.inflate=function(f){b=b-f;c=c-f;d=d+f;e=e+f;a()};this.minSelf=function(f){b=b>f.getLeft()?b:f.getLeft();c=c>f.getTop()?c:f.getTop();d=d<f.getRight()?d:f.getRight();e=e<f.getBottom()?e:f.getBottom();a()};this.intersects=function(a){return d<a.getLeft()||b>a.getRight()||e<a.getTop()||c>a.getBottom()?false:true};this.empty=function(){i=true;e=d=c=b=0;a()};this.isEmpty=function(){return i}};
+THREE.Math={clamp:function(a,b,c){return a<b?b:a>c?c:a},clampBottom:function(a,b){return a<b?b:a},mapLinear:function(a,b,c,d,e){return d+(a-b)*(e-d)/(c-b)},random16:function(){return(65280*Math.random()+255*Math.random())/65535},randInt:function(a,b){return a+Math.floor(Math.random()*(b-a+1))},randFloat:function(a,b){return a+Math.random()*(b-a)},randFloatSpread:function(a){return a*(0.5-Math.random())},sign:function(a){return a<0?-1:a>0?1:0}};THREE.Matrix3=function(){this.m=[]};
+THREE.Matrix3.prototype={constructor:THREE.Matrix3,getInverse:function(a){var b=a.n33*a.n22-a.n32*a.n23,c=-a.n33*a.n21+a.n31*a.n23,d=a.n32*a.n21-a.n31*a.n22,e=-a.n33*a.n12+a.n32*a.n13,f=a.n33*a.n11-a.n31*a.n13,g=-a.n32*a.n11+a.n31*a.n12,i=a.n23*a.n12-a.n22*a.n13,k=-a.n23*a.n11+a.n21*a.n13,h=a.n22*a.n11-a.n21*a.n12,a=a.n11*b+a.n21*e+a.n31*i;a===0&&console.warn("Matrix3.getInverse(): determinant == 0");var a=1/a,j=this.m;j[0]=a*b;j[1]=a*c;j[2]=a*d;j[3]=a*e;j[4]=a*f;j[5]=a*g;j[6]=a*i;j[7]=a*k;j[8]=a*
+h;return this},transposeIntoArray:function(a){var b=this.m;a[0]=b[0];a[1]=b[3];a[2]=b[6];a[3]=b[1];a[4]=b[4];a[5]=b[7];a[6]=b[2];a[7]=b[5];a[8]=b[8];return this}};THREE.Matrix4=function(a,b,c,d,e,f,g,i,k,h,j,l,n,m,p,o){this.set(a!==void 0?a:1,b||0,c||0,d||0,e||0,f!==void 0?f:1,g||0,i||0,k||0,h||0,j!==void 0?j:1,l||0,n||0,m||0,p||0,o!==void 0?o:1)};
+THREE.Matrix4.prototype={constructor:THREE.Matrix4,set:function(a,b,c,d,e,f,g,i,k,h,j,l,n,m,p,o){this.n11=a;this.n12=b;this.n13=c;this.n14=d;this.n21=e;this.n22=f;this.n23=g;this.n24=i;this.n31=k;this.n32=h;this.n33=j;this.n34=l;this.n41=n;this.n42=m;this.n43=p;this.n44=o;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(a){this.set(a.n11,a.n12,a.n13,a.n14,a.n21,a.n22,a.n23,a.n24,a.n31,a.n32,a.n33,a.n34,a.n41,a.n42,a.n43,a.n44);return this},lookAt:function(a,
+b,c){var d=THREE.Matrix4.__v1,e=THREE.Matrix4.__v2,f=THREE.Matrix4.__v3;f.sub(a,b).normalize();if(f.length()===0)f.z=1;d.cross(c,f).normalize();if(d.length()===0){f.x=f.x+1.0E-4;d.cross(c,f).normalize()}e.cross(f,d);this.n11=d.x;this.n12=e.x;this.n13=f.x;this.n21=d.y;this.n22=e.y;this.n23=f.y;this.n31=d.z;this.n32=e.z;this.n33=f.z;return this},multiply:function(a,b){var c=a.n11,d=a.n12,e=a.n13,f=a.n14,g=a.n21,i=a.n22,k=a.n23,h=a.n24,j=a.n31,l=a.n32,n=a.n33,m=a.n34,p=a.n41,o=a.n42,q=a.n43,G=a.n44,
+w=b.n11,C=b.n12,D=b.n13,r=b.n14,x=b.n21,t=b.n22,y=b.n23,H=b.n24,K=b.n31,E=b.n32,J=b.n33,Q=b.n34,R=b.n41,S=b.n42,M=b.n43,T=b.n44;this.n11=c*w+d*x+e*K+f*R;this.n12=c*C+d*t+e*E+f*S;this.n13=c*D+d*y+e*J+f*M;this.n14=c*r+d*H+e*Q+f*T;this.n21=g*w+i*x+k*K+h*R;this.n22=g*C+i*t+k*E+h*S;this.n23=g*D+i*y+k*J+h*M;this.n24=g*r+i*H+k*Q+h*T;this.n31=j*w+l*x+n*K+m*R;this.n32=j*C+l*t+n*E+m*S;this.n33=j*D+l*y+n*J+m*M;this.n34=j*r+l*H+n*Q+m*T;this.n41=p*w+o*x+q*K+G*R;this.n42=p*C+o*t+q*E+G*S;this.n43=p*D+o*y+q*J+G*
+M;this.n44=p*r+o*H+q*Q+G*T;return this},multiplySelf:function(a){return this.multiply(this,a)},multiplyToArray:function(a,b,c){this.multiply(a,b);c[0]=this.n11;c[1]=this.n21;c[2]=this.n31;c[3]=this.n41;c[4]=this.n12;c[5]=this.n22;c[6]=this.n32;c[7]=this.n42;c[8]=this.n13;c[9]=this.n23;c[10]=this.n33;c[11]=this.n43;c[12]=this.n14;c[13]=this.n24;c[14]=this.n34;c[15]=this.n44;return this},multiplyScalar:function(a){this.n11=this.n11*a;this.n12=this.n12*a;this.n13=this.n13*a;this.n14=this.n14*a;this.n21=
+this.n21*a;this.n22=this.n22*a;this.n23=this.n23*a;this.n24=this.n24*a;this.n31=this.n31*a;this.n32=this.n32*a;this.n33=this.n33*a;this.n34=this.n34*a;this.n41=this.n41*a;this.n42=this.n42*a;this.n43=this.n43*a;this.n44=this.n44*a;return this},multiplyVector3:function(a){var b=a.x,c=a.y,d=a.z,e=1/(this.n41*b+this.n42*c+this.n43*d+this.n44);a.x=(this.n11*b+this.n12*c+this.n13*d+this.n14)*e;a.y=(this.n21*b+this.n22*c+this.n23*d+this.n24)*e;a.z=(this.n31*b+this.n32*c+this.n33*d+this.n34)*e;return a},
+multiplyVector4:function(a){var b=a.x,c=a.y,d=a.z,e=a.w;a.x=this.n11*b+this.n12*c+this.n13*d+this.n14*e;a.y=this.n21*b+this.n22*c+this.n23*d+this.n24*e;a.z=this.n31*b+this.n32*c+this.n33*d+this.n34*e;a.w=this.n41*b+this.n42*c+this.n43*d+this.n44*e;return a},rotateAxis:function(a){var b=a.x,c=a.y,d=a.z;a.x=b*this.n11+c*this.n12+d*this.n13;a.y=b*this.n21+c*this.n22+d*this.n23;a.z=b*this.n31+c*this.n32+d*this.n33;a.normalize();return a},crossVector:function(a){var b=new THREE.Vector4;b.x=this.n11*a.x+
+this.n12*a.y+this.n13*a.z+this.n14*a.w;b.y=this.n21*a.x+this.n22*a.y+this.n23*a.z+this.n24*a.w;b.z=this.n31*a.x+this.n32*a.y+this.n33*a.z+this.n34*a.w;b.w=a.w?this.n41*a.x+this.n42*a.y+this.n43*a.z+this.n44*a.w:1;return b},determinant:function(){var a=this.n11,b=this.n12,c=this.n13,d=this.n14,e=this.n21,f=this.n22,g=this.n23,i=this.n24,k=this.n31,h=this.n32,j=this.n33,l=this.n34,n=this.n41,m=this.n42,p=this.n43,o=this.n44;return d*g*h*n-c*i*h*n-d*f*j*n+b*i*j*n+c*f*l*n-b*g*l*n-d*g*k*m+c*i*k*m+d*e*
+j*m-a*i*j*m-c*e*l*m+a*g*l*m+d*f*k*p-b*i*k*p-d*e*h*p+a*i*h*p+b*e*l*p-a*f*l*p-c*f*k*o+b*g*k*o+c*e*h*o-a*g*h*o-b*e*j*o+a*f*j*o},transpose:function(){var a;a=this.n21;this.n21=this.n12;this.n12=a;a=this.n31;this.n31=this.n13;this.n13=a;a=this.n32;this.n32=this.n23;this.n23=a;a=this.n41;this.n41=this.n14;this.n14=a;a=this.n42;this.n42=this.n24;this.n24=a;a=this.n43;this.n43=this.n34;this.n34=a;return this},flattenToArray:function(a){a[0]=this.n11;a[1]=this.n21;a[2]=this.n31;a[3]=this.n41;a[4]=this.n12;
+a[5]=this.n22;a[6]=this.n32;a[7]=this.n42;a[8]=this.n13;a[9]=this.n23;a[10]=this.n33;a[11]=this.n43;a[12]=this.n14;a[13]=this.n24;a[14]=this.n34;a[15]=this.n44;return a},flattenToArrayOffset:function(a,b){a[b]=this.n11;a[b+1]=this.n21;a[b+2]=this.n31;a[b+3]=this.n41;a[b+4]=this.n12;a[b+5]=this.n22;a[b+6]=this.n32;a[b+7]=this.n42;a[b+8]=this.n13;a[b+9]=this.n23;a[b+10]=this.n33;a[b+11]=this.n43;a[b+12]=this.n14;a[b+13]=this.n24;a[b+14]=this.n34;a[b+15]=this.n44;return a},getPosition:function(){return THREE.Matrix4.__v1.set(this.n14,
+this.n24,this.n34)},setPosition:function(a){this.n14=a.x;this.n24=a.y;this.n34=a.z;return this},getColumnX:function(){return THREE.Matrix4.__v1.set(this.n11,this.n21,this.n31)},getColumnY:function(){return THREE.Matrix4.__v1.set(this.n12,this.n22,this.n32)},getColumnZ:function(){return THREE.Matrix4.__v1.set(this.n13,this.n23,this.n33)},getInverse:function(a){var b=a.n11,c=a.n12,d=a.n13,e=a.n14,f=a.n21,g=a.n22,i=a.n23,k=a.n24,h=a.n31,j=a.n32,l=a.n33,n=a.n34,m=a.n41,p=a.n42,o=a.n43,q=a.n44;this.n11=
+i*n*p-k*l*p+k*j*o-g*n*o-i*j*q+g*l*q;this.n12=e*l*p-d*n*p-e*j*o+c*n*o+d*j*q-c*l*q;this.n13=d*k*p-e*i*p+e*g*o-c*k*o-d*g*q+c*i*q;this.n14=e*i*j-d*k*j-e*g*l+c*k*l+d*g*n-c*i*n;this.n21=k*l*m-i*n*m-k*h*o+f*n*o+i*h*q-f*l*q;this.n22=d*n*m-e*l*m+e*h*o-b*n*o-d*h*q+b*l*q;this.n23=e*i*m-d*k*m-e*f*o+b*k*o+d*f*q-b*i*q;this.n24=d*k*h-e*i*h+e*f*l-b*k*l-d*f*n+b*i*n;this.n31=g*n*m-k*j*m+k*h*p-f*n*p-g*h*q+f*j*q;this.n32=e*j*m-c*n*m-e*h*p+b*n*p+c*h*q-b*j*q;this.n33=c*k*m-e*g*m+e*f*p-b*k*p-c*f*q+b*g*q;this.n34=e*g*h-
+c*k*h-e*f*j+b*k*j+c*f*n-b*g*n;this.n41=i*j*m-g*l*m-i*h*p+f*l*p+g*h*o-f*j*o;this.n42=c*l*m-d*j*m+d*h*p-b*l*p-c*h*o+b*j*o;this.n43=d*g*m-c*i*m-d*f*p+b*i*p+c*f*o-b*g*o;this.n44=c*i*h-d*g*h+d*f*j-b*i*j-c*f*l+b*g*l;this.multiplyScalar(1/a.determinant());return this},setRotationFromEuler:function(a,b){var c=a.x,d=a.y,e=a.z,f=Math.cos(c),c=Math.sin(c),g=Math.cos(d),d=Math.sin(d),i=Math.cos(e),e=Math.sin(e);switch(b){case "YXZ":var k=g*i,h=g*e,j=d*i,l=d*e;this.n11=k+l*c;this.n12=j*c-h;this.n13=f*d;this.n21=
+f*e;this.n22=f*i;this.n23=-c;this.n31=h*c-j;this.n32=l+k*c;this.n33=f*g;break;case "ZXY":k=g*i;h=g*e;j=d*i;l=d*e;this.n11=k-l*c;this.n12=-f*e;this.n13=j+h*c;this.n21=h+j*c;this.n22=f*i;this.n23=l-k*c;this.n31=-f*d;this.n32=c;this.n33=f*g;break;case "ZYX":k=f*i;h=f*e;j=c*i;l=c*e;this.n11=g*i;this.n12=j*d-h;this.n13=k*d+l;this.n21=g*e;this.n22=l*d+k;this.n23=h*d-j;this.n31=-d;this.n32=c*g;this.n33=f*g;break;case "YZX":k=f*g;h=f*d;j=c*g;l=c*d;this.n11=g*i;this.n12=l-k*e;this.n13=j*e+h;this.n21=e;this.n22=
+f*i;this.n23=-c*i;this.n31=-d*i;this.n32=h*e+j;this.n33=k-l*e;break;case "XZY":k=f*g;h=f*d;j=c*g;l=c*d;this.n11=g*i;this.n12=-e;this.n13=d*i;this.n21=k*e+l;this.n22=f*i;this.n23=h*e-j;this.n31=j*e-h;this.n32=c*i;this.n33=l*e+k;break;default:k=f*i;h=f*e;j=c*i;l=c*e;this.n11=g*i;this.n12=-g*e;this.n13=d;this.n21=h+j*d;this.n22=k-l*d;this.n23=-c*g;this.n31=l-k*d;this.n32=j+h*d;this.n33=f*g}return this},setRotationFromQuaternion:function(a){var b=a.x,c=a.y,d=a.z,e=a.w,f=b+b,g=c+c,i=d+d,a=b*f,k=b*g,b=
+b*i,h=c*g,c=c*i,d=d*i,f=e*f,g=e*g,e=e*i;this.n11=1-(h+d);this.n12=k-e;this.n13=b+g;this.n21=k+e;this.n22=1-(a+d);this.n23=c-f;this.n31=b-g;this.n32=c+f;this.n33=1-(a+h);return this},compose:function(a,b,c){var d=THREE.Matrix4.__m1,e=THREE.Matrix4.__m2;d.identity();d.setRotationFromQuaternion(b);e.makeScale(c.x,c.y,c.z);this.multiply(d,e);this.n14=a.x;this.n24=a.y;this.n34=a.z;return this},decompose:function(a,b,c){var d=THREE.Matrix4.__v1,e=THREE.Matrix4.__v2,f=THREE.Matrix4.__v3;d.set(this.n11,this.n21,
+this.n31);e.set(this.n12,this.n22,this.n32);f.set(this.n13,this.n23,this.n33);a=a instanceof THREE.Vector3?a:new THREE.Vector3;b=b instanceof THREE.Quaternion?b:new THREE.Quaternion;c=c instanceof THREE.Vector3?c:new THREE.Vector3;c.x=d.length();c.y=e.length();c.z=f.length();a.x=this.n14;a.y=this.n24;a.z=this.n34;d=THREE.Matrix4.__m1;d.copy(this);d.n11=d.n11/c.x;d.n21=d.n21/c.x;d.n31=d.n31/c.x;d.n12=d.n12/c.y;d.n22=d.n22/c.y;d.n32=d.n32/c.y;d.n13=d.n13/c.z;d.n23=d.n23/c.z;d.n33=d.n33/c.z;b.setFromRotationMatrix(d);
+return[a,b,c]},extractPosition:function(a){this.n14=a.n14;this.n24=a.n24;this.n34=a.n34;return this},extractRotation:function(a){var b=THREE.Matrix4.__v1,c=1/b.set(a.n11,a.n21,a.n31).length(),d=1/b.set(a.n12,a.n22,a.n32).length(),b=1/b.set(a.n13,a.n23,a.n33).length();this.n11=a.n11*c;this.n21=a.n21*c;this.n31=a.n31*c;this.n12=a.n12*d;this.n22=a.n22*d;this.n32=a.n32*d;this.n13=a.n13*b;this.n23=a.n23*b;this.n33=a.n33*b;return this},translate:function(a){var b=a.x,c=a.y,a=a.z;this.n14=this.n11*b+this.n12*
+c+this.n13*a+this.n14;this.n24=this.n21*b+this.n22*c+this.n23*a+this.n24;this.n34=this.n31*b+this.n32*c+this.n33*a+this.n34;this.n44=this.n41*b+this.n42*c+this.n43*a+this.n44;return this},rotateX:function(a){var b=this.n12,c=this.n22,d=this.n32,e=this.n42,f=this.n13,g=this.n23,i=this.n33,k=this.n43,h=Math.cos(a),a=Math.sin(a);this.n12=h*b+a*f;this.n22=h*c+a*g;this.n32=h*d+a*i;this.n42=h*e+a*k;this.n13=h*f-a*b;this.n23=h*g-a*c;this.n33=h*i-a*d;this.n43=h*k-a*e;return this},rotateY:function(a){var b=
+this.n11,c=this.n21,d=this.n31,e=this.n41,f=this.n13,g=this.n23,i=this.n33,k=this.n43,h=Math.cos(a),a=Math.sin(a);this.n11=h*b-a*f;this.n21=h*c-a*g;this.n31=h*d-a*i;this.n41=h*e-a*k;this.n13=h*f+a*b;this.n23=h*g+a*c;this.n33=h*i+a*d;this.n43=h*k+a*e;return this},rotateZ:function(a){var b=this.n11,c=this.n21,d=this.n31,e=this.n41,f=this.n12,g=this.n22,i=this.n32,k=this.n42,h=Math.cos(a),a=Math.sin(a);this.n11=h*b+a*f;this.n21=h*c+a*g;this.n31=h*d+a*i;this.n41=h*e+a*k;this.n12=h*f-a*b;this.n22=h*g-
+a*c;this.n32=h*i-a*d;this.n42=h*k-a*e;return this},rotateByAxis:function(a,b){if(a.x===1&&a.y===0&&a.z===0)return this.rotateX(b);if(a.x===0&&a.y===1&&a.z===0)return this.rotateY(b);if(a.x===0&&a.y===0&&a.z===1)return this.rotateZ(b);var c=a.x,d=a.y,e=a.z,f=Math.sqrt(c*c+d*d+e*e),c=c/f,d=d/f,e=e/f,f=c*c,g=d*d,i=e*e,k=Math.cos(b),h=Math.sin(b),j=1-k,l=c*d*j,n=c*e*j,j=d*e*j,c=c*h,m=d*h,h=e*h,e=f+(1-f)*k,f=l+h,d=n-m,l=l-h,g=g+(1-g)*k,h=j+c,n=n+m,j=j-c,i=i+(1-i)*k,k=this.n11,c=this.n21,m=this.n31,p=this.n41,
+o=this.n12,q=this.n22,G=this.n32,w=this.n42,C=this.n13,D=this.n23,r=this.n33,x=this.n43;this.n11=e*k+f*o+d*C;this.n21=e*c+f*q+d*D;this.n31=e*m+f*G+d*r;this.n41=e*p+f*w+d*x;this.n12=l*k+g*o+h*C;this.n22=l*c+g*q+h*D;this.n32=l*m+g*G+h*r;this.n42=l*p+g*w+h*x;this.n13=n*k+j*o+i*C;this.n23=n*c+j*q+i*D;this.n33=n*m+j*G+i*r;this.n43=n*p+j*w+i*x;return this},scale:function(a){var b=a.x,c=a.y,a=a.z;this.n11=this.n11*b;this.n12=this.n12*c;this.n13=this.n13*a;this.n21=this.n21*b;this.n22=this.n22*c;this.n23=
+this.n23*a;this.n31=this.n31*b;this.n32=this.n32*c;this.n33=this.n33*a;this.n41=this.n41*b;this.n42=this.n42*c;this.n43=this.n43*a;return this},makeTranslation:function(a,b,c){this.set(1,0,0,a,0,1,0,b,0,0,1,c,0,0,0,1);return this},makeRotationX:function(a){var b=Math.cos(a),a=Math.sin(a);this.set(1,0,0,0,0,b,-a,0,0,a,b,0,0,0,0,1);return this},makeRotationY:function(a){var b=Math.cos(a),a=Math.sin(a);this.set(b,0,a,0,0,1,0,0,-a,0,b,0,0,0,0,1);return this},makeRotationZ:function(a){var b=Math.cos(a),
+a=Math.sin(a);this.set(b,-a,0,0,a,b,0,0,0,0,1,0,0,0,0,1);return this},makeRotationAxis:function(a,b){var c=Math.cos(b),d=Math.sin(b),e=1-c,f=a.x,g=a.y,i=a.z,k=e*f,h=e*g;this.set(k*f+c,k*g-d*i,k*i+d*g,0,k*g+d*i,h*g+c,h*i-d*f,0,k*i-d*g,h*i+d*f,e*i*i+c,0,0,0,0,1);return this},makeScale:function(a,b,c){this.set(a,0,0,0,0,b,0,0,0,0,c,0,0,0,0,1);return this},makeFrustum:function(a,b,c,d,e,f){this.n11=2*e/(b-a);this.n12=0;this.n13=(b+a)/(b-a);this.n21=this.n14=0;this.n22=2*e/(d-c);this.n23=(d+c)/(d-c);this.n32=
+this.n31=this.n24=0;this.n33=-(f+e)/(f-e);this.n34=-2*f*e/(f-e);this.n42=this.n41=0;this.n43=-1;this.n44=0;return this},makePerspective:function(a,b,c,d){var a=c*Math.tan(a*Math.PI/360),e=-a;return this.makeFrustum(e*b,a*b,e,a,c,d)},makeOrthographic:function(a,b,c,d,e,f){var g=b-a,i=c-d,k=f-e;this.n11=2/g;this.n13=this.n12=0;this.n14=-((b+a)/g);this.n21=0;this.n22=2/i;this.n23=0;this.n24=-((c+d)/i);this.n32=this.n31=0;this.n33=-2/k;this.n34=-((f+e)/k);this.n43=this.n42=this.n41=0;this.n44=1;return this},
+clone:function(){return new THREE.Matrix4(this.n11,this.n12,this.n13,this.n14,this.n21,this.n22,this.n23,this.n24,this.n31,this.n32,this.n33,this.n34,this.n41,this.n42,this.n43,this.n44)}};THREE.Matrix4.__v1=new THREE.Vector3;THREE.Matrix4.__v2=new THREE.Vector3;THREE.Matrix4.__v3=new THREE.Vector3;THREE.Matrix4.__m1=new THREE.Matrix4;THREE.Matrix4.__m2=new THREE.Matrix4;
+THREE.Object3D=function(){this.id=THREE.Object3DCount++;this.name="";this.parent=void 0;this.children=[];this.up=new THREE.Vector3(0,1,0);this.position=new THREE.Vector3;this.rotation=new THREE.Vector3;this.eulerOrder="XYZ";this.scale=new THREE.Vector3(1,1,1);this.flipSided=this.doubleSided=false;this.renderDepth=null;this.rotationAutoUpdate=true;this.matrix=new THREE.Matrix4;this.matrixWorld=new THREE.Matrix4;this.matrixRotationWorld=new THREE.Matrix4;this.matrixWorldNeedsUpdate=this.matrixAutoUpdate=
+true;this.quaternion=new THREE.Quaternion;this.useQuaternion=false;this.boundRadius=0;this.boundRadiusScale=1;this.visible=true;this.receiveShadow=this.castShadow=false;this.frustumCulled=true;this._vector=new THREE.Vector3};
+THREE.Object3D.prototype={constructor:THREE.Object3D,applyMatrix:function(a){this.matrix.multiply(a,this.matrix);this.scale.getScaleFromMatrix(this.matrix);this.rotation.getRotationFromMatrix(this.matrix,this.scale);this.position.getPositionFromMatrix(this.matrix)},translate:function(a,b){this.matrix.rotateAxis(b);this.position.addSelf(b.multiplyScalar(a))},translateX:function(a){this.translate(a,this._vector.set(1,0,0))},translateY:function(a){this.translate(a,this._vector.set(0,1,0))},translateZ:function(a){this.translate(a,
+this._vector.set(0,0,1))},lookAt:function(a){this.matrix.lookAt(a,this.position,this.up);this.rotationAutoUpdate&&this.rotation.getRotationFromMatrix(this.matrix)},add:function(a){if(a===this)console.warn("THREE.Object3D.add: An object can't be added as a child of itself.");else if(a instanceof THREE.Object3D){a.parent!==void 0&&a.parent.remove(a);a.parent=this;this.children.push(a);for(var b=this;b.parent!==void 0;)b=b.parent;b!==void 0&&b instanceof THREE.Scene&&b.__addObject(a)}},remove:function(a){var b=
+this.children.indexOf(a);if(b!==-1){a.parent=void 0;this.children.splice(b,1);for(b=this;b.parent!==void 0;)b=b.parent;b!==void 0&&b instanceof THREE.Scene&&b.__removeObject(a)}},getChildByName:function(a,b){var c,d,e;c=0;for(d=this.children.length;c<d;c++){e=this.children[c];if(e.name===a)return e;if(b){e=e.getChildByName(a,b);if(e!==void 0)return e}}},updateMatrix:function(){this.matrix.setPosition(this.position);this.useQuaternion?this.matrix.setRotationFromQuaternion(this.quaternion):this.matrix.setRotationFromEuler(this.rotation,
+this.eulerOrder);if(this.scale.x!==1||this.scale.y!==1||this.scale.z!==1){this.matrix.scale(this.scale);this.boundRadiusScale=Math.max(this.scale.x,Math.max(this.scale.y,this.scale.z))}this.matrixWorldNeedsUpdate=true},updateMatrixWorld:function(a){this.matrixAutoUpdate&&this.updateMatrix();if(this.matrixWorldNeedsUpdate||a){this.parent?this.matrixWorld.multiply(this.parent.matrixWorld,this.matrix):this.matrixWorld.copy(this.matrix);this.matrixWorldNeedsUpdate=false;a=true}for(var b=0,c=this.children.length;b<
+c;b++)this.children[b].updateMatrixWorld(a)}};THREE.Object3DCount=0;
+THREE.Projector=function(){function a(){var a=g[f]=g[f]||new THREE.RenderableObject;f++;return a}function b(){var a=h[k]=h[k]||new THREE.RenderableVertex;k++;return a}function c(a,b){return b.z-a.z}function d(a,b){var c=0,d=1,e=a.z+a.w,f=b.z+b.w,h=-a.z+a.w,g=-b.z+b.w;if(e>=0&&f>=0&&h>=0&&g>=0)return true;if(e<0&&f<0||h<0&&g<0)return false;e<0?c=Math.max(c,e/(e-f)):f<0&&(d=Math.min(d,e/(e-f)));h<0?c=Math.max(c,h/(h-g)):g<0&&(d=Math.min(d,h/(h-g)));if(d<c)return false;a.lerpSelf(b,c);b.lerpSelf(a,1-
+d);return true}var e,f,g=[],i,k,h=[],j,l,n=[],m,p=[],o,q,G=[],w,C,D=[],r={objects:[],sprites:[],lights:[],elements:[]},x=new THREE.Vector3,t=new THREE.Vector4,y=new THREE.Matrix4,H=new THREE.Matrix4,K=new THREE.Frustum,E=new THREE.Vector4,J=new THREE.Vector4;this.projectVector=function(a,b){b.matrixWorldInverse.getInverse(b.matrixWorld);y.multiply(b.projectionMatrix,b.matrixWorldInverse);y.multiplyVector3(a);return a};this.unprojectVector=function(a,b){b.projectionMatrixInverse.getInverse(b.projectionMatrix);
+y.multiply(b.matrixWorld,b.projectionMatrixInverse);y.multiplyVector3(a);return a};this.pickingRay=function(a,b){var c;a.z=-1;c=new THREE.Vector3(a.x,a.y,1);this.unprojectVector(a,b);this.unprojectVector(c,b);c.subSelf(a).normalize();return new THREE.Ray(a,c)};this.projectGraph=function(b,d){f=0;r.objects.length=0;r.sprites.length=0;r.lights.length=0;var h=function(b){if(b.visible!==false){if((b instanceof THREE.Mesh||b instanceof THREE.Line)&&(b.frustumCulled===false||K.contains(b))){x.copy(b.matrixWorld.getPosition());
+y.multiplyVector3(x);e=a();e.object=b;e.z=x.z;r.objects.push(e)}else if(b instanceof THREE.Sprite||b instanceof THREE.Particle){x.copy(b.matrixWorld.getPosition());y.multiplyVector3(x);e=a();e.object=b;e.z=x.z;r.sprites.push(e)}else b instanceof THREE.Light&&r.lights.push(b);for(var c=0,d=b.children.length;c<d;c++)h(b.children[c])}};h(b);d&&r.objects.sort(c);return r};this.projectScene=function(a,e,f){var g=e.near,x=e.far,O=false,U,A,u,I,s,B,z,F,v,L,N,V,W,X,P;C=q=m=l=0;r.elements.length=0;if(e.parent===
+void 0){console.warn("DEPRECATED: Camera hasn't been added to a Scene. Adding it...");a.add(e)}a.updateMatrixWorld();e.matrixWorldInverse.getInverse(e.matrixWorld);y.multiply(e.projectionMatrix,e.matrixWorldInverse);K.setFromMatrix(y);r=this.projectGraph(a,false);a=0;for(U=r.objects.length;a<U;a++){v=r.objects[a].object;L=v.matrixWorld;k=0;if(v instanceof THREE.Mesh){N=v.geometry;V=v.geometry.materials;I=N.vertices;W=N.faces;X=N.faceVertexUvs;N=v.matrixRotationWorld.extractRotation(L);A=0;for(u=I.length;A<
+u;A++){i=b();i.positionWorld.copy(I[A]);L.multiplyVector3(i.positionWorld);i.positionScreen.copy(i.positionWorld);y.multiplyVector4(i.positionScreen);i.positionScreen.x=i.positionScreen.x/i.positionScreen.w;i.positionScreen.y=i.positionScreen.y/i.positionScreen.w;i.visible=i.positionScreen.z>g&&i.positionScreen.z<x}I=0;for(A=W.length;I<A;I++){u=W[I];if(u instanceof THREE.Face3){s=h[u.a];B=h[u.b];z=h[u.c];if(s.visible&&B.visible&&z.visible){O=(z.positionScreen.x-s.positionScreen.x)*(B.positionScreen.y-
+s.positionScreen.y)-(z.positionScreen.y-s.positionScreen.y)*(B.positionScreen.x-s.positionScreen.x)<0;if(v.doubleSided||O!=v.flipSided){F=n[l]=n[l]||new THREE.RenderableFace3;l++;j=F;j.v1.copy(s);j.v2.copy(B);j.v3.copy(z)}else continue}else continue}else if(u instanceof THREE.Face4){s=h[u.a];B=h[u.b];z=h[u.c];F=h[u.d];if(s.visible&&B.visible&&z.visible&&F.visible){O=(F.positionScreen.x-s.positionScreen.x)*(B.positionScreen.y-s.positionScreen.y)-(F.positionScreen.y-s.positionScreen.y)*(B.positionScreen.x-
+s.positionScreen.x)<0||(B.positionScreen.x-z.positionScreen.x)*(F.positionScreen.y-z.positionScreen.y)-(B.positionScreen.y-z.positionScreen.y)*(F.positionScreen.x-z.positionScreen.x)<0;if(v.doubleSided||O!=v.flipSided){P=p[m]=p[m]||new THREE.RenderableFace4;m++;j=P;j.v1.copy(s);j.v2.copy(B);j.v3.copy(z);j.v4.copy(F)}else continue}else continue}j.normalWorld.copy(u.normal);!O&&(v.flipSided||v.doubleSided)&&j.normalWorld.negate();N.multiplyVector3(j.normalWorld);j.centroidWorld.copy(u.centroid);L.multiplyVector3(j.centroidWorld);
+j.centroidScreen.copy(j.centroidWorld);y.multiplyVector3(j.centroidScreen);z=u.vertexNormals;s=0;for(B=z.length;s<B;s++){F=j.vertexNormalsWorld[s];F.copy(z[s]);!O&&(v.flipSided||v.doubleSided)&&F.negate();N.multiplyVector3(F)}s=0;for(B=X.length;s<B;s++)if(P=X[s][I]){z=0;for(F=P.length;z<F;z++)j.uvs[s][z]=P[z]}j.material=v.material;j.faceMaterial=u.materialIndex!==null?V[u.materialIndex]:null;j.z=j.centroidScreen.z;r.elements.push(j)}}else if(v instanceof THREE.Line){H.multiply(y,L);I=v.geometry.vertices;
+s=b();s.positionScreen.copy(I[0]);H.multiplyVector4(s.positionScreen);L=v.type===THREE.LinePieces?2:1;A=1;for(u=I.length;A<u;A++){s=b();s.positionScreen.copy(I[A]);H.multiplyVector4(s.positionScreen);if(!((A+1)%L>0)){B=h[k-2];E.copy(s.positionScreen);J.copy(B.positionScreen);if(d(E,J)){E.multiplyScalar(1/E.w);J.multiplyScalar(1/J.w);V=G[q]=G[q]||new THREE.RenderableLine;q++;o=V;o.v1.positionScreen.copy(E);o.v2.positionScreen.copy(J);o.z=Math.max(E.z,J.z);o.material=v.material;r.elements.push(o)}}}}}a=
+0;for(U=r.sprites.length;a<U;a++){v=r.sprites[a].object;L=v.matrixWorld;if(v instanceof THREE.Particle){t.set(L.n14,L.n24,L.n34,1);y.multiplyVector4(t);t.z=t.z/t.w;if(t.z>0&&t.z<1){g=D[C]=D[C]||new THREE.RenderableParticle;C++;w=g;w.x=t.x/t.w;w.y=t.y/t.w;w.z=t.z;w.rotation=v.rotation.z;w.scale.x=v.scale.x*Math.abs(w.x-(t.x+e.projectionMatrix.n11)/(t.w+e.projectionMatrix.n14));w.scale.y=v.scale.y*Math.abs(w.y-(t.y+e.projectionMatrix.n22)/(t.w+e.projectionMatrix.n24));w.material=v.material;r.elements.push(w)}}}f&&
+r.elements.sort(c);return r}};THREE.Quaternion=function(a,b,c,d){this.x=a||0;this.y=b||0;this.z=c||0;this.w=d!==void 0?d:1};
+THREE.Quaternion.prototype={constructor:THREE.Quaternion,set:function(a,b,c,d){this.x=a;this.y=b;this.z=c;this.w=d;return this},copy:function(a){this.x=a.x;this.y=a.y;this.z=a.z;this.w=a.w;return this},setFromEuler:function(a){var b=Math.PI/360,c=a.x*b,d=a.y*b,e=a.z*b,a=Math.cos(d),d=Math.sin(d),b=Math.cos(-e),e=Math.sin(-e),f=Math.cos(c),c=Math.sin(c),g=a*b,i=d*e;this.w=g*f-i*c;this.x=g*c+i*f;this.y=d*b*f+a*e*c;this.z=a*e*f-d*b*c;return this},setFromAxisAngle:function(a,b){var c=b/2,d=Math.sin(c);
+this.x=a.x*d;this.y=a.y*d;this.z=a.z*d;this.w=Math.cos(c);return this},setFromRotationMatrix:function(a){var b=Math.pow(a.determinant(),1/3);this.w=Math.sqrt(Math.max(0,b+a.n11+a.n22+a.n33))/2;this.x=Math.sqrt(Math.max(0,b+a.n11-a.n22-a.n33))/2;this.y=Math.sqrt(Math.max(0,b-a.n11+a.n22-a.n33))/2;this.z=Math.sqrt(Math.max(0,b-a.n11-a.n22+a.n33))/2;this.x=a.n32-a.n23<0?-Math.abs(this.x):Math.abs(this.x);this.y=a.n13-a.n31<0?-Math.abs(this.y):Math.abs(this.y);this.z=a.n21-a.n12<0?-Math.abs(this.z):Math.abs(this.z);
+this.normalize();return this},calculateW:function(){this.w=-Math.sqrt(Math.abs(1-this.x*this.x-this.y*this.y-this.z*this.z));return this},inverse:function(){this.x=this.x*-1;this.y=this.y*-1;this.z=this.z*-1;return this},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)},normalize:function(){var a=Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w);if(a===0)this.w=this.z=this.y=this.x=0;else{a=1/a;this.x=this.x*a;this.y=this.y*a;this.z=this.z*
+a;this.w=this.w*a}return this},multiply:function(a,b){this.x=a.x*b.w+a.y*b.z-a.z*b.y+a.w*b.x;this.y=-a.x*b.z+a.y*b.w+a.z*b.x+a.w*b.y;this.z=a.x*b.y-a.y*b.x+a.z*b.w+a.w*b.z;this.w=-a.x*b.x-a.y*b.y-a.z*b.z+a.w*b.w;return this},multiplySelf:function(a){var b=this.x,c=this.y,d=this.z,e=this.w,f=a.x,g=a.y,i=a.z,a=a.w;this.x=b*a+e*f+c*i-d*g;this.y=c*a+e*g+d*f-b*i;this.z=d*a+e*i+b*g-c*f;this.w=e*a-b*f-c*g-d*i;return this},multiplyVector3:function(a,b){b||(b=a);var c=a.x,d=a.y,e=a.z,f=this.x,g=this.y,i=this.z,
+k=this.w,h=k*c+g*e-i*d,j=k*d+i*c-f*e,l=k*e+f*d-g*c,c=-f*c-g*d-i*e;b.x=h*k+c*-f+j*-i-l*-g;b.y=j*k+c*-g+l*-f-h*-i;b.z=l*k+c*-i+h*-g-j*-f;return b},clone:function(){return new THREE.Quaternion(this.x,this.y,this.z,this.w)}};
+THREE.Quaternion.slerp=function(a,b,c,d){var e=a.w*b.w+a.x*b.x+a.y*b.y+a.z*b.z;if(e<0){c.w=-b.w;c.x=-b.x;c.y=-b.y;c.z=-b.z;e=-e}else c.copy(b);if(Math.abs(e)>=1){c.w=a.w;c.x=a.x;c.y=a.y;c.z=a.z;return c}var f=Math.acos(e),e=Math.sqrt(1-e*e);if(Math.abs(e)<0.001){c.w=0.5*(a.w+b.w);c.x=0.5*(a.x+b.x);c.y=0.5*(a.y+b.y);c.z=0.5*(a.z+b.z);return c}b=Math.sin((1-d)*f)/e;d=Math.sin(d*f)/e;c.w=a.w*b+c.w*d;c.x=a.x*b+c.x*d;c.y=a.y*b+c.y*d;c.z=a.z*b+c.z*d;return c};THREE.Vertex=THREE.Vector3;
+THREE.Face3=function(a,b,c,d,e,f){this.a=a;this.b=b;this.c=c;this.normal=d instanceof THREE.Vector3?d:new THREE.Vector3;this.vertexNormals=d instanceof Array?d:[];this.color=e instanceof THREE.Color?e:new THREE.Color;this.vertexColors=e instanceof Array?e:[];this.vertexTangents=[];this.materialIndex=f;this.centroid=new THREE.Vector3};
+THREE.Face3.prototype={constructor:THREE.Face3,clone:function(){var a=new THREE.Face3(this.a,this.b,this.c);a.normal.copy(this.normal);a.color.copy(this.color);a.centroid.copy(this.centroid);a.materialIndex=this.materialIndex;var b,c;b=0;for(c=this.vertexNormals.length;b<c;b++)a.vertexNormals[b]=this.vertexNormals[b].clone();b=0;for(c=this.vertexColors.length;b<c;b++)a.vertexColors[b]=this.vertexColors[b].clone();b=0;for(c=this.vertexTangents.length;b<c;b++)a.vertexTangents[b]=this.vertexTangents[b].clone();
+return a}};THREE.Face4=function(a,b,c,d,e,f,g){this.a=a;this.b=b;this.c=c;this.d=d;this.normal=e instanceof THREE.Vector3?e:new THREE.Vector3;this.vertexNormals=e instanceof Array?e:[];this.color=f instanceof THREE.Color?f:new THREE.Color;this.vertexColors=f instanceof Array?f:[];this.vertexTangents=[];this.materialIndex=g;this.centroid=new THREE.Vector3};
+THREE.Face4.prototype={constructor:THREE.Face4,clone:function(){var a=new THREE.Face4(this.a,this.b,this.c,this.d);a.normal.copy(this.normal);a.color.copy(this.color);a.centroid.copy(this.centroid);a.materialIndex=this.materialIndex;var b,c;b=0;for(c=this.vertexNormals.length;b<c;b++)a.vertexNormals[b]=this.vertexNormals[b].clone();b=0;for(c=this.vertexColors.length;b<c;b++)a.vertexColors[b]=this.vertexColors[b].clone();b=0;for(c=this.vertexTangents.length;b<c;b++)a.vertexTangents[b]=this.vertexTangents[b].clone();
+return a}};THREE.UV=function(a,b){this.u=a||0;this.v=b||0};THREE.UV.prototype={constructor:THREE.UV,set:function(a,b){this.u=a;this.v=b;return this},copy:function(a){this.u=a.u;this.v=a.v;return this},lerpSelf:function(a,b){this.u=this.u+(a.u-this.u)*b;this.v=this.v+(a.v-this.v)*b;return this},clone:function(){return new THREE.UV(this.u,this.v)}};
+THREE.Camera=function(){THREE.Object3D.call(this);this.matrixWorldInverse=new THREE.Matrix4;this.projectionMatrix=new THREE.Matrix4;this.projectionMatrixInverse=new THREE.Matrix4};THREE.Camera.prototype=new THREE.Object3D;THREE.Camera.prototype.constructor=THREE.Camera;THREE.Camera.prototype.lookAt=function(a){this.matrix.lookAt(this.position,a,this.up);this.rotationAutoUpdate&&this.rotation.getRotationFromMatrix(this.matrix)};
+THREE.OrthographicCamera=function(a,b,c,d,e,f){THREE.Camera.call(this);this.left=a;this.right=b;this.top=c;this.bottom=d;this.near=e!==void 0?e:0.1;this.far=f!==void 0?f:2E3;this.updateProjectionMatrix()};THREE.OrthographicCamera.prototype=new THREE.Camera;THREE.OrthographicCamera.prototype.constructor=THREE.OrthographicCamera;THREE.OrthographicCamera.prototype.updateProjectionMatrix=function(){this.projectionMatrix.makeOrthographic(this.left,this.right,this.top,this.bottom,this.near,this.far)};
+THREE.PerspectiveCamera=function(a,b,c,d){THREE.Camera.call(this);this.fov=a!==void 0?a:50;this.aspect=b!==void 0?b:1;this.near=c!==void 0?c:0.1;this.far=d!==void 0?d:2E3;this.updateProjectionMatrix()};THREE.PerspectiveCamera.prototype=new THREE.Camera;THREE.PerspectiveCamera.prototype.constructor=THREE.PerspectiveCamera;THREE.PerspectiveCamera.prototype.setLens=function(a,b){this.fov=2*Math.atan((b!==void 0?b:24)/(a*2))*(180/Math.PI);this.updateProjectionMatrix()};
+THREE.PerspectiveCamera.prototype.setViewOffset=function(a,b,c,d,e,f){this.fullWidth=a;this.fullHeight=b;this.x=c;this.y=d;this.width=e;this.height=f;this.updateProjectionMatrix()};
+THREE.PerspectiveCamera.prototype.updateProjectionMatrix=function(){if(this.fullWidth){var a=this.fullWidth/this.fullHeight,b=Math.tan(this.fov*Math.PI/360)*this.near,c=-b,d=a*c,a=Math.abs(a*b-d),c=Math.abs(b-c);this.projectionMatrix.makeFrustum(d+this.x*a/this.fullWidth,d+(this.x+this.width)*a/this.fullWidth,b-(this.y+this.height)*c/this.fullHeight,b-this.y*c/this.fullHeight,this.near,this.far)}else this.projectionMatrix.makePerspective(this.fov,this.aspect,this.near,this.far)};
+THREE.Light=function(a){THREE.Object3D.call(this);this.color=new THREE.Color(a)};THREE.Light.prototype=new THREE.Object3D;THREE.Light.prototype.constructor=THREE.Light;THREE.Light.prototype.supr=THREE.Object3D.prototype;
+THREE.Material=function(a){a=a||{};this.id=THREE.MaterialCount++;this.name="";this.opacity=a.opacity!==void 0?a.opacity:1;this.transparent=a.transparent!==void 0?a.transparent:false;this.blending=a.blending!==void 0?a.blending:THREE.NormalBlending;this.blendSrc=a.blendSrc!==void 0?a.blendSrc:THREE.SrcAlphaFactor;this.blendDst=a.blendDst!==void 0?a.blendDst:THREE.OneMinusSrcAlphaFactor;this.blendEquation=a.blendEquation!==void 0?a.blendEquation:THREE.AddEquation;this.depthTest=a.depthTest!==void 0?
+a.depthTest:true;this.depthWrite=a.depthWrite!==void 0?a.depthWrite:true;this.polygonOffset=a.polygonOffset!==void 0?a.polygonOffset:false;this.polygonOffsetFactor=a.polygonOffsetFactor!==void 0?a.polygonOffsetFactor:0;this.polygonOffsetUnits=a.polygonOffsetUnits!==void 0?a.polygonOffsetUnits:0;this.alphaTest=a.alphaTest!==void 0?a.alphaTest:0;this.overdraw=a.overdraw!==void 0?a.overdraw:false;this.needsUpdate=true};THREE.MaterialCount=0;THREE.NoShading=0;THREE.FlatShading=1;THREE.SmoothShading=2;
+THREE.NoColors=0;THREE.FaceColors=1;THREE.VertexColors=2;THREE.NoBlending=0;THREE.NormalBlending=1;THREE.AdditiveBlending=2;THREE.SubtractiveBlending=3;THREE.MultiplyBlending=4;THREE.AdditiveAlphaBlending=5;THREE.CustomBlending=6;THREE.AddEquation=100;THREE.SubtractEquation=101;THREE.ReverseSubtractEquation=102;THREE.ZeroFactor=200;THREE.OneFactor=201;THREE.SrcColorFactor=202;THREE.OneMinusSrcColorFactor=203;THREE.SrcAlphaFactor=204;THREE.OneMinusSrcAlphaFactor=205;THREE.DstAlphaFactor=206;
+THREE.OneMinusDstAlphaFactor=207;THREE.DstColorFactor=208;THREE.OneMinusDstColorFactor=209;THREE.SrcAlphaSaturateFactor=210;
+THREE.LineBasicMaterial=function(a){THREE.Material.call(this,a);a=a||{};this.color=a.color!==void 0?new THREE.Color(a.color):new THREE.Color(16777215);this.linewidth=a.linewidth!==void 0?a.linewidth:1;this.linecap=a.linecap!==void 0?a.linecap:"round";this.linejoin=a.linejoin!==void 0?a.linejoin:"round";this.vertexColors=a.vertexColors?a.vertexColors:false;this.fog=a.fog!==void 0?a.fog:true};THREE.LineBasicMaterial.prototype=new THREE.Material;THREE.LineBasicMaterial.prototype.constructor=THREE.LineBasicMaterial;
+THREE.MeshBasicMaterial=function(a){THREE.Material.call(this,a);a=a||{};this.color=a.color!==void 0?new THREE.Color(a.color):new THREE.Color(16777215);this.map=a.map!==void 0?a.map:null;this.lightMap=a.lightMap!==void 0?a.lightMap:null;this.envMap=a.envMap!==void 0?a.envMap:null;this.combine=a.combine!==void 0?a.combine:THREE.MultiplyOperation;this.reflectivity=a.reflectivity!==void 0?a.reflectivity:1;this.refractionRatio=a.refractionRatio!==void 0?a.refractionRatio:0.98;this.fog=a.fog!==void 0?a.fog:
+true;this.shading=a.shading!==void 0?a.shading:THREE.SmoothShading;this.wireframe=a.wireframe!==void 0?a.wireframe:false;this.wireframeLinewidth=a.wireframeLinewidth!==void 0?a.wireframeLinewidth:1;this.wireframeLinecap=a.wireframeLinecap!==void 0?a.wireframeLinecap:"round";this.wireframeLinejoin=a.wireframeLinejoin!==void 0?a.wireframeLinejoin:"round";this.vertexColors=a.vertexColors!==void 0?a.vertexColors:THREE.NoColors;this.skinning=a.skinning!==void 0?a.skinning:false;this.morphTargets=a.morphTargets!==
+void 0?a.morphTargets:false};THREE.MeshBasicMaterial.prototype=new THREE.Material;THREE.MeshBasicMaterial.prototype.constructor=THREE.MeshBasicMaterial;
+THREE.ParticleBasicMaterial=function(a){THREE.Material.call(this,a);a=a||{};this.color=a.color!==void 0?new THREE.Color(a.color):new THREE.Color(16777215);this.map=a.map!==void 0?a.map:null;this.size=a.size!==void 0?a.size:1;this.sizeAttenuation=a.sizeAttenuation!==void 0?a.sizeAttenuation:true;this.vertexColors=a.vertexColors!==void 0?a.vertexColors:false;this.fog=a.fog!==void 0?a.fog:true};THREE.ParticleBasicMaterial.prototype=new THREE.Material;
+THREE.ParticleBasicMaterial.prototype.constructor=THREE.ParticleBasicMaterial;THREE.ParticleDOMMaterial=function(a){THREE.Material.call(this);this.domElement=a};
+THREE.Texture=function(a,b,c,d,e,f,g,i){this.id=THREE.TextureCount++;this.image=a;this.mapping=b!==void 0?b:new THREE.UVMapping;this.wrapS=c!==void 0?c:THREE.ClampToEdgeWrapping;this.wrapT=d!==void 0?d:THREE.ClampToEdgeWrapping;this.magFilter=e!==void 0?e:THREE.LinearFilter;this.minFilter=f!==void 0?f:THREE.LinearMipMapLinearFilter;this.format=g!==void 0?g:THREE.RGBAFormat;this.type=i!==void 0?i:THREE.UnsignedByteType;this.offset=new THREE.Vector2(0,0);this.repeat=new THREE.Vector2(1,1);this.generateMipmaps=
+true;this.needsUpdate=this.premultiplyAlpha=false;this.onUpdate=null};THREE.Texture.prototype={constructor:THREE.Texture,clone:function(){var a=new THREE.Texture(this.image,this.mapping,this.wrapS,this.wrapT,this.magFilter,this.minFilter,this.format,this.type);a.offset.copy(this.offset);a.repeat.copy(this.repeat);return a}};THREE.TextureCount=0;THREE.MultiplyOperation=0;THREE.MixOperation=1;THREE.UVMapping=function(){};THREE.CubeReflectionMapping=function(){};THREE.CubeRefractionMapping=function(){};
+THREE.SphericalReflectionMapping=function(){};THREE.SphericalRefractionMapping=function(){};THREE.RepeatWrapping=0;THREE.ClampToEdgeWrapping=1;THREE.MirroredRepeatWrapping=2;THREE.NearestFilter=3;THREE.NearestMipMapNearestFilter=4;THREE.NearestMipMapLinearFilter=5;THREE.LinearFilter=6;THREE.LinearMipMapNearestFilter=7;THREE.LinearMipMapLinearFilter=8;THREE.ByteType=9;THREE.UnsignedByteType=10;THREE.ShortType=11;THREE.UnsignedShortType=12;THREE.IntType=13;THREE.UnsignedIntType=14;THREE.FloatType=15;
+THREE.AlphaFormat=16;THREE.RGBFormat=17;THREE.RGBAFormat=18;THREE.LuminanceFormat=19;THREE.LuminanceAlphaFormat=20;THREE.DataTexture=function(a,b,c,d,e,f,g,i,k,h){THREE.Texture.call(this,null,f,g,i,k,h,d,e);this.image={data:a,width:b,height:c}};THREE.DataTexture.prototype=new THREE.Texture;THREE.DataTexture.prototype.constructor=THREE.DataTexture;
+THREE.DataTexture.prototype.clone=function(){var a=new THREE.DataTexture(this.image.data,this.image.width,this.image.height,this.format,this.type,this.mapping,this.wrapS,this.wrapT,this.magFilter,this.minFilter);a.offset.copy(this.offset);a.repeat.copy(this.repeat);return a};THREE.Particle=function(a){THREE.Object3D.call(this);this.material=a};THREE.Particle.prototype=new THREE.Object3D;THREE.Particle.prototype.constructor=THREE.Particle;
+THREE.Mesh=function(a,b){THREE.Object3D.call(this);this.geometry=a;this.material=b!==void 0?b:new THREE.MeshBasicMaterial({color:Math.random()*16777215,wireframe:true});if(this.geometry){this.geometry.boundingSphere||this.geometry.computeBoundingSphere();this.boundRadius=a.boundingSphere.radius;if(this.geometry.morphTargets.length){this.morphTargetBase=-1;this.morphTargetForcedOrder=[];this.morphTargetInfluences=[];this.morphTargetDictionary={};for(var c=0;c<this.geometry.morphTargets.length;c++){this.morphTargetInfluences.push(0);
+this.morphTargetDictionary[this.geometry.morphTargets[c].name]=c}}}};THREE.Mesh.prototype=new THREE.Object3D;THREE.Mesh.prototype.constructor=THREE.Mesh;THREE.Mesh.prototype.supr=THREE.Object3D.prototype;THREE.Mesh.prototype.getMorphTargetIndexByName=function(a){if(this.morphTargetDictionary[a]!==void 0)return this.morphTargetDictionary[a];console.log("THREE.Mesh.getMorphTargetIndexByName: morph target "+a+" does not exist. Returning 0.");return 0};
+THREE.Line=function(a,b,c){THREE.Object3D.call(this);this.geometry=a;this.material=b!==void 0?b:new THREE.LineBasicMaterial({color:Math.random()*16777215});this.type=c!==void 0?c:THREE.LineStrip;this.geometry&&(this.geometry.boundingSphere||this.geometry.computeBoundingSphere())};THREE.LineStrip=0;THREE.LinePieces=1;THREE.Line.prototype=new THREE.Object3D;THREE.Line.prototype.constructor=THREE.Line;THREE.Bone=function(a){THREE.Object3D.call(this);this.skin=a;this.skinMatrix=new THREE.Matrix4};
+THREE.Bone.prototype=new THREE.Object3D;THREE.Bone.prototype.constructor=THREE.Bone;THREE.Bone.prototype.supr=THREE.Object3D.prototype;THREE.Bone.prototype.update=function(a,b){this.matrixAutoUpdate&&(b=b|this.updateMatrix());if(b||this.matrixWorldNeedsUpdate){a?this.skinMatrix.multiply(a,this.matrix):this.skinMatrix.copy(this.matrix);this.matrixWorldNeedsUpdate=false;b=true}var c,d=this.children.length;for(c=0;c<d;c++)this.children[c].update(this.skinMatrix,b)};
+THREE.Sprite=function(a){THREE.Object3D.call(this);this.color=a.color!==void 0?new THREE.Color(a.color):new THREE.Color(16777215);this.map=a.map!==void 0?a.map:new THREE.Texture;this.blending=a.blending!==void 0?a.blending:THREE.NormalBlending;this.blendSrc=a.blendSrc!==void 0?a.blendSrc:THREE.SrcAlphaFactor;this.blendDst=a.blendDst!==void 0?a.blendDst:THREE.OneMinusSrcAlphaFactor;this.blendEquation=a.blendEquation!==void 0?a.blendEquation:THREE.AddEquation;this.useScreenCoordinates=a.useScreenCoordinates!==
+void 0?a.useScreenCoordinates:true;this.mergeWith3D=a.mergeWith3D!==void 0?a.mergeWith3D:!this.useScreenCoordinates;this.affectedByDistance=a.affectedByDistance!==void 0?a.affectedByDistance:!this.useScreenCoordinates;this.scaleByViewport=a.scaleByViewport!==void 0?a.scaleByViewport:!this.affectedByDistance;this.alignment=a.alignment instanceof THREE.Vector2?a.alignment:THREE.SpriteAlignment.center;this.rotation3d=this.rotation;this.rotation=0;this.opacity=1;this.uvOffset=new THREE.Vector2(0,0);this.uvScale=
+new THREE.Vector2(1,1)};THREE.Sprite.prototype=new THREE.Object3D;THREE.Sprite.prototype.constructor=THREE.Sprite;THREE.Sprite.prototype.updateMatrix=function(){this.matrix.setPosition(this.position);this.rotation3d.set(0,0,this.rotation);this.matrix.setRotationFromEuler(this.rotation3d);if(this.scale.x!==1||this.scale.y!==1){this.matrix.scale(this.scale);this.boundRadiusScale=Math.max(this.scale.x,this.scale.y)}this.matrixWorldNeedsUpdate=true};THREE.SpriteAlignment={};
+THREE.SpriteAlignment.topLeft=new THREE.Vector2(1,-1);THREE.SpriteAlignment.topCenter=new THREE.Vector2(0,-1);THREE.SpriteAlignment.topRight=new THREE.Vector2(-1,-1);THREE.SpriteAlignment.centerLeft=new THREE.Vector2(1,0);THREE.SpriteAlignment.center=new THREE.Vector2(0,0);THREE.SpriteAlignment.centerRight=new THREE.Vector2(-1,0);THREE.SpriteAlignment.bottomLeft=new THREE.Vector2(1,1);THREE.SpriteAlignment.bottomCenter=new THREE.Vector2(0,1);
+THREE.SpriteAlignment.bottomRight=new THREE.Vector2(-1,1);THREE.Scene=function(){THREE.Object3D.call(this);this.overrideMaterial=this.fog=null;this.matrixAutoUpdate=false;this.__objects=[];this.__lights=[];this.__objectsAdded=[];this.__objectsRemoved=[]};THREE.Scene.prototype=new THREE.Object3D;THREE.Scene.prototype.constructor=THREE.Scene;
+THREE.Scene.prototype.__addObject=function(a){if(a instanceof THREE.Light)this.__lights.indexOf(a)===-1&&this.__lights.push(a);else if(!(a instanceof THREE.Camera||a instanceof THREE.Bone)&&this.__objects.indexOf(a)===-1){this.__objects.push(a);this.__objectsAdded.push(a);var b=this.__objectsRemoved.indexOf(a);b!==-1&&this.__objectsRemoved.splice(b,1)}for(b=0;b<a.children.length;b++)this.__addObject(a.children[b])};
+THREE.Scene.prototype.__removeObject=function(a){if(a instanceof THREE.Light){var b=this.__lights.indexOf(a);b!==-1&&this.__lights.splice(b,1)}else if(!(a instanceof THREE.Camera)){b=this.__objects.indexOf(a);if(b!==-1){this.__objects.splice(b,1);this.__objectsRemoved.push(a);b=this.__objectsAdded.indexOf(a);b!==-1&&this.__objectsAdded.splice(b,1)}}for(b=0;b<a.children.length;b++)this.__removeObject(a.children[b])};
+THREE.DOMRenderer=function(){console.log("THREE.DOMRenderer",THREE.REVISION);var a,b,c,d,e,f,g,i=new THREE.Projector;g=function(a){for(var b=document.documentElement,c=0;c<a.length;c++)if(typeof b.style[a[c]]==="string")return a[c];return null}(["transform","MozTransform","WebkitTransform","msTransform","OTransform"]);this.domElement=document.createElement("div");this.setSize=function(a,b){c=a;d=b;e=c/2;f=d/2};this.render=function(c,d){var j,l,n,m,p,o;a=i.projectScene(c,d);b=a.elements;j=0;for(l=
+b.length;j<l;j++){n=b[j];if(n instanceof THREE.RenderableParticle&&n.material instanceof THREE.ParticleDOMMaterial){m=n.material.domElement;p=n.x*e+e-(m.offsetWidth>>1);o=n.y*f+f-(m.offsetHeight>>1);m.style.left=p+"px";m.style.top=o+"px";m.style.zIndex=Math.abs(Math.floor((1-n.z)*d.far/d.near));g&&(m.style[g]="scale("+n.scale.x*e+","+n.scale.y*f+")")}}}};THREE.RenderableParticle=function(){this.rotation=this.z=this.y=this.x=null;this.scale=new THREE.Vector2;this.material=null};
+THREE.RenderableVertex=function(){this.positionWorld=new THREE.Vector3;this.positionScreen=new THREE.Vector4;this.visible=true};THREE.RenderableVertex.prototype.copy=function(a){this.positionWorld.copy(a.positionWorld);this.positionScreen.copy(a.positionScreen)};
+THREE.RenderableFace3=function(){this.v1=new THREE.RenderableVertex;this.v2=new THREE.RenderableVertex;this.v3=new THREE.RenderableVertex;this.centroidWorld=new THREE.Vector3;this.centroidScreen=new THREE.Vector3;this.normalWorld=new THREE.Vector3;this.vertexNormalsWorld=[new THREE.Vector3,new THREE.Vector3,new THREE.Vector3];this.faceMaterial=this.material=null;this.uvs=[[]];this.z=null};
+THREE.RenderableFace4=function(){this.v1=new THREE.RenderableVertex;this.v2=new THREE.RenderableVertex;this.v3=new THREE.RenderableVertex;this.v4=new THREE.RenderableVertex;this.centroidWorld=new THREE.Vector3;this.centroidScreen=new THREE.Vector3;this.normalWorld=new THREE.Vector3;this.vertexNormalsWorld=[new THREE.Vector3,new THREE.Vector3,new THREE.Vector3,new THREE.Vector3];this.faceMaterial=this.material=null;this.uvs=[[]];this.z=null};THREE.RenderableObject=function(){this.z=this.object=null};
+THREE.RenderableParticle=function(){this.rotation=this.z=this.y=this.x=null;this.scale=new THREE.Vector2;this.material=null};THREE.RenderableLine=function(){this.z=null;this.v1=new THREE.RenderableVertex;this.v2=new THREE.RenderableVertex;this.material=null};
+>>>>>>> mrdoob/dev

文件差异内容过多而无法显示
+ 40 - 0
build/custom/ThreeExtras.js


+ 166 - 0
build/custom/ThreeSVG.js

@@ -1,3 +1,4 @@
+<<<<<<< HEAD
 /**
  * @author mr.doob / http://mrdoob.com/
  */
@@ -6309,3 +6310,168 @@ THREE.RenderableLine = function () {
 	this.material = null;
 
 };
+=======
+// ThreeSVG.js - http://github.com/mrdoob/three.js
+'use strict';var THREE=THREE||{REVISION:"49dev"};self.Int32Array||(self.Int32Array=Array,self.Float32Array=Array);
+(function(){for(var a=0,b=["ms","moz","webkit","o"],c=0;c<b.length&&!window.requestAnimationFrame;++c){window.requestAnimationFrame=window[b[c]+"RequestAnimationFrame"];window.cancelAnimationFrame=window[b[c]+"CancelAnimationFrame"]||window[b[c]+"CancelRequestAnimationFrame"]}if(!window.requestAnimationFrame)window.requestAnimationFrame=function(b){var c=Date.now(),f=Math.max(0,16-(c-a)),g=window.setTimeout(function(){b(c+f)},f);a=c+f;return g};if(!window.cancelAnimationFrame)window.cancelAnimationFrame=
+function(a){clearTimeout(a)}})();THREE.Color=function(a){a!==void 0&&this.setHex(a);return this};
+THREE.Color.prototype={constructor:THREE.Color,r:1,g:1,b:1,copy:function(a){this.r=a.r;this.g=a.g;this.b=a.b;return this},copyGammaToLinear:function(a){this.r=a.r*a.r;this.g=a.g*a.g;this.b=a.b*a.b;return this},copyLinearToGamma:function(a){this.r=Math.sqrt(a.r);this.g=Math.sqrt(a.g);this.b=Math.sqrt(a.b);return this},convertGammaToLinear:function(){var a=this.r,b=this.g,c=this.b;this.r=a*a;this.g=b*b;this.b=c*c;return this},convertLinearToGamma:function(){this.r=Math.sqrt(this.r);this.g=Math.sqrt(this.g);
+this.b=Math.sqrt(this.b);return this},setRGB:function(a,b,c){this.r=a;this.g=b;this.b=c;return this},setHSV:function(a,b,c){var d,e,f;if(c===0)this.r=this.g=this.b=0;else{d=Math.floor(a*6);e=a*6-d;a=c*(1-b);f=c*(1-b*e);b=c*(1-b*(1-e));switch(d){case 1:this.r=f;this.g=c;this.b=a;break;case 2:this.r=a;this.g=c;this.b=b;break;case 3:this.r=a;this.g=f;this.b=c;break;case 4:this.r=b;this.g=a;this.b=c;break;case 5:this.r=c;this.g=a;this.b=f;break;case 6:case 0:this.r=c;this.g=b;this.b=a}}return this},setHex:function(a){a=
+Math.floor(a);this.r=(a>>16&255)/255;this.g=(a>>8&255)/255;this.b=(a&255)/255;return this},lerpSelf:function(a,b){this.r=this.r+(a.r-this.r)*b;this.g=this.g+(a.g-this.g)*b;this.b=this.b+(a.b-this.b)*b;return this},getHex:function(){return Math.floor(this.r*255)<<16^Math.floor(this.g*255)<<8^Math.floor(this.b*255)},getContextStyle:function(){return"rgb("+Math.floor(this.r*255)+","+Math.floor(this.g*255)+","+Math.floor(this.b*255)+")"},clone:function(){return(new THREE.Color).setRGB(this.r,this.g,this.b)}};
+THREE.Vector2=function(a,b){this.x=a||0;this.y=b||0};
+THREE.Vector2.prototype={constructor:THREE.Vector2,set:function(a,b){this.x=a;this.y=b;return this},copy:function(a){this.x=a.x;this.y=a.y;return this},add:function(a,b){this.x=a.x+b.x;this.y=a.y+b.y;return this},addSelf:function(a){this.x=this.x+a.x;this.y=this.y+a.y;return this},sub:function(a,b){this.x=a.x-b.x;this.y=a.y-b.y;return this},subSelf:function(a){this.x=this.x-a.x;this.y=this.y-a.y;return this},multiplyScalar:function(a){this.x=this.x*a;this.y=this.y*a;return this},divideScalar:function(a){if(a){this.x=
+this.x/a;this.y=this.y/a}else this.set(0,0);return this},negate:function(){return this.multiplyScalar(-1)},dot:function(a){return this.x*a.x+this.y*a.y},lengthSq:function(){return this.x*this.x+this.y*this.y},length:function(){return Math.sqrt(this.lengthSq())},normalize:function(){return this.divideScalar(this.length())},distanceTo:function(a){return Math.sqrt(this.distanceToSquared(a))},distanceToSquared:function(a){var b=this.x-a.x,a=this.y-a.y;return b*b+a*a},setLength:function(a){return this.normalize().multiplyScalar(a)},
+lerpSelf:function(a,b){this.x=this.x+(a.x-this.x)*b;this.y=this.y+(a.y-this.y)*b;return this},equals:function(a){return a.x===this.x&&a.y===this.y},isZero:function(){return this.lengthSq()<1.0E-4},clone:function(){return new THREE.Vector2(this.x,this.y)}};THREE.Vector3=function(a,b,c){this.x=a||0;this.y=b||0;this.z=c||0};
+THREE.Vector3.prototype={constructor:THREE.Vector3,set:function(a,b,c){this.x=a;this.y=b;this.z=c;return this},setX:function(a){this.x=a;return this},setY:function(a){this.y=a;return this},setZ:function(a){this.z=a;return this},copy:function(a){this.x=a.x;this.y=a.y;this.z=a.z;return this},add:function(a,b){this.x=a.x+b.x;this.y=a.y+b.y;this.z=a.z+b.z;return this},addSelf:function(a){this.x=this.x+a.x;this.y=this.y+a.y;this.z=this.z+a.z;return this},addScalar:function(a){this.x=this.x+a;this.y=this.y+
+a;this.z=this.z+a;return this},sub:function(a,b){this.x=a.x-b.x;this.y=a.y-b.y;this.z=a.z-b.z;return this},subSelf:function(a){this.x=this.x-a.x;this.y=this.y-a.y;this.z=this.z-a.z;return this},multiply:function(a,b){this.x=a.x*b.x;this.y=a.y*b.y;this.z=a.z*b.z;return this},multiplySelf:function(a){this.x=this.x*a.x;this.y=this.y*a.y;this.z=this.z*a.z;return this},multiplyScalar:function(a){this.x=this.x*a;this.y=this.y*a;this.z=this.z*a;return this},divideSelf:function(a){this.x=this.x/a.x;this.y=
+this.y/a.y;this.z=this.z/a.z;return this},divideScalar:function(a){if(a){this.x=this.x/a;this.y=this.y/a;this.z=this.z/a}else this.z=this.y=this.x=0;return this},negate:function(){return this.multiplyScalar(-1)},dot:function(a){return this.x*a.x+this.y*a.y+this.z*a.z},lengthSq:function(){return this.x*this.x+this.y*this.y+this.z*this.z},length:function(){return Math.sqrt(this.lengthSq())},lengthManhattan:function(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)},normalize:function(){return this.divideScalar(this.length())},
+setLength:function(a){return this.normalize().multiplyScalar(a)},lerpSelf:function(a,b){this.x=this.x+(a.x-this.x)*b;this.y=this.y+(a.y-this.y)*b;this.z=this.z+(a.z-this.z)*b;return this},cross:function(a,b){this.x=a.y*b.z-a.z*b.y;this.y=a.z*b.x-a.x*b.z;this.z=a.x*b.y-a.y*b.x;return this},crossSelf:function(a){var b=this.x,c=this.y,d=this.z;this.x=c*a.z-d*a.y;this.y=d*a.x-b*a.z;this.z=b*a.y-c*a.x;return this},distanceTo:function(a){return Math.sqrt(this.distanceToSquared(a))},distanceToSquared:function(a){return(new THREE.Vector3).sub(this,
+a).lengthSq()},getPositionFromMatrix:function(a){this.x=a.n14;this.y=a.n24;this.z=a.n34;return this},getRotationFromMatrix:function(a,b){var c=b?b.x:1,d=b?b.y:1,e=b?b.z:1,f=a.n11/c,g=a.n12/d,c=a.n21/c,d=a.n22/d,i=a.n23/e,j=a.n33/e;this.y=Math.asin(a.n13/e);e=Math.cos(this.y);if(Math.abs(e)>1.0E-5){this.x=Math.atan2(-i/e,j/e);this.z=Math.atan2(-g/e,f/e)}else{this.x=0;this.z=Math.atan2(c,d)}return this},getScaleFromMatrix:function(a){var b=this.set(a.n11,a.n21,a.n31).length(),c=this.set(a.n12,a.n22,
+a.n32).length(),a=this.set(a.n13,a.n23,a.n33).length();this.x=b;this.y=c;this.z=a},equals:function(a){return a.x===this.x&&a.y===this.y&&a.z===this.z},isZero:function(){return this.lengthSq()<1.0E-4},clone:function(){return new THREE.Vector3(this.x,this.y,this.z)}};THREE.Vector4=function(a,b,c,d){this.x=a||0;this.y=b||0;this.z=c||0;this.w=d!==void 0?d:1};
+THREE.Vector4.prototype={constructor:THREE.Vector4,set:function(a,b,c,d){this.x=a;this.y=b;this.z=c;this.w=d;return this},copy:function(a){this.x=a.x;this.y=a.y;this.z=a.z;this.w=a.w!==void 0?a.w:1;return this},add:function(a,b){this.x=a.x+b.x;this.y=a.y+b.y;this.z=a.z+b.z;this.w=a.w+b.w;return this},addSelf:function(a){this.x=this.x+a.x;this.y=this.y+a.y;this.z=this.z+a.z;this.w=this.w+a.w;return this},sub:function(a,b){this.x=a.x-b.x;this.y=a.y-b.y;this.z=a.z-b.z;this.w=a.w-b.w;return this},subSelf:function(a){this.x=
+this.x-a.x;this.y=this.y-a.y;this.z=this.z-a.z;this.w=this.w-a.w;return this},multiplyScalar:function(a){this.x=this.x*a;this.y=this.y*a;this.z=this.z*a;this.w=this.w*a;return this},divideScalar:function(a){if(a){this.x=this.x/a;this.y=this.y/a;this.z=this.z/a;this.w=this.w/a}else{this.z=this.y=this.x=0;this.w=1}return this},negate:function(){return this.multiplyScalar(-1)},dot:function(a){return this.x*a.x+this.y*a.y+this.z*a.z+this.w*a.w},lengthSq:function(){return this.dot(this)},length:function(){return Math.sqrt(this.lengthSq())},
+normalize:function(){return this.divideScalar(this.length())},setLength:function(a){return this.normalize().multiplyScalar(a)},lerpSelf:function(a,b){this.x=this.x+(a.x-this.x)*b;this.y=this.y+(a.y-this.y)*b;this.z=this.z+(a.z-this.z)*b;this.w=this.w+(a.w-this.w)*b;return this},clone:function(){return new THREE.Vector4(this.x,this.y,this.z,this.w)}};THREE.Frustum=function(){this.planes=[new THREE.Vector4,new THREE.Vector4,new THREE.Vector4,new THREE.Vector4,new THREE.Vector4,new THREE.Vector4]};
+THREE.Frustum.prototype.setFromMatrix=function(a){var b,c=this.planes;c[0].set(a.n41-a.n11,a.n42-a.n12,a.n43-a.n13,a.n44-a.n14);c[1].set(a.n41+a.n11,a.n42+a.n12,a.n43+a.n13,a.n44+a.n14);c[2].set(a.n41+a.n21,a.n42+a.n22,a.n43+a.n23,a.n44+a.n24);c[3].set(a.n41-a.n21,a.n42-a.n22,a.n43-a.n23,a.n44-a.n24);c[4].set(a.n41-a.n31,a.n42-a.n32,a.n43-a.n33,a.n44-a.n34);c[5].set(a.n41+a.n31,a.n42+a.n32,a.n43+a.n33,a.n44+a.n34);for(a=0;a<6;a++){b=c[a];b.divideScalar(Math.sqrt(b.x*b.x+b.y*b.y+b.z*b.z))}};
+THREE.Frustum.prototype.contains=function(a){for(var b=this.planes,c=a.matrixWorld,d=THREE.Frustum.__v1.set(c.getColumnX().length(),c.getColumnY().length(),c.getColumnZ().length()),d=-a.geometry.boundingSphere.radius*Math.max(d.x,Math.max(d.y,d.z)),e=0;e<6;e++){a=b[e].x*c.n14+b[e].y*c.n24+b[e].z*c.n34+b[e].w;if(a<=d)return false}return true};THREE.Frustum.__v1=new THREE.Vector3;
+THREE.Ray=function(a,b){function c(a,b,c){o.sub(c,a);H=o.dot(b);w=p.add(a,u.copy(b).multiplyScalar(H));return D=c.distanceTo(w)}function d(a,b,c,d){o.sub(d,b);p.sub(c,b);u.sub(a,b);s=o.dot(o);t=o.dot(p);y=o.dot(u);x=p.dot(p);z=p.dot(u);E=1/(s*x-t*t);B=(x*y-t*z)*E;F=(s*z-t*y)*E;return B>=0&&F>=0&&B+F<1}this.origin=a||new THREE.Vector3;this.direction=b||new THREE.Vector3;var e=1.0E-4;this.setPrecision=function(a){e=a};var f=new THREE.Vector3,g=new THREE.Vector3,i=new THREE.Vector3,j=new THREE.Vector3,
+h=new THREE.Vector3,k=new THREE.Vector3,m=new THREE.Vector3,n=new THREE.Vector3,l=new THREE.Vector3;this.intersectObject=function(a){var b,o=[];if(a instanceof THREE.Particle){var p=c(this.origin,this.direction,a.matrixWorld.getPosition());if(p>a.scale.x)return[];b={distance:p,point:a.position,face:null,object:a};o.push(b)}else if(a instanceof THREE.Mesh){var p=c(this.origin,this.direction,a.matrixWorld.getPosition()),N=THREE.Frustum.__v1.set(a.matrixWorld.getColumnX().length(),a.matrixWorld.getColumnY().length(),
+a.matrixWorld.getColumnZ().length());if(p>a.geometry.boundingSphere.radius*Math.max(N.x,Math.max(N.y,N.z)))return o;var s,t,u=a.geometry,r=u.vertices,q;a.matrixRotationWorld.extractRotation(a.matrixWorld);p=0;for(N=u.faces.length;p<N;p++){b=u.faces[p];h.copy(this.origin);k.copy(this.direction);q=a.matrixWorld;m=q.multiplyVector3(m.copy(b.centroid)).subSelf(h);n=a.matrixRotationWorld.multiplyVector3(n.copy(b.normal));s=k.dot(n);if(!(Math.abs(s)<e)){t=n.dot(m)/s;if(!(t<0)&&(a.doubleSided||(a.flipSided?
+s>0:s<0))){l.add(h,k.multiplyScalar(t));if(b instanceof THREE.Face3){f=q.multiplyVector3(f.copy(r[b.a]));g=q.multiplyVector3(g.copy(r[b.b]));i=q.multiplyVector3(i.copy(r[b.c]));if(d(l,f,g,i)){b={distance:h.distanceTo(l),point:l.clone(),face:b,object:a};o.push(b)}}else if(b instanceof THREE.Face4){f=q.multiplyVector3(f.copy(r[b.a]));g=q.multiplyVector3(g.copy(r[b.b]));i=q.multiplyVector3(i.copy(r[b.c]));j=q.multiplyVector3(j.copy(r[b.d]));if(d(l,f,g,j)||d(l,g,i,j)){b={distance:h.distanceTo(l),point:l.clone(),
+face:b,object:a};o.push(b)}}}}}}return o};this.intersectObjects=function(a){for(var b=[],c=0,d=a.length;c<d;c++)Array.prototype.push.apply(b,this.intersectObject(a[c]));b.sort(function(a,b){return a.distance-b.distance});return b};var o=new THREE.Vector3,p=new THREE.Vector3,u=new THREE.Vector3,H,w,D,s,t,y,x,z,E,B,F};
+THREE.Rectangle=function(){function a(){f=d-b;g=e-c}var b,c,d,e,f,g,i=true;this.getX=function(){return b};this.getY=function(){return c};this.getWidth=function(){return f};this.getHeight=function(){return g};this.getLeft=function(){return b};this.getTop=function(){return c};this.getRight=function(){return d};this.getBottom=function(){return e};this.set=function(f,h,g,m){i=false;b=f;c=h;d=g;e=m;a()};this.addPoint=function(f,h){if(i){i=false;b=f;c=h;d=f;e=h}else{b=b<f?b:f;c=c<h?c:h;d=d>f?d:f;e=e>h?
+e:h}a()};this.add3Points=function(f,h,g,m,n,l){if(i){i=false;b=f<g?f<n?f:n:g<n?g:n;c=h<m?h<l?h:l:m<l?m:l;d=f>g?f>n?f:n:g>n?g:n;e=h>m?h>l?h:l:m>l?m:l}else{b=f<g?f<n?f<b?f:b:n<b?n:b:g<n?g<b?g:b:n<b?n:b;c=h<m?h<l?h<c?h:c:l<c?l:c:m<l?m<c?m:c:l<c?l:c;d=f>g?f>n?f>d?f:d:n>d?n:d:g>n?g>d?g:d:n>d?n:d;e=h>m?h>l?h>e?h:e:l>e?l:e:m>l?m>e?m:e:l>e?l:e}a()};this.addRectangle=function(f){if(i){i=false;b=f.getLeft();c=f.getTop();d=f.getRight();e=f.getBottom()}else{b=b<f.getLeft()?b:f.getLeft();c=c<f.getTop()?c:f.getTop();
+d=d>f.getRight()?d:f.getRight();e=e>f.getBottom()?e:f.getBottom()}a()};this.inflate=function(f){b=b-f;c=c-f;d=d+f;e=e+f;a()};this.minSelf=function(f){b=b>f.getLeft()?b:f.getLeft();c=c>f.getTop()?c:f.getTop();d=d<f.getRight()?d:f.getRight();e=e<f.getBottom()?e:f.getBottom();a()};this.intersects=function(a){return d<a.getLeft()||b>a.getRight()||e<a.getTop()||c>a.getBottom()?false:true};this.empty=function(){i=true;e=d=c=b=0;a()};this.isEmpty=function(){return i}};
+THREE.Math={clamp:function(a,b,c){return a<b?b:a>c?c:a},clampBottom:function(a,b){return a<b?b:a},mapLinear:function(a,b,c,d,e){return d+(a-b)*(e-d)/(c-b)},random16:function(){return(65280*Math.random()+255*Math.random())/65535},randInt:function(a,b){return a+Math.floor(Math.random()*(b-a+1))},randFloat:function(a,b){return a+Math.random()*(b-a)},randFloatSpread:function(a){return a*(0.5-Math.random())},sign:function(a){return a<0?-1:a>0?1:0}};THREE.Matrix3=function(){this.m=[]};
+THREE.Matrix3.prototype={constructor:THREE.Matrix3,getInverse:function(a){var b=a.n33*a.n22-a.n32*a.n23,c=-a.n33*a.n21+a.n31*a.n23,d=a.n32*a.n21-a.n31*a.n22,e=-a.n33*a.n12+a.n32*a.n13,f=a.n33*a.n11-a.n31*a.n13,g=-a.n32*a.n11+a.n31*a.n12,i=a.n23*a.n12-a.n22*a.n13,j=-a.n23*a.n11+a.n21*a.n13,h=a.n22*a.n11-a.n21*a.n12,a=a.n11*b+a.n21*e+a.n31*i;a===0&&console.warn("Matrix3.getInverse(): determinant == 0");var a=1/a,k=this.m;k[0]=a*b;k[1]=a*c;k[2]=a*d;k[3]=a*e;k[4]=a*f;k[5]=a*g;k[6]=a*i;k[7]=a*j;k[8]=a*
+h;return this},transposeIntoArray:function(a){var b=this.m;a[0]=b[0];a[1]=b[3];a[2]=b[6];a[3]=b[1];a[4]=b[4];a[5]=b[7];a[6]=b[2];a[7]=b[5];a[8]=b[8];return this}};THREE.Matrix4=function(a,b,c,d,e,f,g,i,j,h,k,m,n,l,o,p){this.set(a!==void 0?a:1,b||0,c||0,d||0,e||0,f!==void 0?f:1,g||0,i||0,j||0,h||0,k!==void 0?k:1,m||0,n||0,l||0,o||0,p!==void 0?p:1)};
+THREE.Matrix4.prototype={constructor:THREE.Matrix4,set:function(a,b,c,d,e,f,g,i,j,h,k,m,n,l,o,p){this.n11=a;this.n12=b;this.n13=c;this.n14=d;this.n21=e;this.n22=f;this.n23=g;this.n24=i;this.n31=j;this.n32=h;this.n33=k;this.n34=m;this.n41=n;this.n42=l;this.n43=o;this.n44=p;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(a){this.set(a.n11,a.n12,a.n13,a.n14,a.n21,a.n22,a.n23,a.n24,a.n31,a.n32,a.n33,a.n34,a.n41,a.n42,a.n43,a.n44);return this},lookAt:function(a,
+b,c){var d=THREE.Matrix4.__v1,e=THREE.Matrix4.__v2,f=THREE.Matrix4.__v3;f.sub(a,b).normalize();if(f.length()===0)f.z=1;d.cross(c,f).normalize();if(d.length()===0){f.x=f.x+1.0E-4;d.cross(c,f).normalize()}e.cross(f,d);this.n11=d.x;this.n12=e.x;this.n13=f.x;this.n21=d.y;this.n22=e.y;this.n23=f.y;this.n31=d.z;this.n32=e.z;this.n33=f.z;return this},multiply:function(a,b){var c=a.n11,d=a.n12,e=a.n13,f=a.n14,g=a.n21,i=a.n22,j=a.n23,h=a.n24,k=a.n31,m=a.n32,n=a.n33,l=a.n34,o=a.n41,p=a.n42,u=a.n43,H=a.n44,
+w=b.n11,D=b.n12,s=b.n13,t=b.n14,y=b.n21,x=b.n22,z=b.n23,E=b.n24,B=b.n31,F=b.n32,A=b.n33,L=b.n34,P=b.n41,M=b.n42,N=b.n43,T=b.n44;this.n11=c*w+d*y+e*B+f*P;this.n12=c*D+d*x+e*F+f*M;this.n13=c*s+d*z+e*A+f*N;this.n14=c*t+d*E+e*L+f*T;this.n21=g*w+i*y+j*B+h*P;this.n22=g*D+i*x+j*F+h*M;this.n23=g*s+i*z+j*A+h*N;this.n24=g*t+i*E+j*L+h*T;this.n31=k*w+m*y+n*B+l*P;this.n32=k*D+m*x+n*F+l*M;this.n33=k*s+m*z+n*A+l*N;this.n34=k*t+m*E+n*L+l*T;this.n41=o*w+p*y+u*B+H*P;this.n42=o*D+p*x+u*F+H*M;this.n43=o*s+p*z+u*A+H*
+N;this.n44=o*t+p*E+u*L+H*T;return this},multiplySelf:function(a){return this.multiply(this,a)},multiplyToArray:function(a,b,c){this.multiply(a,b);c[0]=this.n11;c[1]=this.n21;c[2]=this.n31;c[3]=this.n41;c[4]=this.n12;c[5]=this.n22;c[6]=this.n32;c[7]=this.n42;c[8]=this.n13;c[9]=this.n23;c[10]=this.n33;c[11]=this.n43;c[12]=this.n14;c[13]=this.n24;c[14]=this.n34;c[15]=this.n44;return this},multiplyScalar:function(a){this.n11=this.n11*a;this.n12=this.n12*a;this.n13=this.n13*a;this.n14=this.n14*a;this.n21=
+this.n21*a;this.n22=this.n22*a;this.n23=this.n23*a;this.n24=this.n24*a;this.n31=this.n31*a;this.n32=this.n32*a;this.n33=this.n33*a;this.n34=this.n34*a;this.n41=this.n41*a;this.n42=this.n42*a;this.n43=this.n43*a;this.n44=this.n44*a;return this},multiplyVector3:function(a){var b=a.x,c=a.y,d=a.z,e=1/(this.n41*b+this.n42*c+this.n43*d+this.n44);a.x=(this.n11*b+this.n12*c+this.n13*d+this.n14)*e;a.y=(this.n21*b+this.n22*c+this.n23*d+this.n24)*e;a.z=(this.n31*b+this.n32*c+this.n33*d+this.n34)*e;return a},
+multiplyVector4:function(a){var b=a.x,c=a.y,d=a.z,e=a.w;a.x=this.n11*b+this.n12*c+this.n13*d+this.n14*e;a.y=this.n21*b+this.n22*c+this.n23*d+this.n24*e;a.z=this.n31*b+this.n32*c+this.n33*d+this.n34*e;a.w=this.n41*b+this.n42*c+this.n43*d+this.n44*e;return a},rotateAxis:function(a){var b=a.x,c=a.y,d=a.z;a.x=b*this.n11+c*this.n12+d*this.n13;a.y=b*this.n21+c*this.n22+d*this.n23;a.z=b*this.n31+c*this.n32+d*this.n33;a.normalize();return a},crossVector:function(a){var b=new THREE.Vector4;b.x=this.n11*a.x+
+this.n12*a.y+this.n13*a.z+this.n14*a.w;b.y=this.n21*a.x+this.n22*a.y+this.n23*a.z+this.n24*a.w;b.z=this.n31*a.x+this.n32*a.y+this.n33*a.z+this.n34*a.w;b.w=a.w?this.n41*a.x+this.n42*a.y+this.n43*a.z+this.n44*a.w:1;return b},determinant:function(){var a=this.n11,b=this.n12,c=this.n13,d=this.n14,e=this.n21,f=this.n22,g=this.n23,i=this.n24,j=this.n31,h=this.n32,k=this.n33,m=this.n34,n=this.n41,l=this.n42,o=this.n43,p=this.n44;return d*g*h*n-c*i*h*n-d*f*k*n+b*i*k*n+c*f*m*n-b*g*m*n-d*g*j*l+c*i*j*l+d*e*
+k*l-a*i*k*l-c*e*m*l+a*g*m*l+d*f*j*o-b*i*j*o-d*e*h*o+a*i*h*o+b*e*m*o-a*f*m*o-c*f*j*p+b*g*j*p+c*e*h*p-a*g*h*p-b*e*k*p+a*f*k*p},transpose:function(){var a;a=this.n21;this.n21=this.n12;this.n12=a;a=this.n31;this.n31=this.n13;this.n13=a;a=this.n32;this.n32=this.n23;this.n23=a;a=this.n41;this.n41=this.n14;this.n14=a;a=this.n42;this.n42=this.n24;this.n24=a;a=this.n43;this.n43=this.n34;this.n34=a;return this},flattenToArray:function(a){a[0]=this.n11;a[1]=this.n21;a[2]=this.n31;a[3]=this.n41;a[4]=this.n12;
+a[5]=this.n22;a[6]=this.n32;a[7]=this.n42;a[8]=this.n13;a[9]=this.n23;a[10]=this.n33;a[11]=this.n43;a[12]=this.n14;a[13]=this.n24;a[14]=this.n34;a[15]=this.n44;return a},flattenToArrayOffset:function(a,b){a[b]=this.n11;a[b+1]=this.n21;a[b+2]=this.n31;a[b+3]=this.n41;a[b+4]=this.n12;a[b+5]=this.n22;a[b+6]=this.n32;a[b+7]=this.n42;a[b+8]=this.n13;a[b+9]=this.n23;a[b+10]=this.n33;a[b+11]=this.n43;a[b+12]=this.n14;a[b+13]=this.n24;a[b+14]=this.n34;a[b+15]=this.n44;return a},getPosition:function(){return THREE.Matrix4.__v1.set(this.n14,
+this.n24,this.n34)},setPosition:function(a){this.n14=a.x;this.n24=a.y;this.n34=a.z;return this},getColumnX:function(){return THREE.Matrix4.__v1.set(this.n11,this.n21,this.n31)},getColumnY:function(){return THREE.Matrix4.__v1.set(this.n12,this.n22,this.n32)},getColumnZ:function(){return THREE.Matrix4.__v1.set(this.n13,this.n23,this.n33)},getInverse:function(a){var b=a.n11,c=a.n12,d=a.n13,e=a.n14,f=a.n21,g=a.n22,i=a.n23,j=a.n24,h=a.n31,k=a.n32,m=a.n33,n=a.n34,l=a.n41,o=a.n42,p=a.n43,u=a.n44;this.n11=
+i*n*o-j*m*o+j*k*p-g*n*p-i*k*u+g*m*u;this.n12=e*m*o-d*n*o-e*k*p+c*n*p+d*k*u-c*m*u;this.n13=d*j*o-e*i*o+e*g*p-c*j*p-d*g*u+c*i*u;this.n14=e*i*k-d*j*k-e*g*m+c*j*m+d*g*n-c*i*n;this.n21=j*m*l-i*n*l-j*h*p+f*n*p+i*h*u-f*m*u;this.n22=d*n*l-e*m*l+e*h*p-b*n*p-d*h*u+b*m*u;this.n23=e*i*l-d*j*l-e*f*p+b*j*p+d*f*u-b*i*u;this.n24=d*j*h-e*i*h+e*f*m-b*j*m-d*f*n+b*i*n;this.n31=g*n*l-j*k*l+j*h*o-f*n*o-g*h*u+f*k*u;this.n32=e*k*l-c*n*l-e*h*o+b*n*o+c*h*u-b*k*u;this.n33=c*j*l-e*g*l+e*f*o-b*j*o-c*f*u+b*g*u;this.n34=e*g*h-
+c*j*h-e*f*k+b*j*k+c*f*n-b*g*n;this.n41=i*k*l-g*m*l-i*h*o+f*m*o+g*h*p-f*k*p;this.n42=c*m*l-d*k*l+d*h*o-b*m*o-c*h*p+b*k*p;this.n43=d*g*l-c*i*l-d*f*o+b*i*o+c*f*p-b*g*p;this.n44=c*i*h-d*g*h+d*f*k-b*i*k-c*f*m+b*g*m;this.multiplyScalar(1/a.determinant());return this},setRotationFromEuler:function(a,b){var c=a.x,d=a.y,e=a.z,f=Math.cos(c),c=Math.sin(c),g=Math.cos(d),d=Math.sin(d),i=Math.cos(e),e=Math.sin(e);switch(b){case "YXZ":var j=g*i,h=g*e,k=d*i,m=d*e;this.n11=j+m*c;this.n12=k*c-h;this.n13=f*d;this.n21=
+f*e;this.n22=f*i;this.n23=-c;this.n31=h*c-k;this.n32=m+j*c;this.n33=f*g;break;case "ZXY":j=g*i;h=g*e;k=d*i;m=d*e;this.n11=j-m*c;this.n12=-f*e;this.n13=k+h*c;this.n21=h+k*c;this.n22=f*i;this.n23=m-j*c;this.n31=-f*d;this.n32=c;this.n33=f*g;break;case "ZYX":j=f*i;h=f*e;k=c*i;m=c*e;this.n11=g*i;this.n12=k*d-h;this.n13=j*d+m;this.n21=g*e;this.n22=m*d+j;this.n23=h*d-k;this.n31=-d;this.n32=c*g;this.n33=f*g;break;case "YZX":j=f*g;h=f*d;k=c*g;m=c*d;this.n11=g*i;this.n12=m-j*e;this.n13=k*e+h;this.n21=e;this.n22=
+f*i;this.n23=-c*i;this.n31=-d*i;this.n32=h*e+k;this.n33=j-m*e;break;case "XZY":j=f*g;h=f*d;k=c*g;m=c*d;this.n11=g*i;this.n12=-e;this.n13=d*i;this.n21=j*e+m;this.n22=f*i;this.n23=h*e-k;this.n31=k*e-h;this.n32=c*i;this.n33=m*e+j;break;default:j=f*i;h=f*e;k=c*i;m=c*e;this.n11=g*i;this.n12=-g*e;this.n13=d;this.n21=h+k*d;this.n22=j-m*d;this.n23=-c*g;this.n31=m-j*d;this.n32=k+h*d;this.n33=f*g}return this},setRotationFromQuaternion:function(a){var b=a.x,c=a.y,d=a.z,e=a.w,f=b+b,g=c+c,i=d+d,a=b*f,j=b*g,b=
+b*i,h=c*g,c=c*i,d=d*i,f=e*f,g=e*g,e=e*i;this.n11=1-(h+d);this.n12=j-e;this.n13=b+g;this.n21=j+e;this.n22=1-(a+d);this.n23=c-f;this.n31=b-g;this.n32=c+f;this.n33=1-(a+h);return this},compose:function(a,b,c){var d=THREE.Matrix4.__m1,e=THREE.Matrix4.__m2;d.identity();d.setRotationFromQuaternion(b);e.makeScale(c.x,c.y,c.z);this.multiply(d,e);this.n14=a.x;this.n24=a.y;this.n34=a.z;return this},decompose:function(a,b,c){var d=THREE.Matrix4.__v1,e=THREE.Matrix4.__v2,f=THREE.Matrix4.__v3;d.set(this.n11,this.n21,
+this.n31);e.set(this.n12,this.n22,this.n32);f.set(this.n13,this.n23,this.n33);a=a instanceof THREE.Vector3?a:new THREE.Vector3;b=b instanceof THREE.Quaternion?b:new THREE.Quaternion;c=c instanceof THREE.Vector3?c:new THREE.Vector3;c.x=d.length();c.y=e.length();c.z=f.length();a.x=this.n14;a.y=this.n24;a.z=this.n34;d=THREE.Matrix4.__m1;d.copy(this);d.n11=d.n11/c.x;d.n21=d.n21/c.x;d.n31=d.n31/c.x;d.n12=d.n12/c.y;d.n22=d.n22/c.y;d.n32=d.n32/c.y;d.n13=d.n13/c.z;d.n23=d.n23/c.z;d.n33=d.n33/c.z;b.setFromRotationMatrix(d);
+return[a,b,c]},extractPosition:function(a){this.n14=a.n14;this.n24=a.n24;this.n34=a.n34;return this},extractRotation:function(a){var b=THREE.Matrix4.__v1,c=1/b.set(a.n11,a.n21,a.n31).length(),d=1/b.set(a.n12,a.n22,a.n32).length(),b=1/b.set(a.n13,a.n23,a.n33).length();this.n11=a.n11*c;this.n21=a.n21*c;this.n31=a.n31*c;this.n12=a.n12*d;this.n22=a.n22*d;this.n32=a.n32*d;this.n13=a.n13*b;this.n23=a.n23*b;this.n33=a.n33*b;return this},translate:function(a){var b=a.x,c=a.y,a=a.z;this.n14=this.n11*b+this.n12*
+c+this.n13*a+this.n14;this.n24=this.n21*b+this.n22*c+this.n23*a+this.n24;this.n34=this.n31*b+this.n32*c+this.n33*a+this.n34;this.n44=this.n41*b+this.n42*c+this.n43*a+this.n44;return this},rotateX:function(a){var b=this.n12,c=this.n22,d=this.n32,e=this.n42,f=this.n13,g=this.n23,i=this.n33,j=this.n43,h=Math.cos(a),a=Math.sin(a);this.n12=h*b+a*f;this.n22=h*c+a*g;this.n32=h*d+a*i;this.n42=h*e+a*j;this.n13=h*f-a*b;this.n23=h*g-a*c;this.n33=h*i-a*d;this.n43=h*j-a*e;return this},rotateY:function(a){var b=
+this.n11,c=this.n21,d=this.n31,e=this.n41,f=this.n13,g=this.n23,i=this.n33,j=this.n43,h=Math.cos(a),a=Math.sin(a);this.n11=h*b-a*f;this.n21=h*c-a*g;this.n31=h*d-a*i;this.n41=h*e-a*j;this.n13=h*f+a*b;this.n23=h*g+a*c;this.n33=h*i+a*d;this.n43=h*j+a*e;return this},rotateZ:function(a){var b=this.n11,c=this.n21,d=this.n31,e=this.n41,f=this.n12,g=this.n22,i=this.n32,j=this.n42,h=Math.cos(a),a=Math.sin(a);this.n11=h*b+a*f;this.n21=h*c+a*g;this.n31=h*d+a*i;this.n41=h*e+a*j;this.n12=h*f-a*b;this.n22=h*g-
+a*c;this.n32=h*i-a*d;this.n42=h*j-a*e;return this},rotateByAxis:function(a,b){if(a.x===1&&a.y===0&&a.z===0)return this.rotateX(b);if(a.x===0&&a.y===1&&a.z===0)return this.rotateY(b);if(a.x===0&&a.y===0&&a.z===1)return this.rotateZ(b);var c=a.x,d=a.y,e=a.z,f=Math.sqrt(c*c+d*d+e*e),c=c/f,d=d/f,e=e/f,f=c*c,g=d*d,i=e*e,j=Math.cos(b),h=Math.sin(b),k=1-j,m=c*d*k,n=c*e*k,k=d*e*k,c=c*h,l=d*h,h=e*h,e=f+(1-f)*j,f=m+h,d=n-l,m=m-h,g=g+(1-g)*j,h=k+c,n=n+l,k=k-c,i=i+(1-i)*j,j=this.n11,c=this.n21,l=this.n31,o=this.n41,
+p=this.n12,u=this.n22,H=this.n32,w=this.n42,D=this.n13,s=this.n23,t=this.n33,y=this.n43;this.n11=e*j+f*p+d*D;this.n21=e*c+f*u+d*s;this.n31=e*l+f*H+d*t;this.n41=e*o+f*w+d*y;this.n12=m*j+g*p+h*D;this.n22=m*c+g*u+h*s;this.n32=m*l+g*H+h*t;this.n42=m*o+g*w+h*y;this.n13=n*j+k*p+i*D;this.n23=n*c+k*u+i*s;this.n33=n*l+k*H+i*t;this.n43=n*o+k*w+i*y;return this},scale:function(a){var b=a.x,c=a.y,a=a.z;this.n11=this.n11*b;this.n12=this.n12*c;this.n13=this.n13*a;this.n21=this.n21*b;this.n22=this.n22*c;this.n23=
+this.n23*a;this.n31=this.n31*b;this.n32=this.n32*c;this.n33=this.n33*a;this.n41=this.n41*b;this.n42=this.n42*c;this.n43=this.n43*a;return this},makeTranslation:function(a,b,c){this.set(1,0,0,a,0,1,0,b,0,0,1,c,0,0,0,1);return this},makeRotationX:function(a){var b=Math.cos(a),a=Math.sin(a);this.set(1,0,0,0,0,b,-a,0,0,a,b,0,0,0,0,1);return this},makeRotationY:function(a){var b=Math.cos(a),a=Math.sin(a);this.set(b,0,a,0,0,1,0,0,-a,0,b,0,0,0,0,1);return this},makeRotationZ:function(a){var b=Math.cos(a),
+a=Math.sin(a);this.set(b,-a,0,0,a,b,0,0,0,0,1,0,0,0,0,1);return this},makeRotationAxis:function(a,b){var c=Math.cos(b),d=Math.sin(b),e=1-c,f=a.x,g=a.y,i=a.z,j=e*f,h=e*g;this.set(j*f+c,j*g-d*i,j*i+d*g,0,j*g+d*i,h*g+c,h*i-d*f,0,j*i-d*g,h*i+d*f,e*i*i+c,0,0,0,0,1);return this},makeScale:function(a,b,c){this.set(a,0,0,0,0,b,0,0,0,0,c,0,0,0,0,1);return this},makeFrustum:function(a,b,c,d,e,f){this.n11=2*e/(b-a);this.n12=0;this.n13=(b+a)/(b-a);this.n21=this.n14=0;this.n22=2*e/(d-c);this.n23=(d+c)/(d-c);this.n32=
+this.n31=this.n24=0;this.n33=-(f+e)/(f-e);this.n34=-2*f*e/(f-e);this.n42=this.n41=0;this.n43=-1;this.n44=0;return this},makePerspective:function(a,b,c,d){var a=c*Math.tan(a*Math.PI/360),e=-a;return this.makeFrustum(e*b,a*b,e,a,c,d)},makeOrthographic:function(a,b,c,d,e,f){var g=b-a,i=c-d,j=f-e;this.n11=2/g;this.n13=this.n12=0;this.n14=-((b+a)/g);this.n21=0;this.n22=2/i;this.n23=0;this.n24=-((c+d)/i);this.n32=this.n31=0;this.n33=-2/j;this.n34=-((f+e)/j);this.n43=this.n42=this.n41=0;this.n44=1;return this},
+clone:function(){return new THREE.Matrix4(this.n11,this.n12,this.n13,this.n14,this.n21,this.n22,this.n23,this.n24,this.n31,this.n32,this.n33,this.n34,this.n41,this.n42,this.n43,this.n44)}};THREE.Matrix4.__v1=new THREE.Vector3;THREE.Matrix4.__v2=new THREE.Vector3;THREE.Matrix4.__v3=new THREE.Vector3;THREE.Matrix4.__m1=new THREE.Matrix4;THREE.Matrix4.__m2=new THREE.Matrix4;
+THREE.Object3D=function(){this.id=THREE.Object3DCount++;this.name="";this.parent=void 0;this.children=[];this.up=new THREE.Vector3(0,1,0);this.position=new THREE.Vector3;this.rotation=new THREE.Vector3;this.eulerOrder="XYZ";this.scale=new THREE.Vector3(1,1,1);this.flipSided=this.doubleSided=false;this.renderDepth=null;this.rotationAutoUpdate=true;this.matrix=new THREE.Matrix4;this.matrixWorld=new THREE.Matrix4;this.matrixRotationWorld=new THREE.Matrix4;this.matrixWorldNeedsUpdate=this.matrixAutoUpdate=
+true;this.quaternion=new THREE.Quaternion;this.useQuaternion=false;this.boundRadius=0;this.boundRadiusScale=1;this.visible=true;this.receiveShadow=this.castShadow=false;this.frustumCulled=true;this._vector=new THREE.Vector3};
+THREE.Object3D.prototype={constructor:THREE.Object3D,applyMatrix:function(a){this.matrix.multiply(a,this.matrix);this.scale.getScaleFromMatrix(this.matrix);this.rotation.getRotationFromMatrix(this.matrix,this.scale);this.position.getPositionFromMatrix(this.matrix)},translate:function(a,b){this.matrix.rotateAxis(b);this.position.addSelf(b.multiplyScalar(a))},translateX:function(a){this.translate(a,this._vector.set(1,0,0))},translateY:function(a){this.translate(a,this._vector.set(0,1,0))},translateZ:function(a){this.translate(a,
+this._vector.set(0,0,1))},lookAt:function(a){this.matrix.lookAt(a,this.position,this.up);this.rotationAutoUpdate&&this.rotation.getRotationFromMatrix(this.matrix)},add:function(a){if(a===this)console.warn("THREE.Object3D.add: An object can't be added as a child of itself.");else if(a instanceof THREE.Object3D){a.parent!==void 0&&a.parent.remove(a);a.parent=this;this.children.push(a);for(var b=this;b.parent!==void 0;)b=b.parent;b!==void 0&&b instanceof THREE.Scene&&b.__addObject(a)}},remove:function(a){var b=
+this.children.indexOf(a);if(b!==-1){a.parent=void 0;this.children.splice(b,1);for(b=this;b.parent!==void 0;)b=b.parent;b!==void 0&&b instanceof THREE.Scene&&b.__removeObject(a)}},getChildByName:function(a,b){var c,d,e;c=0;for(d=this.children.length;c<d;c++){e=this.children[c];if(e.name===a)return e;if(b){e=e.getChildByName(a,b);if(e!==void 0)return e}}},updateMatrix:function(){this.matrix.setPosition(this.position);this.useQuaternion?this.matrix.setRotationFromQuaternion(this.quaternion):this.matrix.setRotationFromEuler(this.rotation,
+this.eulerOrder);if(this.scale.x!==1||this.scale.y!==1||this.scale.z!==1){this.matrix.scale(this.scale);this.boundRadiusScale=Math.max(this.scale.x,Math.max(this.scale.y,this.scale.z))}this.matrixWorldNeedsUpdate=true},updateMatrixWorld:function(a){this.matrixAutoUpdate&&this.updateMatrix();if(this.matrixWorldNeedsUpdate||a){this.parent?this.matrixWorld.multiply(this.parent.matrixWorld,this.matrix):this.matrixWorld.copy(this.matrix);this.matrixWorldNeedsUpdate=false;a=true}for(var b=0,c=this.children.length;b<
+c;b++)this.children[b].updateMatrixWorld(a)}};THREE.Object3DCount=0;
+THREE.Projector=function(){function a(){var a=g[f]=g[f]||new THREE.RenderableObject;f++;return a}function b(){var a=h[j]=h[j]||new THREE.RenderableVertex;j++;return a}function c(a,b){return b.z-a.z}function d(a,b){var c=0,d=1,e=a.z+a.w,f=b.z+b.w,g=-a.z+a.w,h=-b.z+b.w;if(e>=0&&f>=0&&g>=0&&h>=0)return true;if(e<0&&f<0||g<0&&h<0)return false;e<0?c=Math.max(c,e/(e-f)):f<0&&(d=Math.min(d,e/(e-f)));g<0?c=Math.max(c,g/(g-h)):h<0&&(d=Math.min(d,g/(g-h)));if(d<c)return false;a.lerpSelf(b,c);b.lerpSelf(a,1-
+d);return true}var e,f,g=[],i,j,h=[],k,m,n=[],l,o=[],p,u,H=[],w,D,s=[],t={objects:[],sprites:[],lights:[],elements:[]},y=new THREE.Vector3,x=new THREE.Vector4,z=new THREE.Matrix4,E=new THREE.Matrix4,B=new THREE.Frustum,F=new THREE.Vector4,A=new THREE.Vector4;this.projectVector=function(a,b){b.matrixWorldInverse.getInverse(b.matrixWorld);z.multiply(b.projectionMatrix,b.matrixWorldInverse);z.multiplyVector3(a);return a};this.unprojectVector=function(a,b){b.projectionMatrixInverse.getInverse(b.projectionMatrix);
+z.multiply(b.matrixWorld,b.projectionMatrixInverse);z.multiplyVector3(a);return a};this.pickingRay=function(a,b){var c;a.z=-1;c=new THREE.Vector3(a.x,a.y,1);this.unprojectVector(a,b);this.unprojectVector(c,b);c.subSelf(a).normalize();return new THREE.Ray(a,c)};this.projectGraph=function(b,d){f=0;t.objects.length=0;t.sprites.length=0;t.lights.length=0;var g=function(b){if(b.visible!==false){if((b instanceof THREE.Mesh||b instanceof THREE.Line)&&(b.frustumCulled===false||B.contains(b))){y.copy(b.matrixWorld.getPosition());
+z.multiplyVector3(y);e=a();e.object=b;e.z=y.z;t.objects.push(e)}else if(b instanceof THREE.Sprite||b instanceof THREE.Particle){y.copy(b.matrixWorld.getPosition());z.multiplyVector3(y);e=a();e.object=b;e.z=y.z;t.sprites.push(e)}else b instanceof THREE.Light&&t.lights.push(b);for(var c=0,d=b.children.length;c<d;c++)g(b.children[c])}};g(b);d&&t.objects.sort(c);return t};this.projectScene=function(a,e,f){var g=e.near,y=e.far,R=false,U,r,q,J,v,G,I,K,C,O,Q,V,W,X,S;D=u=l=m=0;t.elements.length=0;if(e.parent===
+void 0){console.warn("DEPRECATED: Camera hasn't been added to a Scene. Adding it...");a.add(e)}a.updateMatrixWorld();e.matrixWorldInverse.getInverse(e.matrixWorld);z.multiply(e.projectionMatrix,e.matrixWorldInverse);B.setFromMatrix(z);t=this.projectGraph(a,false);a=0;for(U=t.objects.length;a<U;a++){C=t.objects[a].object;O=C.matrixWorld;j=0;if(C instanceof THREE.Mesh){Q=C.geometry;V=C.geometry.materials;J=Q.vertices;W=Q.faces;X=Q.faceVertexUvs;Q=C.matrixRotationWorld.extractRotation(O);r=0;for(q=J.length;r<
+q;r++){i=b();i.positionWorld.copy(J[r]);O.multiplyVector3(i.positionWorld);i.positionScreen.copy(i.positionWorld);z.multiplyVector4(i.positionScreen);i.positionScreen.x=i.positionScreen.x/i.positionScreen.w;i.positionScreen.y=i.positionScreen.y/i.positionScreen.w;i.visible=i.positionScreen.z>g&&i.positionScreen.z<y}J=0;for(r=W.length;J<r;J++){q=W[J];if(q instanceof THREE.Face3){v=h[q.a];G=h[q.b];I=h[q.c];if(v.visible&&G.visible&&I.visible){R=(I.positionScreen.x-v.positionScreen.x)*(G.positionScreen.y-
+v.positionScreen.y)-(I.positionScreen.y-v.positionScreen.y)*(G.positionScreen.x-v.positionScreen.x)<0;if(C.doubleSided||R!=C.flipSided){K=n[m]=n[m]||new THREE.RenderableFace3;m++;k=K;k.v1.copy(v);k.v2.copy(G);k.v3.copy(I)}else continue}else continue}else if(q instanceof THREE.Face4){v=h[q.a];G=h[q.b];I=h[q.c];K=h[q.d];if(v.visible&&G.visible&&I.visible&&K.visible){R=(K.positionScreen.x-v.positionScreen.x)*(G.positionScreen.y-v.positionScreen.y)-(K.positionScreen.y-v.positionScreen.y)*(G.positionScreen.x-
+v.positionScreen.x)<0||(G.positionScreen.x-I.positionScreen.x)*(K.positionScreen.y-I.positionScreen.y)-(G.positionScreen.y-I.positionScreen.y)*(K.positionScreen.x-I.positionScreen.x)<0;if(C.doubleSided||R!=C.flipSided){S=o[l]=o[l]||new THREE.RenderableFace4;l++;k=S;k.v1.copy(v);k.v2.copy(G);k.v3.copy(I);k.v4.copy(K)}else continue}else continue}k.normalWorld.copy(q.normal);!R&&(C.flipSided||C.doubleSided)&&k.normalWorld.negate();Q.multiplyVector3(k.normalWorld);k.centroidWorld.copy(q.centroid);O.multiplyVector3(k.centroidWorld);
+k.centroidScreen.copy(k.centroidWorld);z.multiplyVector3(k.centroidScreen);I=q.vertexNormals;v=0;for(G=I.length;v<G;v++){K=k.vertexNormalsWorld[v];K.copy(I[v]);!R&&(C.flipSided||C.doubleSided)&&K.negate();Q.multiplyVector3(K)}v=0;for(G=X.length;v<G;v++)if(S=X[v][J]){I=0;for(K=S.length;I<K;I++)k.uvs[v][I]=S[I]}k.material=C.material;k.faceMaterial=q.materialIndex!==null?V[q.materialIndex]:null;k.z=k.centroidScreen.z;t.elements.push(k)}}else if(C instanceof THREE.Line){E.multiply(z,O);J=C.geometry.vertices;
+v=b();v.positionScreen.copy(J[0]);E.multiplyVector4(v.positionScreen);O=C.type===THREE.LinePieces?2:1;r=1;for(q=J.length;r<q;r++){v=b();v.positionScreen.copy(J[r]);E.multiplyVector4(v.positionScreen);if(!((r+1)%O>0)){G=h[j-2];F.copy(v.positionScreen);A.copy(G.positionScreen);if(d(F,A)){F.multiplyScalar(1/F.w);A.multiplyScalar(1/A.w);V=H[u]=H[u]||new THREE.RenderableLine;u++;p=V;p.v1.positionScreen.copy(F);p.v2.positionScreen.copy(A);p.z=Math.max(F.z,A.z);p.material=C.material;t.elements.push(p)}}}}}a=
+0;for(U=t.sprites.length;a<U;a++){C=t.sprites[a].object;O=C.matrixWorld;if(C instanceof THREE.Particle){x.set(O.n14,O.n24,O.n34,1);z.multiplyVector4(x);x.z=x.z/x.w;if(x.z>0&&x.z<1){g=s[D]=s[D]||new THREE.RenderableParticle;D++;w=g;w.x=x.x/x.w;w.y=x.y/x.w;w.z=x.z;w.rotation=C.rotation.z;w.scale.x=C.scale.x*Math.abs(w.x-(x.x+e.projectionMatrix.n11)/(x.w+e.projectionMatrix.n14));w.scale.y=C.scale.y*Math.abs(w.y-(x.y+e.projectionMatrix.n22)/(x.w+e.projectionMatrix.n24));w.material=C.material;t.elements.push(w)}}}f&&
+t.elements.sort(c);return t}};THREE.Quaternion=function(a,b,c,d){this.x=a||0;this.y=b||0;this.z=c||0;this.w=d!==void 0?d:1};
+THREE.Quaternion.prototype={constructor:THREE.Quaternion,set:function(a,b,c,d){this.x=a;this.y=b;this.z=c;this.w=d;return this},copy:function(a){this.x=a.x;this.y=a.y;this.z=a.z;this.w=a.w;return this},setFromEuler:function(a){var b=Math.PI/360,c=a.x*b,d=a.y*b,e=a.z*b,a=Math.cos(d),d=Math.sin(d),b=Math.cos(-e),e=Math.sin(-e),f=Math.cos(c),c=Math.sin(c),g=a*b,i=d*e;this.w=g*f-i*c;this.x=g*c+i*f;this.y=d*b*f+a*e*c;this.z=a*e*f-d*b*c;return this},setFromAxisAngle:function(a,b){var c=b/2,d=Math.sin(c);
+this.x=a.x*d;this.y=a.y*d;this.z=a.z*d;this.w=Math.cos(c);return this},setFromRotationMatrix:function(a){var b=Math.pow(a.determinant(),1/3);this.w=Math.sqrt(Math.max(0,b+a.n11+a.n22+a.n33))/2;this.x=Math.sqrt(Math.max(0,b+a.n11-a.n22-a.n33))/2;this.y=Math.sqrt(Math.max(0,b-a.n11+a.n22-a.n33))/2;this.z=Math.sqrt(Math.max(0,b-a.n11-a.n22+a.n33))/2;this.x=a.n32-a.n23<0?-Math.abs(this.x):Math.abs(this.x);this.y=a.n13-a.n31<0?-Math.abs(this.y):Math.abs(this.y);this.z=a.n21-a.n12<0?-Math.abs(this.z):Math.abs(this.z);
+this.normalize();return this},calculateW:function(){this.w=-Math.sqrt(Math.abs(1-this.x*this.x-this.y*this.y-this.z*this.z));return this},inverse:function(){this.x=this.x*-1;this.y=this.y*-1;this.z=this.z*-1;return this},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w)},normalize:function(){var a=Math.sqrt(this.x*this.x+this.y*this.y+this.z*this.z+this.w*this.w);if(a===0)this.w=this.z=this.y=this.x=0;else{a=1/a;this.x=this.x*a;this.y=this.y*a;this.z=this.z*
+a;this.w=this.w*a}return this},multiply:function(a,b){this.x=a.x*b.w+a.y*b.z-a.z*b.y+a.w*b.x;this.y=-a.x*b.z+a.y*b.w+a.z*b.x+a.w*b.y;this.z=a.x*b.y-a.y*b.x+a.z*b.w+a.w*b.z;this.w=-a.x*b.x-a.y*b.y-a.z*b.z+a.w*b.w;return this},multiplySelf:function(a){var b=this.x,c=this.y,d=this.z,e=this.w,f=a.x,g=a.y,i=a.z,a=a.w;this.x=b*a+e*f+c*i-d*g;this.y=c*a+e*g+d*f-b*i;this.z=d*a+e*i+b*g-c*f;this.w=e*a-b*f-c*g-d*i;return this},multiplyVector3:function(a,b){b||(b=a);var c=a.x,d=a.y,e=a.z,f=this.x,g=this.y,i=this.z,
+j=this.w,h=j*c+g*e-i*d,k=j*d+i*c-f*e,m=j*e+f*d-g*c,c=-f*c-g*d-i*e;b.x=h*j+c*-f+k*-i-m*-g;b.y=k*j+c*-g+m*-f-h*-i;b.z=m*j+c*-i+h*-g-k*-f;return b},clone:function(){return new THREE.Quaternion(this.x,this.y,this.z,this.w)}};
+THREE.Quaternion.slerp=function(a,b,c,d){var e=a.w*b.w+a.x*b.x+a.y*b.y+a.z*b.z;if(e<0){c.w=-b.w;c.x=-b.x;c.y=-b.y;c.z=-b.z;e=-e}else c.copy(b);if(Math.abs(e)>=1){c.w=a.w;c.x=a.x;c.y=a.y;c.z=a.z;return c}var f=Math.acos(e),e=Math.sqrt(1-e*e);if(Math.abs(e)<0.001){c.w=0.5*(a.w+b.w);c.x=0.5*(a.x+b.x);c.y=0.5*(a.y+b.y);c.z=0.5*(a.z+b.z);return c}b=Math.sin((1-d)*f)/e;d=Math.sin(d*f)/e;c.w=a.w*b+c.w*d;c.x=a.x*b+c.x*d;c.y=a.y*b+c.y*d;c.z=a.z*b+c.z*d;return c};THREE.Vertex=THREE.Vector3;
+THREE.Face3=function(a,b,c,d,e,f){this.a=a;this.b=b;this.c=c;this.normal=d instanceof THREE.Vector3?d:new THREE.Vector3;this.vertexNormals=d instanceof Array?d:[];this.color=e instanceof THREE.Color?e:new THREE.Color;this.vertexColors=e instanceof Array?e:[];this.vertexTangents=[];this.materialIndex=f;this.centroid=new THREE.Vector3};
+THREE.Face3.prototype={constructor:THREE.Face3,clone:function(){var a=new THREE.Face3(this.a,this.b,this.c);a.normal.copy(this.normal);a.color.copy(this.color);a.centroid.copy(this.centroid);a.materialIndex=this.materialIndex;var b,c;b=0;for(c=this.vertexNormals.length;b<c;b++)a.vertexNormals[b]=this.vertexNormals[b].clone();b=0;for(c=this.vertexColors.length;b<c;b++)a.vertexColors[b]=this.vertexColors[b].clone();b=0;for(c=this.vertexTangents.length;b<c;b++)a.vertexTangents[b]=this.vertexTangents[b].clone();
+return a}};THREE.Face4=function(a,b,c,d,e,f,g){this.a=a;this.b=b;this.c=c;this.d=d;this.normal=e instanceof THREE.Vector3?e:new THREE.Vector3;this.vertexNormals=e instanceof Array?e:[];this.color=f instanceof THREE.Color?f:new THREE.Color;this.vertexColors=f instanceof Array?f:[];this.vertexTangents=[];this.materialIndex=g;this.centroid=new THREE.Vector3};
+THREE.Face4.prototype={constructor:THREE.Face4,clone:function(){var a=new THREE.Face4(this.a,this.b,this.c,this.d);a.normal.copy(this.normal);a.color.copy(this.color);a.centroid.copy(this.centroid);a.materialIndex=this.materialIndex;var b,c;b=0;for(c=this.vertexNormals.length;b<c;b++)a.vertexNormals[b]=this.vertexNormals[b].clone();b=0;for(c=this.vertexColors.length;b<c;b++)a.vertexColors[b]=this.vertexColors[b].clone();b=0;for(c=this.vertexTangents.length;b<c;b++)a.vertexTangents[b]=this.vertexTangents[b].clone();
+return a}};THREE.UV=function(a,b){this.u=a||0;this.v=b||0};THREE.UV.prototype={constructor:THREE.UV,set:function(a,b){this.u=a;this.v=b;return this},copy:function(a){this.u=a.u;this.v=a.v;return this},lerpSelf:function(a,b){this.u=this.u+(a.u-this.u)*b;this.v=this.v+(a.v-this.v)*b;return this},clone:function(){return new THREE.UV(this.u,this.v)}};
+THREE.Geometry=function(){this.id=THREE.GeometryCount++;this.vertices=[];this.colors=[];this.materials=[];this.faces=[];this.faceUvs=[[]];this.faceVertexUvs=[[]];this.morphTargets=[];this.morphColors=[];this.morphNormals=[];this.skinWeights=[];this.skinIndices=[];this.boundingSphere=this.boundingBox=null;this.dynamic=this.hasTangents=false};
+THREE.Geometry.prototype={constructor:THREE.Geometry,applyMatrix:function(a){var b=new THREE.Matrix4;b.extractRotation(a);for(var c=0,d=this.vertices.length;c<d;c++)a.multiplyVector3(this.vertices[c]);c=0;for(d=this.faces.length;c<d;c++){var e=this.faces[c];b.multiplyVector3(e.normal);for(var f=0,g=e.vertexNormals.length;f<g;f++)b.multiplyVector3(e.vertexNormals[f]);a.multiplyVector3(e.centroid)}},computeCentroids:function(){var a,b,c;a=0;for(b=this.faces.length;a<b;a++){c=this.faces[a];c.centroid.set(0,
+0,0);if(c instanceof THREE.Face3){c.centroid.addSelf(this.vertices[c.a]);c.centroid.addSelf(this.vertices[c.b]);c.centroid.addSelf(this.vertices[c.c]);c.centroid.divideScalar(3)}else if(c instanceof THREE.Face4){c.centroid.addSelf(this.vertices[c.a]);c.centroid.addSelf(this.vertices[c.b]);c.centroid.addSelf(this.vertices[c.c]);c.centroid.addSelf(this.vertices[c.d]);c.centroid.divideScalar(4)}}},computeFaceNormals:function(){var a,b,c,d,e,f,g=new THREE.Vector3,i=new THREE.Vector3;a=0;for(b=this.faces.length;a<
+b;a++){c=this.faces[a];d=this.vertices[c.a];e=this.vertices[c.b];f=this.vertices[c.c];g.sub(f,e);i.sub(d,e);g.crossSelf(i);g.isZero()||g.normalize();c.normal.copy(g)}},computeVertexNormals:function(){var a,b,c,d;if(this.__tmpVertices===void 0){d=this.__tmpVertices=Array(this.vertices.length);a=0;for(b=this.vertices.length;a<b;a++)d[a]=new THREE.Vector3;a=0;for(b=this.faces.length;a<b;a++){c=this.faces[a];if(c instanceof THREE.Face3)c.vertexNormals=[new THREE.Vector3,new THREE.Vector3,new THREE.Vector3];
+else if(c instanceof THREE.Face4)c.vertexNormals=[new THREE.Vector3,new THREE.Vector3,new THREE.Vector3,new THREE.Vector3]}}else{d=this.__tmpVertices;a=0;for(b=this.vertices.length;a<b;a++)d[a].set(0,0,0)}a=0;for(b=this.faces.length;a<b;a++){c=this.faces[a];if(c instanceof THREE.Face3){d[c.a].addSelf(c.normal);d[c.b].addSelf(c.normal);d[c.c].addSelf(c.normal)}else if(c instanceof THREE.Face4){d[c.a].addSelf(c.normal);d[c.b].addSelf(c.normal);d[c.c].addSelf(c.normal);d[c.d].addSelf(c.normal)}}a=0;
+for(b=this.vertices.length;a<b;a++)d[a].normalize();a=0;for(b=this.faces.length;a<b;a++){c=this.faces[a];if(c instanceof THREE.Face3){c.vertexNormals[0].copy(d[c.a]);c.vertexNormals[1].copy(d[c.b]);c.vertexNormals[2].copy(d[c.c])}else if(c instanceof THREE.Face4){c.vertexNormals[0].copy(d[c.a]);c.vertexNormals[1].copy(d[c.b]);c.vertexNormals[2].copy(d[c.c]);c.vertexNormals[3].copy(d[c.d])}}},computeMorphNormals:function(){var a,b,c,d,e;c=0;for(d=this.faces.length;c<d;c++){e=this.faces[c];e.__originalFaceNormal?
+e.__originalFaceNormal.copy(e.normal):e.__originalFaceNormal=e.normal.clone();if(!e.__originalVertexNormals)e.__originalVertexNormals=[];a=0;for(b=e.vertexNormals.length;a<b;a++)e.__originalVertexNormals[a]?e.__originalVertexNormals[a].copy(e.vertexNormals[a]):e.__originalVertexNormals[a]=e.vertexNormals[a].clone()}var f=new THREE.Geometry;f.faces=this.faces;a=0;for(b=this.morphTargets.length;a<b;a++){if(!this.morphNormals[a]){this.morphNormals[a]={};this.morphNormals[a].faceNormals=[];this.morphNormals[a].vertexNormals=
+[];var g=this.morphNormals[a].faceNormals,i=this.morphNormals[a].vertexNormals,j,h;c=0;for(d=this.faces.length;c<d;c++){e=this.faces[c];j=new THREE.Vector3;h=e instanceof THREE.Face3?{a:new THREE.Vector3,b:new THREE.Vector3,c:new THREE.Vector3}:{a:new THREE.Vector3,b:new THREE.Vector3,c:new THREE.Vector3,d:new THREE.Vector3};g.push(j);i.push(h)}}g=this.morphNormals[a];f.vertices=this.morphTargets[a].vertices;f.computeFaceNormals();f.computeVertexNormals();c=0;for(d=this.faces.length;c<d;c++){e=this.faces[c];
+j=g.faceNormals[c];h=g.vertexNormals[c];j.copy(e.normal);if(e instanceof THREE.Face3){h.a.copy(e.vertexNormals[0]);h.b.copy(e.vertexNormals[1]);h.c.copy(e.vertexNormals[2])}else{h.a.copy(e.vertexNormals[0]);h.b.copy(e.vertexNormals[1]);h.c.copy(e.vertexNormals[2]);h.d.copy(e.vertexNormals[3])}}}c=0;for(d=this.faces.length;c<d;c++){e=this.faces[c];e.normal=e.__originalFaceNormal;e.vertexNormals=e.__originalVertexNormals}},computeTangents:function(){function a(a,b,c,d,e,f,v){i=a.vertices[b];j=a.vertices[c];
+h=a.vertices[d];k=g[e];m=g[f];n=g[v];l=j.x-i.x;o=h.x-i.x;p=j.y-i.y;u=h.y-i.y;H=j.z-i.z;w=h.z-i.z;D=m.u-k.u;s=n.u-k.u;t=m.v-k.v;y=n.v-k.v;x=1/(D*y-s*t);F.set((y*l-t*o)*x,(y*p-t*u)*x,(y*H-t*w)*x);A.set((D*o-s*l)*x,(D*u-s*p)*x,(D*w-s*H)*x);E[b].addSelf(F);E[c].addSelf(F);E[d].addSelf(F);B[b].addSelf(A);B[c].addSelf(A);B[d].addSelf(A)}var b,c,d,e,f,g,i,j,h,k,m,n,l,o,p,u,H,w,D,s,t,y,x,z,E=[],B=[],F=new THREE.Vector3,A=new THREE.Vector3,L=new THREE.Vector3,P=new THREE.Vector3,M=new THREE.Vector3;b=0;for(c=
+this.vertices.length;b<c;b++){E[b]=new THREE.Vector3;B[b]=new THREE.Vector3}b=0;for(c=this.faces.length;b<c;b++){f=this.faces[b];g=this.faceVertexUvs[0][b];if(f instanceof THREE.Face3)a(this,f.a,f.b,f.c,0,1,2);else if(f instanceof THREE.Face4){a(this,f.a,f.b,f.d,0,1,3);a(this,f.b,f.c,f.d,1,2,3)}}var N=["a","b","c","d"];b=0;for(c=this.faces.length;b<c;b++){f=this.faces[b];for(d=0;d<f.vertexNormals.length;d++){M.copy(f.vertexNormals[d]);e=f[N[d]];z=E[e];L.copy(z);L.subSelf(M.multiplyScalar(M.dot(z))).normalize();
+P.cross(f.vertexNormals[d],z);e=P.dot(B[e]);e=e<0?-1:1;f.vertexTangents[d]=new THREE.Vector4(L.x,L.y,L.z,e)}}this.hasTangents=true},computeBoundingBox:function(){if(!this.boundingBox)this.boundingBox={min:new THREE.Vector3,max:new THREE.Vector3};if(this.vertices.length>0){var a;a=this.vertices[0];this.boundingBox.min.copy(a);this.boundingBox.max.copy(a);for(var b=this.boundingBox.min,c=this.boundingBox.max,d=1,e=this.vertices.length;d<e;d++){a=this.vertices[d];if(a.x<b.x)b.x=a.x;else if(a.x>c.x)c.x=
+a.x;if(a.y<b.y)b.y=a.y;else if(a.y>c.y)c.y=a.y;if(a.z<b.z)b.z=a.z;else if(a.z>c.z)c.z=a.z}}else{this.boundingBox.min.set(0,0,0);this.boundingBox.max.set(0,0,0)}},computeBoundingSphere:function(){if(!this.boundingSphere)this.boundingSphere={radius:0};for(var a,b=0,c=0,d=this.vertices.length;c<d;c++){a=this.vertices[c].length();a>b&&(b=a)}this.boundingSphere.radius=b},mergeVertices:function(){var a={},b=[],c=[],d,e=Math.pow(10,4),f,g;f=0;for(g=this.vertices.length;f<g;f++){d=this.vertices[f];d=[Math.round(d.x*
+e),Math.round(d.y*e),Math.round(d.z*e)].join("_");if(a[d]===void 0){a[d]=f;b.push(this.vertices[f]);c[f]=b.length-1}else c[f]=c[a[d]]}f=0;for(g=this.faces.length;f<g;f++){a=this.faces[f];if(a instanceof THREE.Face3){a.a=c[a.a];a.b=c[a.b];a.c=c[a.c]}else if(a instanceof THREE.Face4){a.a=c[a.a];a.b=c[a.b];a.c=c[a.c];a.d=c[a.d]}}this.vertices=b}};THREE.GeometryCount=0;
+THREE.Camera=function(){THREE.Object3D.call(this);this.matrixWorldInverse=new THREE.Matrix4;this.projectionMatrix=new THREE.Matrix4;this.projectionMatrixInverse=new THREE.Matrix4};THREE.Camera.prototype=new THREE.Object3D;THREE.Camera.prototype.constructor=THREE.Camera;THREE.Camera.prototype.lookAt=function(a){this.matrix.lookAt(this.position,a,this.up);this.rotationAutoUpdate&&this.rotation.getRotationFromMatrix(this.matrix)};
+THREE.OrthographicCamera=function(a,b,c,d,e,f){THREE.Camera.call(this);this.left=a;this.right=b;this.top=c;this.bottom=d;this.near=e!==void 0?e:0.1;this.far=f!==void 0?f:2E3;this.updateProjectionMatrix()};THREE.OrthographicCamera.prototype=new THREE.Camera;THREE.OrthographicCamera.prototype.constructor=THREE.OrthographicCamera;THREE.OrthographicCamera.prototype.updateProjectionMatrix=function(){this.projectionMatrix.makeOrthographic(this.left,this.right,this.top,this.bottom,this.near,this.far)};
+THREE.PerspectiveCamera=function(a,b,c,d){THREE.Camera.call(this);this.fov=a!==void 0?a:50;this.aspect=b!==void 0?b:1;this.near=c!==void 0?c:0.1;this.far=d!==void 0?d:2E3;this.updateProjectionMatrix()};THREE.PerspectiveCamera.prototype=new THREE.Camera;THREE.PerspectiveCamera.prototype.constructor=THREE.PerspectiveCamera;THREE.PerspectiveCamera.prototype.setLens=function(a,b){this.fov=2*Math.atan((b!==void 0?b:24)/(a*2))*(180/Math.PI);this.updateProjectionMatrix()};
+THREE.PerspectiveCamera.prototype.setViewOffset=function(a,b,c,d,e,f){this.fullWidth=a;this.fullHeight=b;this.x=c;this.y=d;this.width=e;this.height=f;this.updateProjectionMatrix()};
+THREE.PerspectiveCamera.prototype.updateProjectionMatrix=function(){if(this.fullWidth){var a=this.fullWidth/this.fullHeight,b=Math.tan(this.fov*Math.PI/360)*this.near,c=-b,d=a*c,a=Math.abs(a*b-d),c=Math.abs(b-c);this.projectionMatrix.makeFrustum(d+this.x*a/this.fullWidth,d+(this.x+this.width)*a/this.fullWidth,b-(this.y+this.height)*c/this.fullHeight,b-this.y*c/this.fullHeight,this.near,this.far)}else this.projectionMatrix.makePerspective(this.fov,this.aspect,this.near,this.far)};
+THREE.Light=function(a){THREE.Object3D.call(this);this.color=new THREE.Color(a)};THREE.Light.prototype=new THREE.Object3D;THREE.Light.prototype.constructor=THREE.Light;THREE.Light.prototype.supr=THREE.Object3D.prototype;THREE.AmbientLight=function(a){THREE.Light.call(this,a)};THREE.AmbientLight.prototype=new THREE.Light;THREE.AmbientLight.prototype.constructor=THREE.AmbientLight;
+THREE.DirectionalLight=function(a,b,c){THREE.Light.call(this,a);this.position=new THREE.Vector3(0,1,0);this.target=new THREE.Object3D;this.intensity=b!==void 0?b:1;this.distance=c!==void 0?c:0;this.onlyShadow=this.castShadow=false;this.shadowCameraNear=50;this.shadowCameraFar=5E3;this.shadowCameraLeft=-500;this.shadowCameraTop=this.shadowCameraRight=500;this.shadowCameraBottom=-500;this.shadowCameraVisible=false;this.shadowBias=0;this.shadowDarkness=0.5;this.shadowMapHeight=this.shadowMapWidth=512;
+this.shadowCascade=false;this.shadowCascadeOffset=new THREE.Vector3(0,0,-1E3);this.shadowCascadeCount=2;this.shadowCascadeBias=[0,0,0];this.shadowCascadeWidth=[512,512,512];this.shadowCascadeHeight=[512,512,512];this.shadowCascadeNearZ=[-1,0.99,0.998];this.shadowCascadeFarZ=[0.99,0.998,1];this.shadowCascadeArray=[];this.shadowMatrix=this.shadowCamera=this.shadowMapSize=this.shadowMap=null};THREE.DirectionalLight.prototype=new THREE.Light;THREE.DirectionalLight.prototype.constructor=THREE.DirectionalLight;
+THREE.PointLight=function(a,b,c){THREE.Light.call(this,a);this.position=new THREE.Vector3(0,0,0);this.intensity=b!==void 0?b:1;this.distance=c!==void 0?c:0};THREE.PointLight.prototype=new THREE.Light;THREE.PointLight.prototype.constructor=THREE.PointLight;
+THREE.Material=function(a){a=a||{};this.id=THREE.MaterialCount++;this.name="";this.opacity=a.opacity!==void 0?a.opacity:1;this.transparent=a.transparent!==void 0?a.transparent:false;this.blending=a.blending!==void 0?a.blending:THREE.NormalBlending;this.blendSrc=a.blendSrc!==void 0?a.blendSrc:THREE.SrcAlphaFactor;this.blendDst=a.blendDst!==void 0?a.blendDst:THREE.OneMinusSrcAlphaFactor;this.blendEquation=a.blendEquation!==void 0?a.blendEquation:THREE.AddEquation;this.depthTest=a.depthTest!==void 0?
+a.depthTest:true;this.depthWrite=a.depthWrite!==void 0?a.depthWrite:true;this.polygonOffset=a.polygonOffset!==void 0?a.polygonOffset:false;this.polygonOffsetFactor=a.polygonOffsetFactor!==void 0?a.polygonOffsetFactor:0;this.polygonOffsetUnits=a.polygonOffsetUnits!==void 0?a.polygonOffsetUnits:0;this.alphaTest=a.alphaTest!==void 0?a.alphaTest:0;this.overdraw=a.overdraw!==void 0?a.overdraw:false;this.needsUpdate=true};THREE.MaterialCount=0;THREE.NoShading=0;THREE.FlatShading=1;THREE.SmoothShading=2;
+THREE.NoColors=0;THREE.FaceColors=1;THREE.VertexColors=2;THREE.NoBlending=0;THREE.NormalBlending=1;THREE.AdditiveBlending=2;THREE.SubtractiveBlending=3;THREE.MultiplyBlending=4;THREE.AdditiveAlphaBlending=5;THREE.CustomBlending=6;THREE.AddEquation=100;THREE.SubtractEquation=101;THREE.ReverseSubtractEquation=102;THREE.ZeroFactor=200;THREE.OneFactor=201;THREE.SrcColorFactor=202;THREE.OneMinusSrcColorFactor=203;THREE.SrcAlphaFactor=204;THREE.OneMinusSrcAlphaFactor=205;THREE.DstAlphaFactor=206;
+THREE.OneMinusDstAlphaFactor=207;THREE.DstColorFactor=208;THREE.OneMinusDstColorFactor=209;THREE.SrcAlphaSaturateFactor=210;
+THREE.LineBasicMaterial=function(a){THREE.Material.call(this,a);a=a||{};this.color=a.color!==void 0?new THREE.Color(a.color):new THREE.Color(16777215);this.linewidth=a.linewidth!==void 0?a.linewidth:1;this.linecap=a.linecap!==void 0?a.linecap:"round";this.linejoin=a.linejoin!==void 0?a.linejoin:"round";this.vertexColors=a.vertexColors?a.vertexColors:false;this.fog=a.fog!==void 0?a.fog:true};THREE.LineBasicMaterial.prototype=new THREE.Material;THREE.LineBasicMaterial.prototype.constructor=THREE.LineBasicMaterial;
+THREE.MeshBasicMaterial=function(a){THREE.Material.call(this,a);a=a||{};this.color=a.color!==void 0?new THREE.Color(a.color):new THREE.Color(16777215);this.map=a.map!==void 0?a.map:null;this.lightMap=a.lightMap!==void 0?a.lightMap:null;this.envMap=a.envMap!==void 0?a.envMap:null;this.combine=a.combine!==void 0?a.combine:THREE.MultiplyOperation;this.reflectivity=a.reflectivity!==void 0?a.reflectivity:1;this.refractionRatio=a.refractionRatio!==void 0?a.refractionRatio:0.98;this.fog=a.fog!==void 0?a.fog:
+true;this.shading=a.shading!==void 0?a.shading:THREE.SmoothShading;this.wireframe=a.wireframe!==void 0?a.wireframe:false;this.wireframeLinewidth=a.wireframeLinewidth!==void 0?a.wireframeLinewidth:1;this.wireframeLinecap=a.wireframeLinecap!==void 0?a.wireframeLinecap:"round";this.wireframeLinejoin=a.wireframeLinejoin!==void 0?a.wireframeLinejoin:"round";this.vertexColors=a.vertexColors!==void 0?a.vertexColors:THREE.NoColors;this.skinning=a.skinning!==void 0?a.skinning:false;this.morphTargets=a.morphTargets!==
+void 0?a.morphTargets:false};THREE.MeshBasicMaterial.prototype=new THREE.Material;THREE.MeshBasicMaterial.prototype.constructor=THREE.MeshBasicMaterial;
+THREE.MeshLambertMaterial=function(a){THREE.Material.call(this,a);a=a||{};this.color=a.color!==void 0?new THREE.Color(a.color):new THREE.Color(16777215);this.ambient=a.ambient!==void 0?new THREE.Color(a.ambient):new THREE.Color(16777215);this.emissive=a.emissive!==void 0?new THREE.Color(a.emissive):new THREE.Color(0);this.wrapAround=a.wrapAround!==void 0?a.wrapAround:false;this.wrapRGB=new THREE.Vector3(1,1,1);this.map=a.map!==void 0?a.map:null;this.lightMap=a.lightMap!==void 0?a.lightMap:null;this.envMap=
+a.envMap!==void 0?a.envMap:null;this.combine=a.combine!==void 0?a.combine:THREE.MultiplyOperation;this.reflectivity=a.reflectivity!==void 0?a.reflectivity:1;this.refractionRatio=a.refractionRatio!==void 0?a.refractionRatio:0.98;this.fog=a.fog!==void 0?a.fog:true;this.shading=a.shading!==void 0?a.shading:THREE.SmoothShading;this.wireframe=a.wireframe!==void 0?a.wireframe:false;this.wireframeLinewidth=a.wireframeLinewidth!==void 0?a.wireframeLinewidth:1;this.wireframeLinecap=a.wireframeLinecap!==void 0?
+a.wireframeLinecap:"round";this.wireframeLinejoin=a.wireframeLinejoin!==void 0?a.wireframeLinejoin:"round";this.vertexColors=a.vertexColors!==void 0?a.vertexColors:THREE.NoColors;this.skinning=a.skinning!==void 0?a.skinning:false;this.morphTargets=a.morphTargets!==void 0?a.morphTargets:false;this.morphNormals=a.morphNormals!==void 0?a.morphNormals:false};THREE.MeshLambertMaterial.prototype=new THREE.Material;THREE.MeshLambertMaterial.prototype.constructor=THREE.MeshLambertMaterial;
+THREE.MeshPhongMaterial=function(a){THREE.Material.call(this,a);a=a||{};this.color=a.color!==void 0?new THREE.Color(a.color):new THREE.Color(16777215);this.ambient=a.ambient!==void 0?new THREE.Color(a.ambient):new THREE.Color(16777215);this.emissive=a.emissive!==void 0?new THREE.Color(a.emissive):new THREE.Color(0);this.specular=a.specular!==void 0?new THREE.Color(a.specular):new THREE.Color(1118481);this.shininess=a.shininess!==void 0?a.shininess:30;this.metal=a.metal!==void 0?a.metal:false;this.perPixel=
+a.perPixel!==void 0?a.perPixel:false;this.wrapAround=a.wrapAround!==void 0?a.wrapAround:false;this.wrapRGB=new THREE.Vector3(1,1,1);this.map=a.map!==void 0?a.map:null;this.lightMap=a.lightMap!==void 0?a.lightMap:null;this.envMap=a.envMap!==void 0?a.envMap:null;this.combine=a.combine!==void 0?a.combine:THREE.MultiplyOperation;this.reflectivity=a.reflectivity!==void 0?a.reflectivity:1;this.refractionRatio=a.refractionRatio!==void 0?a.refractionRatio:0.98;this.fog=a.fog!==void 0?a.fog:true;this.shading=
+a.shading!==void 0?a.shading:THREE.SmoothShading;this.wireframe=a.wireframe!==void 0?a.wireframe:false;this.wireframeLinewidth=a.wireframeLinewidth!==void 0?a.wireframeLinewidth:1;this.wireframeLinecap=a.wireframeLinecap!==void 0?a.wireframeLinecap:"round";this.wireframeLinejoin=a.wireframeLinejoin!==void 0?a.wireframeLinejoin:"round";this.vertexColors=a.vertexColors!==void 0?a.vertexColors:THREE.NoColors;this.skinning=a.skinning!==void 0?a.skinning:false;this.morphTargets=a.morphTargets!==void 0?
+a.morphTargets:false;this.morphNormals=a.morphNormals!==void 0?a.morphNormals:false};THREE.MeshPhongMaterial.prototype=new THREE.Material;THREE.MeshPhongMaterial.prototype.constructor=THREE.MeshPhongMaterial;THREE.MeshDepthMaterial=function(a){THREE.Material.call(this,a);a=a||{};this.shading=a.shading!==void 0?a.shading:THREE.SmoothShading;this.wireframe=a.wireframe!==void 0?a.wireframe:false;this.wireframeLinewidth=a.wireframeLinewidth!==void 0?a.wireframeLinewidth:1};
+THREE.MeshDepthMaterial.prototype=new THREE.Material;THREE.MeshDepthMaterial.prototype.constructor=THREE.MeshDepthMaterial;THREE.MeshNormalMaterial=function(a){THREE.Material.call(this,a);a=a||{};this.shading=a.shading?a.shading:THREE.FlatShading;this.wireframe=a.wireframe?a.wireframe:false;this.wireframeLinewidth=a.wireframeLinewidth?a.wireframeLinewidth:1};THREE.MeshNormalMaterial.prototype=new THREE.Material;THREE.MeshNormalMaterial.prototype.constructor=THREE.MeshNormalMaterial;
+THREE.MeshFaceMaterial=function(){};THREE.ParticleBasicMaterial=function(a){THREE.Material.call(this,a);a=a||{};this.color=a.color!==void 0?new THREE.Color(a.color):new THREE.Color(16777215);this.map=a.map!==void 0?a.map:null;this.size=a.size!==void 0?a.size:1;this.sizeAttenuation=a.sizeAttenuation!==void 0?a.sizeAttenuation:true;this.vertexColors=a.vertexColors!==void 0?a.vertexColors:false;this.fog=a.fog!==void 0?a.fog:true};THREE.ParticleBasicMaterial.prototype=new THREE.Material;
+THREE.ParticleBasicMaterial.prototype.constructor=THREE.ParticleBasicMaterial;
+THREE.Texture=function(a,b,c,d,e,f,g,i){this.id=THREE.TextureCount++;this.image=a;this.mapping=b!==void 0?b:new THREE.UVMapping;this.wrapS=c!==void 0?c:THREE.ClampToEdgeWrapping;this.wrapT=d!==void 0?d:THREE.ClampToEdgeWrapping;this.magFilter=e!==void 0?e:THREE.LinearFilter;this.minFilter=f!==void 0?f:THREE.LinearMipMapLinearFilter;this.format=g!==void 0?g:THREE.RGBAFormat;this.type=i!==void 0?i:THREE.UnsignedByteType;this.offset=new THREE.Vector2(0,0);this.repeat=new THREE.Vector2(1,1);this.generateMipmaps=
+true;this.needsUpdate=this.premultiplyAlpha=false;this.onUpdate=null};THREE.Texture.prototype={constructor:THREE.Texture,clone:function(){var a=new THREE.Texture(this.image,this.mapping,this.wrapS,this.wrapT,this.magFilter,this.minFilter,this.format,this.type);a.offset.copy(this.offset);a.repeat.copy(this.repeat);return a}};THREE.TextureCount=0;THREE.MultiplyOperation=0;THREE.MixOperation=1;THREE.UVMapping=function(){};THREE.CubeReflectionMapping=function(){};THREE.CubeRefractionMapping=function(){};
+THREE.SphericalReflectionMapping=function(){};THREE.SphericalRefractionMapping=function(){};THREE.RepeatWrapping=0;THREE.ClampToEdgeWrapping=1;THREE.MirroredRepeatWrapping=2;THREE.NearestFilter=3;THREE.NearestMipMapNearestFilter=4;THREE.NearestMipMapLinearFilter=5;THREE.LinearFilter=6;THREE.LinearMipMapNearestFilter=7;THREE.LinearMipMapLinearFilter=8;THREE.ByteType=9;THREE.UnsignedByteType=10;THREE.ShortType=11;THREE.UnsignedShortType=12;THREE.IntType=13;THREE.UnsignedIntType=14;THREE.FloatType=15;
+THREE.AlphaFormat=16;THREE.RGBFormat=17;THREE.RGBAFormat=18;THREE.LuminanceFormat=19;THREE.LuminanceAlphaFormat=20;THREE.DataTexture=function(a,b,c,d,e,f,g,i,j,h){THREE.Texture.call(this,null,f,g,i,j,h,d,e);this.image={data:a,width:b,height:c}};THREE.DataTexture.prototype=new THREE.Texture;THREE.DataTexture.prototype.constructor=THREE.DataTexture;
+THREE.DataTexture.prototype.clone=function(){var a=new THREE.DataTexture(this.image.data,this.image.width,this.image.height,this.format,this.type,this.mapping,this.wrapS,this.wrapT,this.magFilter,this.minFilter);a.offset.copy(this.offset);a.repeat.copy(this.repeat);return a};THREE.Particle=function(a){THREE.Object3D.call(this);this.material=a};THREE.Particle.prototype=new THREE.Object3D;THREE.Particle.prototype.constructor=THREE.Particle;
+THREE.Line=function(a,b,c){THREE.Object3D.call(this);this.geometry=a;this.material=b!==void 0?b:new THREE.LineBasicMaterial({color:Math.random()*16777215});this.type=c!==void 0?c:THREE.LineStrip;this.geometry&&(this.geometry.boundingSphere||this.geometry.computeBoundingSphere())};THREE.LineStrip=0;THREE.LinePieces=1;THREE.Line.prototype=new THREE.Object3D;THREE.Line.prototype.constructor=THREE.Line;
+THREE.Mesh=function(a,b){THREE.Object3D.call(this);this.geometry=a;this.material=b!==void 0?b:new THREE.MeshBasicMaterial({color:Math.random()*16777215,wireframe:true});if(this.geometry){this.geometry.boundingSphere||this.geometry.computeBoundingSphere();this.boundRadius=a.boundingSphere.radius;if(this.geometry.morphTargets.length){this.morphTargetBase=-1;this.morphTargetForcedOrder=[];this.morphTargetInfluences=[];this.morphTargetDictionary={};for(var c=0;c<this.geometry.morphTargets.length;c++){this.morphTargetInfluences.push(0);
+this.morphTargetDictionary[this.geometry.morphTargets[c].name]=c}}}};THREE.Mesh.prototype=new THREE.Object3D;THREE.Mesh.prototype.constructor=THREE.Mesh;THREE.Mesh.prototype.supr=THREE.Object3D.prototype;THREE.Mesh.prototype.getMorphTargetIndexByName=function(a){if(this.morphTargetDictionary[a]!==void 0)return this.morphTargetDictionary[a];console.log("THREE.Mesh.getMorphTargetIndexByName: morph target "+a+" does not exist. Returning 0.");return 0};
+THREE.Bone=function(a){THREE.Object3D.call(this);this.skin=a;this.skinMatrix=new THREE.Matrix4};THREE.Bone.prototype=new THREE.Object3D;THREE.Bone.prototype.constructor=THREE.Bone;THREE.Bone.prototype.supr=THREE.Object3D.prototype;
+THREE.Bone.prototype.update=function(a,b){this.matrixAutoUpdate&&(b=b|this.updateMatrix());if(b||this.matrixWorldNeedsUpdate){a?this.skinMatrix.multiply(a,this.matrix):this.skinMatrix.copy(this.matrix);this.matrixWorldNeedsUpdate=false;b=true}var c,d=this.children.length;for(c=0;c<d;c++)this.children[c].update(this.skinMatrix,b)};
+THREE.Sprite=function(a){THREE.Object3D.call(this);this.color=a.color!==void 0?new THREE.Color(a.color):new THREE.Color(16777215);this.map=a.map!==void 0?a.map:new THREE.Texture;this.blending=a.blending!==void 0?a.blending:THREE.NormalBlending;this.blendSrc=a.blendSrc!==void 0?a.blendSrc:THREE.SrcAlphaFactor;this.blendDst=a.blendDst!==void 0?a.blendDst:THREE.OneMinusSrcAlphaFactor;this.blendEquation=a.blendEquation!==void 0?a.blendEquation:THREE.AddEquation;this.useScreenCoordinates=a.useScreenCoordinates!==
+void 0?a.useScreenCoordinates:true;this.mergeWith3D=a.mergeWith3D!==void 0?a.mergeWith3D:!this.useScreenCoordinates;this.affectedByDistance=a.affectedByDistance!==void 0?a.affectedByDistance:!this.useScreenCoordinates;this.scaleByViewport=a.scaleByViewport!==void 0?a.scaleByViewport:!this.affectedByDistance;this.alignment=a.alignment instanceof THREE.Vector2?a.alignment:THREE.SpriteAlignment.center;this.rotation3d=this.rotation;this.rotation=0;this.opacity=1;this.uvOffset=new THREE.Vector2(0,0);this.uvScale=
+new THREE.Vector2(1,1)};THREE.Sprite.prototype=new THREE.Object3D;THREE.Sprite.prototype.constructor=THREE.Sprite;THREE.Sprite.prototype.updateMatrix=function(){this.matrix.setPosition(this.position);this.rotation3d.set(0,0,this.rotation);this.matrix.setRotationFromEuler(this.rotation3d);if(this.scale.x!==1||this.scale.y!==1){this.matrix.scale(this.scale);this.boundRadiusScale=Math.max(this.scale.x,this.scale.y)}this.matrixWorldNeedsUpdate=true};THREE.SpriteAlignment={};
+THREE.SpriteAlignment.topLeft=new THREE.Vector2(1,-1);THREE.SpriteAlignment.topCenter=new THREE.Vector2(0,-1);THREE.SpriteAlignment.topRight=new THREE.Vector2(-1,-1);THREE.SpriteAlignment.centerLeft=new THREE.Vector2(1,0);THREE.SpriteAlignment.center=new THREE.Vector2(0,0);THREE.SpriteAlignment.centerRight=new THREE.Vector2(-1,0);THREE.SpriteAlignment.bottomLeft=new THREE.Vector2(1,1);THREE.SpriteAlignment.bottomCenter=new THREE.Vector2(0,1);
+THREE.SpriteAlignment.bottomRight=new THREE.Vector2(-1,1);THREE.Scene=function(){THREE.Object3D.call(this);this.overrideMaterial=this.fog=null;this.matrixAutoUpdate=false;this.__objects=[];this.__lights=[];this.__objectsAdded=[];this.__objectsRemoved=[]};THREE.Scene.prototype=new THREE.Object3D;THREE.Scene.prototype.constructor=THREE.Scene;
+THREE.Scene.prototype.__addObject=function(a){if(a instanceof THREE.Light)this.__lights.indexOf(a)===-1&&this.__lights.push(a);else if(!(a instanceof THREE.Camera||a instanceof THREE.Bone)&&this.__objects.indexOf(a)===-1){this.__objects.push(a);this.__objectsAdded.push(a);var b=this.__objectsRemoved.indexOf(a);b!==-1&&this.__objectsRemoved.splice(b,1)}for(b=0;b<a.children.length;b++)this.__addObject(a.children[b])};
+THREE.Scene.prototype.__removeObject=function(a){if(a instanceof THREE.Light){var b=this.__lights.indexOf(a);b!==-1&&this.__lights.splice(b,1)}else if(!(a instanceof THREE.Camera)){b=this.__objects.indexOf(a);if(b!==-1){this.__objects.splice(b,1);this.__objectsRemoved.push(a);b=this.__objectsAdded.indexOf(a);b!==-1&&this.__objectsAdded.splice(b,1)}}for(b=0;b<a.children.length;b++)this.__removeObject(a.children[b])};
+THREE.SVGRenderer=function(){function a(a,b,c,d){var e,f,g,h,i,j;e=0;for(f=a.length;e<f;e++){g=a[e];h=g.color;if(g instanceof THREE.DirectionalLight){i=g.matrixWorld.getPosition();j=c.dot(i);if(!(j<=0)){j=j*g.intensity;d.r=d.r+h.r*j;d.g=d.g+h.g*j;d.b=d.b+h.b*j}}else if(g instanceof THREE.PointLight){i=g.matrixWorld.getPosition();j=c.dot(E.sub(i,b).normalize());if(!(j<=0)){j=j*(g.distance==0?1:1-Math.min(b.distanceTo(i)/g.distance,1));if(j!=0){j=j*g.intensity;d.r=d.r+h.r*j;d.g=d.g+h.g*j;d.b=d.b+h.b*
+j}}}}}function b(a){if(B[a]==null){B[a]=document.createElementNS("http://www.w3.org/2000/svg","path");M==0&&B[a].setAttribute("shape-rendering","crispEdges")}return B[a]}function c(a){a=(a+1)*0.5;return a<0?0:a>1?1:a}console.log("THREE.SVGRenderer",THREE.REVISION);var d=this,e,f,g,i=new THREE.Projector,j=document.createElementNS("http://www.w3.org/2000/svg","svg"),h,k,m,n,l,o,p,u,H=new THREE.Rectangle,w=new THREE.Rectangle,D=false,s=new THREE.Color,t=new THREE.Color,y=new THREE.Color,x=new THREE.Color,
+z,E=new THREE.Vector3,B=[],F=[],A,L,P,M=1;this.domElement=j;this.sortElements=this.sortObjects=this.autoClear=true;this.info={render:{vertices:0,faces:0}};this.setQuality=function(a){switch(a){case "high":M=1;break;case "low":M=0}};this.setSize=function(a,b){h=a;k=b;m=h/2;n=k/2;j.setAttribute("viewBox",-m+" "+-n+" "+h+" "+k);j.setAttribute("width",h);j.setAttribute("height",k);H.set(-m,-n,m,n)};this.clear=function(){for(;j.childNodes.length>0;)j.removeChild(j.childNodes[0])};this.render=function(h,
+k){var B,E,r,q;this.autoClear&&this.clear();d.info.render.vertices=0;d.info.render.faces=0;e=i.projectScene(h,k,this.sortElements);f=e.elements;g=e.lights;P=L=0;if(D=g.length>0){t.setRGB(0,0,0);y.setRGB(0,0,0);x.setRGB(0,0,0);B=0;for(E=g.length;B<E;B++){q=g[B];r=q.color;if(q instanceof THREE.AmbientLight){t.r=t.r+r.r;t.g=t.g+r.g;t.b=t.b+r.b}else if(q instanceof THREE.DirectionalLight){y.r=y.r+r.r;y.g=y.g+r.g;y.b=y.b+r.b}else if(q instanceof THREE.PointLight){x.r=x.r+r.r;x.g=x.g+r.g;x.b=x.b+r.b}}}B=
+0;for(E=f.length;B<E;B++){r=f[B];q=r.material;q=q instanceof THREE.MeshFaceMaterial?r.faceMaterial:q;if(!(q==null||q.opacity==0)){w.empty();if(r instanceof THREE.RenderableParticle){l=r;l.x=l.x*m;l.y=l.y*-n}else if(r instanceof THREE.RenderableLine){l=r.v1;o=r.v2;l.positionScreen.x=l.positionScreen.x*m;l.positionScreen.y=l.positionScreen.y*-n;o.positionScreen.x=o.positionScreen.x*m;o.positionScreen.y=o.positionScreen.y*-n;w.addPoint(l.positionScreen.x,l.positionScreen.y);w.addPoint(o.positionScreen.x,
+o.positionScreen.y);if(H.intersects(w)){r=l;var J=o,v=P++;if(F[v]==null){F[v]=document.createElementNS("http://www.w3.org/2000/svg","line");M==0&&F[v].setAttribute("shape-rendering","crispEdges")}A=F[v];A.setAttribute("x1",r.positionScreen.x);A.setAttribute("y1",r.positionScreen.y);A.setAttribute("x2",J.positionScreen.x);A.setAttribute("y2",J.positionScreen.y);if(q instanceof THREE.LineBasicMaterial){A.setAttribute("style","fill: none; stroke: "+q.color.getContextStyle()+"; stroke-width: "+q.linewidth+
+"; stroke-opacity: "+q.opacity+"; stroke-linecap: "+q.linecap+"; stroke-linejoin: "+q.linejoin);j.appendChild(A)}}}else if(r instanceof THREE.RenderableFace3){l=r.v1;o=r.v2;p=r.v3;l.positionScreen.x=l.positionScreen.x*m;l.positionScreen.y=l.positionScreen.y*-n;o.positionScreen.x=o.positionScreen.x*m;o.positionScreen.y=o.positionScreen.y*-n;p.positionScreen.x=p.positionScreen.x*m;p.positionScreen.y=p.positionScreen.y*-n;w.addPoint(l.positionScreen.x,l.positionScreen.y);w.addPoint(o.positionScreen.x,
+o.positionScreen.y);w.addPoint(p.positionScreen.x,p.positionScreen.y);if(H.intersects(w)){var J=l,v=o,G=p;d.info.render.vertices=d.info.render.vertices+3;d.info.render.faces++;A=b(L++);A.setAttribute("d","M "+J.positionScreen.x+" "+J.positionScreen.y+" L "+v.positionScreen.x+" "+v.positionScreen.y+" L "+G.positionScreen.x+","+G.positionScreen.y+"z");if(q instanceof THREE.MeshBasicMaterial)s.copy(q.color);else if(q instanceof THREE.MeshLambertMaterial)if(D){s.r=t.r;s.g=t.g;s.b=t.b;a(g,r.centroidWorld,
+r.normalWorld,s);s.r=Math.max(0,Math.min(q.color.r*s.r,1));s.g=Math.max(0,Math.min(q.color.g*s.g,1));s.b=Math.max(0,Math.min(q.color.b*s.b,1))}else s.copy(q.color);else if(q instanceof THREE.MeshDepthMaterial){z=1-q.__2near/(q.__farPlusNear-r.z*q.__farMinusNear);s.setRGB(z,z,z)}else q instanceof THREE.MeshNormalMaterial&&s.setRGB(c(r.normalWorld.x),c(r.normalWorld.y),c(r.normalWorld.z));q.wireframe?A.setAttribute("style","fill: none; stroke: "+s.getContextStyle()+"; stroke-width: "+q.wireframeLinewidth+
+"; stroke-opacity: "+q.opacity+"; stroke-linecap: "+q.wireframeLinecap+"; stroke-linejoin: "+q.wireframeLinejoin):A.setAttribute("style","fill: "+s.getContextStyle()+"; fill-opacity: "+q.opacity);j.appendChild(A)}}else if(r instanceof THREE.RenderableFace4){l=r.v1;o=r.v2;p=r.v3;u=r.v4;l.positionScreen.x=l.positionScreen.x*m;l.positionScreen.y=l.positionScreen.y*-n;o.positionScreen.x=o.positionScreen.x*m;o.positionScreen.y=o.positionScreen.y*-n;p.positionScreen.x=p.positionScreen.x*m;p.positionScreen.y=
+p.positionScreen.y*-n;u.positionScreen.x=u.positionScreen.x*m;u.positionScreen.y=u.positionScreen.y*-n;w.addPoint(l.positionScreen.x,l.positionScreen.y);w.addPoint(o.positionScreen.x,o.positionScreen.y);w.addPoint(p.positionScreen.x,p.positionScreen.y);w.addPoint(u.positionScreen.x,u.positionScreen.y);if(H.intersects(w)){var J=l,v=o,G=p,I=u;d.info.render.vertices=d.info.render.vertices+4;d.info.render.faces++;A=b(L++);A.setAttribute("d","M "+J.positionScreen.x+" "+J.positionScreen.y+" L "+v.positionScreen.x+
+" "+v.positionScreen.y+" L "+G.positionScreen.x+","+G.positionScreen.y+" L "+I.positionScreen.x+","+I.positionScreen.y+"z");if(q instanceof THREE.MeshBasicMaterial)s.copy(q.color);else if(q instanceof THREE.MeshLambertMaterial)if(D){s.r=t.r;s.g=t.g;s.b=t.b;a(g,r.centroidWorld,r.normalWorld,s);s.r=Math.max(0,Math.min(q.color.r*s.r,1));s.g=Math.max(0,Math.min(q.color.g*s.g,1));s.b=Math.max(0,Math.min(q.color.b*s.b,1))}else s.copy(q.color);else if(q instanceof THREE.MeshDepthMaterial){z=1-q.__2near/
+(q.__farPlusNear-r.z*q.__farMinusNear);s.setRGB(z,z,z)}else q instanceof THREE.MeshNormalMaterial&&s.setRGB(c(r.normalWorld.x),c(r.normalWorld.y),c(r.normalWorld.z));q.wireframe?A.setAttribute("style","fill: none; stroke: "+s.getContextStyle()+"; stroke-width: "+q.wireframeLinewidth+"; stroke-opacity: "+q.opacity+"; stroke-linecap: "+q.wireframeLinecap+"; stroke-linejoin: "+q.wireframeLinejoin):A.setAttribute("style","fill: "+s.getContextStyle()+"; fill-opacity: "+q.opacity);j.appendChild(A)}}}}}};
+THREE.RenderableVertex=function(){this.positionWorld=new THREE.Vector3;this.positionScreen=new THREE.Vector4;this.visible=true};THREE.RenderableVertex.prototype.copy=function(a){this.positionWorld.copy(a.positionWorld);this.positionScreen.copy(a.positionScreen)};
+THREE.RenderableFace3=function(){this.v1=new THREE.RenderableVertex;this.v2=new THREE.RenderableVertex;this.v3=new THREE.RenderableVertex;this.centroidWorld=new THREE.Vector3;this.centroidScreen=new THREE.Vector3;this.normalWorld=new THREE.Vector3;this.vertexNormalsWorld=[new THREE.Vector3,new THREE.Vector3,new THREE.Vector3];this.faceMaterial=this.material=null;this.uvs=[[]];this.z=null};
+THREE.RenderableFace4=function(){this.v1=new THREE.RenderableVertex;this.v2=new THREE.RenderableVertex;this.v3=new THREE.RenderableVertex;this.v4=new THREE.RenderableVertex;this.centroidWorld=new THREE.Vector3;this.centroidScreen=new THREE.Vector3;this.normalWorld=new THREE.Vector3;this.vertexNormalsWorld=[new THREE.Vector3,new THREE.Vector3,new THREE.Vector3,new THREE.Vector3];this.faceMaterial=this.material=null;this.uvs=[[]];this.z=null};THREE.RenderableObject=function(){this.z=this.object=null};
+THREE.RenderableParticle=function(){this.rotation=this.z=this.y=this.x=null;this.scale=new THREE.Vector2;this.material=null};THREE.RenderableLine=function(){this.z=null;this.v1=new THREE.RenderableVertex;this.v2=new THREE.RenderableVertex;this.material=null};
+>>>>>>> mrdoob/dev

文件差异内容过多而无法显示
+ 171 - 0
build/custom/ThreeWebGL.js


+ 2 - 2
examples/canvas_camera_orthographic.html

@@ -53,8 +53,8 @@
 				// Grid
 
 				var geometry = new THREE.Geometry();
-				geometry.vertices.push( new THREE.Vertex( new THREE.Vector3( - 500, 0, 0 ) ) );
-				geometry.vertices.push( new THREE.Vertex( new THREE.Vector3( 500, 0, 0 ) ) );
+				geometry.vertices.push( new THREE.Vertex( - 500, 0, 0 ) );
+				geometry.vertices.push( new THREE.Vertex( 500, 0, 0 ) );
 
 				for ( var i = 0; i <= 20; i ++ ) {
 

+ 13 - 2
examples/canvas_camera_orthographic2.html

@@ -119,8 +119,8 @@
 				// Grid
 
 				var geometry = new THREE.Geometry();
-				geometry.vertices.push( new THREE.Vertex( new THREE.Vector3( - 500, 0, 0 ) ) );
-				geometry.vertices.push( new THREE.Vertex( new THREE.Vector3( 500, 0, 0 ) ) );
+				geometry.vertices.push( new THREE.Vertex( - 500, 0, 0 ) );
+				geometry.vertices.push( new THREE.Vertex( 500, 0, 0 ) );
 
 				for ( var i = 0; i <= 20; i ++ ) {
 
@@ -183,6 +183,17 @@
 				stats.domElement.style.top = '0px';
 				container.appendChild( stats.domElement );
 
+				window.addEventListener( 'resize', onWindowResize, false );
+
+				function onWindowResize(){
+
+					camera.setSize( window.innerWidth, window.innerHeight );
+					camera.updateProjectionMatrix();
+
+					renderer.setSize( window.innerWidth, window.innerHeight );
+
+				}
+
 			}
 
 			//

+ 2 - 2
examples/canvas_geometry_birds.html

@@ -21,7 +21,7 @@
 				top: 0px; width: 100%;
 				padding: 5px;
 			}
-                </style>
+		</style>
 	</head>
 	<body>
 
@@ -428,7 +428,7 @@
 					bird.rotation.z = Math.asin( boid.velocity.y / boid.velocity.length() );
 
 					bird.phase = ( bird.phase + ( Math.max( 0, bird.rotation.z ) + 0.1 )  ) % 62.83;
-					bird.geometry.vertices[ 5 ].position.y = bird.geometry.vertices[ 4 ].position.y = Math.sin( bird.phase ) * 5;
+					bird.geometry.vertices[ 5 ].y = bird.geometry.vertices[ 4 ].y = Math.sin( bird.phase ) * 5;
 
 				}
 

+ 2 - 2
examples/canvas_geometry_panorama_fisheye.html

@@ -87,8 +87,8 @@
 
 					var vertex = mesh.geometry.vertices[ i ];
 
-					vertex.position.normalize();
-					vertex.position.multiplyScalar( 550 );
+					vertex.normalize();
+					vertex.multiplyScalar( 550 );
 
 				}
 

+ 1 - 1
examples/canvas_geometry_terrain.html

@@ -75,7 +75,7 @@
 				for ( var i = 0, l = plane.vertices.length; i < l; i ++ ) {
 
 					var x = i % quality, y = ~~ ( i / quality );
-					plane.vertices[ i ].position.y = data[ ( x * step ) + ( y * step ) * 1024 ] * 2 - 128;
+					plane.vertices[ i ].y = data[ ( x * step ) + ( y * step ) * 1024 ] * 2 - 128;
 
 				}
 

+ 5 - 5
examples/canvas_interactive_voxelpainter.html

@@ -42,7 +42,7 @@
 				info.style.top = '10px';
 				info.style.width = '100%';
 				info.style.textAlign = 'center';
-				info.innerHTML = '<a href="http://github.com/mrdoob/three.js" target="_blank">three.js</a> - voxel painter<br /><strong>click</strong>: add voxel, <strong>control + click</strong>: remove voxel, <strong>shift</strong>: rotate, <a href="javascript:save();return false;">save .png</a>';
+				info.innerHTML = '<a href="http://github.com/mrdoob/three.js" target="_blank">three.js</a> - voxel painter<br><strong>click</strong>: add voxel, <strong>control + click</strong>: remove voxel, <strong>shift</strong>: rotate, <a href="javascript:save();return false;">save .png</a>';
 				container.appendChild( info );
 
 				camera = new THREE.PerspectiveCamera( 40, window.innerWidth / window.innerHeight, 1, 10000 );
@@ -55,8 +55,8 @@
 				// Grid
 
 				var geometry = new THREE.Geometry();
-				geometry.vertices.push( new THREE.Vertex( new THREE.Vector3( - 500, 0, 0 ) ) );
-				geometry.vertices.push( new THREE.Vertex( new THREE.Vector3( 500, 0, 0 ) ) );
+				geometry.vertices.push( new THREE.Vertex( - 500, 0, 0 ) );
+				geometry.vertices.push( new THREE.Vertex( 500, 0, 0 ) );
 
 				var material = new THREE.LineBasicMaterial( { color: 0x000000, opacity: 0.2 } );
 
@@ -225,8 +225,8 @@
 
 				} else if ( rollOveredFace ) {
 
-					 rollOveredFace.materials = [];
-					 rollOveredFace = null;
+					rollOveredFace.materials = [];
+					rollOveredFace = null;
 
 				}
 

+ 1 - 1
examples/canvas_lines.html

@@ -85,7 +85,7 @@
 					particle.scale.x = particle.scale.y = 5;
 					scene.add( particle );
 
-					geometry.vertices.push( new THREE.Vertex( particle.position ) );
+					geometry.vertices.push( new THREE.Vertex().copy( particle.position ) );
 
 				}
 

+ 7 - 7
examples/canvas_lines_sphere.html

@@ -93,16 +93,16 @@
 
 					var geometry = new THREE.Geometry();
 
-					var vector = new THREE.Vector3( Math.random() * 2 - 1, Math.random() * 2 - 1, Math.random() * 2 - 1 );
-					vector.normalize();
-					vector.multiplyScalar( 450 );
+					var vertex = new THREE.Vertex( Math.random() * 2 - 1, Math.random() * 2 - 1, Math.random() * 2 - 1 );
+					vertex.normalize();
+					vertex.multiplyScalar( 450 );
 
-					geometry.vertices.push( new THREE.Vertex( vector ) );
+					geometry.vertices.push( vertex );
 
-					var vector2 = vector.clone();
-					vector2.multiplyScalar( Math.random() * 0.3 + 1 );
+					var vertex2 = vertex.clone();
+					vertex2.multiplyScalar( Math.random() * 0.3 + 1 );
 
-					geometry.vertices.push( new THREE.Vertex( vector2 ) );
+					geometry.vertices.push( vertex2 );
 
 					var line = new THREE.Line( geometry, new THREE.LineBasicMaterial( { color: 0xffffff, opacity: Math.random() } ) );
 					scene.add( line );

+ 2 - 2
examples/canvas_materials.html

@@ -44,8 +44,8 @@
 				// Grid
 
 				var geometry = new THREE.Geometry();
-				geometry.vertices.push( new THREE.Vertex( new THREE.Vector3( - 500, 0, 0 ) ) );
-				geometry.vertices.push( new THREE.Vertex( new THREE.Vector3( 500, 0, 0 ) ) );
+				geometry.vertices.push( new THREE.Vertex( - 500, 0, 0 ) );
+				geometry.vertices.push( new THREE.Vertex( 500, 0, 0 ) );
 
 				var material = new THREE.LineBasicMaterial( { color: 0xffffff, opacity: 0.2 } );
 

+ 2 - 2
examples/canvas_performance.html

@@ -54,8 +54,8 @@
 				// Grid
 
 				var geometry = new THREE.Geometry();
-				geometry.vertices.push( new THREE.Vertex( new THREE.Vector3( - 500, 0, 0 ) ) );
-				geometry.vertices.push( new THREE.Vertex( new THREE.Vector3( 500, 0, 0 ) ) );
+				geometry.vertices.push( new THREE.Vertex( - 500, 0, 0 ) );
+				geometry.vertices.push( new THREE.Vertex( 500, 0, 0 ) );
 
 				var material = new THREE.LineBasicMaterial( { color: 0x000000, opacity: 0.5 } );
 

+ 2 - 2
examples/canvas_sandbox.html

@@ -69,8 +69,8 @@
 				// Grid
 
 				var geometry = new THREE.Geometry();
-				geometry.vertices.push( new THREE.Vertex( new THREE.Vector3( - 500, 0, 0 ) ) );
-				geometry.vertices.push( new THREE.Vertex( new THREE.Vector3( 500, 0, 0 ) ) );
+				geometry.vertices.push( new THREE.Vertex( - 500, 0, 0 ) );
+				geometry.vertices.push( new THREE.Vertex( 500, 0, 0 ) );
 
 				var material = new THREE.LineBasicMaterial( { color: 0x000000, opacity: 0.5 } );
 

+ 316 - 0
examples/js/CurveExtras.js

@@ -0,0 +1,316 @@
+/*
+ * A bunch of curves
+ * @author zz85
+ */
+
+// Lets define some curves
+THREE.Curves = {};
+
+// Formula from http://mathworld.wolfram.com/HeartCurve.html
+THREE.Curves.HeartCurve = THREE.Curve.create(
+
+function(s) {
+
+	this.scale = (s === undefined) ? 5 : s;
+
+},
+
+function(t) {
+
+	t *= 2 * Math.PI;
+
+	var tx = 16 * Math.pow(Math.sin(t), 3);
+	ty = 13 * Math.cos(t) - 5 * Math.cos(2 * t) - 2 * Math.cos(3 * t) - Math.cos(4 * t), tz = 0;
+
+	return new THREE.Vector3(tx, ty, tz).multiplyScalar(this.scale);
+
+}
+
+);
+
+
+
+// Viviani's Curve
+// http://en.wikipedia.org/wiki/Viviani%27s_curve
+THREE.Curves.VivianiCurve = THREE.Curve.create(
+
+function(radius) {
+
+	this.radius = radius;
+},
+
+function(t) {
+
+	t = t * 4 * Math.PI; // Normalized to 0..1
+	var a = this.radius / 2;
+	var tx = a * (1 + Math.cos(t)),
+		ty = a * Math.sin(t),
+		tz = 2 * a * Math.sin(t / 2);
+
+	return new THREE.Vector3(tx, ty, tz);
+
+}
+
+);
+
+
+THREE.Curves.KnotCurve = THREE.Curve.create(
+
+function() {
+
+},
+
+function(t) {
+
+	t *= 2 * Math.PI;
+
+	var R = 10;
+	var s = 50;
+	var tx = s * Math.sin(t),
+		ty = Math.cos(t) * (R + s * Math.cos(t)),
+		tz = Math.sin(t) * (R + s * Math.cos(t));
+
+	return new THREE.Vector3(tx, ty, tz);
+
+}
+
+);
+
+THREE.Curves.HelixCurve = THREE.Curve.create(
+
+function() {
+
+},
+
+function(t) {
+
+	var a = 30; // radius
+	var b = 150; //height
+	var t2 = 2 * Math.PI * t * b / 30;
+	var tx = Math.cos(t2) * a,
+		ty = Math.sin(t2) * a,
+		tz = b * t;
+
+	return new THREE.Vector3(tx, ty, tz);
+
+}
+
+);
+
+// Replacement for TorusKnotGeometry?
+THREE.Curves.TrefoilKnot = THREE.Curve.create(
+
+function(s) {
+
+	this.scale = (s === undefined) ? 10 : s;
+
+},
+
+function(t) {
+
+	t *= Math.PI * 2;
+	var tx = (2 + Math.cos(3 * t)) * Math.cos(2 * t),
+		ty = (2 + Math.cos(3 * t)) * Math.sin(2 * t),
+		tz = Math.sin(3 * t);
+
+	return new THREE.Vector3(tx, ty, tz).multiplyScalar(this.scale);
+
+}
+
+);
+
+// Formulas from http://mathdl.maa.org/images/upload_library/23/stemkoski/knots/page6.html
+THREE.Curves.TorusKnot = THREE.Curve.create(
+
+function(s) {
+
+	this.scale = (s === undefined) ? 10 : s;
+
+},
+
+function(t) {
+
+	var p = 3,
+		q = 4;
+	t *= Math.PI * 2;
+	var tx = (2 + Math.cos(q * t)) * Math.cos(p * t),
+		ty = (2 + Math.cos(q * t)) * Math.sin(p * t),
+		tz = Math.sin(q * t);
+
+	return new THREE.Vector3(tx, ty, tz).multiplyScalar(this.scale);
+
+}
+
+);
+
+
+THREE.Curves.CinquefoilKnot = THREE.Curve.create(
+
+function(s) {
+
+	this.scale = (s === undefined) ? 10 : s;
+
+},
+
+function(t) {
+
+	var p = 2,
+		q = 5;
+	t *= Math.PI * 2;
+	var tx = (2 + Math.cos(q * t)) * Math.cos(p * t),
+		ty = (2 + Math.cos(q * t)) * Math.sin(p * t),
+		tz = Math.sin(q * t);
+
+	return new THREE.Vector3(tx, ty, tz).multiplyScalar(this.scale);
+
+}
+
+);
+
+
+THREE.Curves.TrefoilPolynomialKnot = THREE.Curve.create(
+
+function(s) {
+
+	this.scale = (s === undefined) ? 10 : s;
+
+},
+
+function(t) {
+
+	t = t * 4 - 2;
+	var tx = Math.pow(t, 3) - 3 * t,
+		ty = Math.pow(t, 4) - 4 * t * t,
+		tz = 1 / 5 * Math.pow(t, 5) - 2 * t;
+
+	return new THREE.Vector3(tx, ty, tz).multiplyScalar(this.scale);
+
+}
+
+);
+
+var sin = Math.sin,
+	pow = Math.pow,
+	cos = Math.cos;
+// var scaleTo = function(x, y) {
+//   var r = y - x;
+//   return function(t) {
+//     t * r + x;
+//   };
+// }
+var scaleTo = function(x, y, t) {
+
+		var r = y - x;
+		return t * r + x;
+
+	}
+
+THREE.Curves.FigureEightPolynomialKnot = THREE.Curve.create(
+
+function(s) {
+
+	this.scale = (s === undefined) ? 1 : s;
+
+},
+
+function(t) {
+
+	t = scaleTo(-4, 4, t);
+	var tx = 2 / 5 * t * (t * t - 7) * (t * t - 10),
+		ty = pow(t, 4) - 13 * t * t,
+		tz = 1 / 10 * t * (t * t - 4) * (t * t - 9) * (t * t - 12);
+
+	return new THREE.Vector3(tx, ty, tz).multiplyScalar(this.scale);
+
+}
+
+);
+
+// When there's time, try more formulas at http://mathdl.maa.org/images/upload_library/23/stemkoski/knots/page4.html
+
+//http://www.mi.sanu.ac.rs/vismath/taylorapril2011/Taylor.pdf
+THREE.Curves.DecoratedTorusKnot4a = THREE.Curve.create(
+
+function(s) {
+
+	this.scale = (s === undefined) ? 40 : s;
+
+},
+
+function(t) {
+
+	t *= Math.PI * 2;
+	var
+	x = cos(2 * t) * (1 + 0.6 * (cos(5 * t) + 0.75 * cos(10 * t))),
+		y = sin(2 * t) * (1 + 0.6 * (cos(5 * t) + 0.75 * cos(10 * t))),
+		z = 0.35 * sin(5 * t);
+
+	return new THREE.Vector3(x, y, z).multiplyScalar(this.scale);
+
+}
+
+);
+
+
+THREE.Curves.DecoratedTorusKnot4b = THREE.Curve.create(
+
+function(s) {
+
+	this.scale = (s === undefined) ? 40 : s;
+
+},
+
+function(t) {
+	var fi = t * Math.PI * 2;
+	var x = cos(2 * fi) * (1 + 0.45 * cos(3 * fi) + 0.4 * cos(9 * fi)),
+		y = sin(2 * fi) * (1 + 0.45 * cos(3 * fi) + 0.4 * cos(9 * fi)),
+		z = 0.2 * sin(9 * fi);
+
+	return new THREE.Vector3(x, y, z).multiplyScalar(this.scale);
+
+}
+
+);
+
+
+THREE.Curves.DecoratedTorusKnot5a = THREE.Curve.create(
+
+function(s) {
+
+	this.scale = (s === undefined) ? 40 : s;
+
+},
+
+function(t) {
+
+	var fi = t * Math.PI * 2;
+	var x = cos(3 * fi) * (1 + 0.3 * cos(5 * fi) + 0.5 * cos(10 * fi)),
+		y = sin(3 * fi) * (1 + 0.3 * cos(5 * fi) + 0.5 * cos(10 * fi)),
+		z = 0.2 * sin(20 * fi);
+
+	return new THREE.Vector3(x, y, z).multiplyScalar(this.scale);
+
+}
+
+);
+
+THREE.Curves.DecoratedTorusKnot5c = THREE.Curve.create(
+
+function(s) {
+
+	this.scale = (s === undefined) ? 40 : s;
+
+},
+
+function(t) {
+
+	var fi = t * Math.PI * 2;
+	var x = cos(4 * fi) * (1 + 0.5 * (cos(5 * fi) + 0.4 * cos(20 * fi))),
+		y = sin(4 * fi) * (1 + 0.5 * (cos(5 * fi) + 0.4 * cos(20 * fi))),
+		z = 0.35 * sin(15 * fi);
+
+	return new THREE.Vector3(x, y, z).multiplyScalar(this.scale);
+
+}
+
+);

+ 7 - 4
examples/js/ShaderExtras.js

@@ -1,6 +1,7 @@
 /**
  * @author alteredq / http://alteredqualia.com/
  * @author zz85 / http://www.lab4games.net/zz85/blog
+ * @author davidedc / http://www.sketchpatch.net/
  *
  * ShaderExtras currently contains:
  *
@@ -1188,7 +1189,9 @@ THREE.ShaderExtras = {
 				"vec3 rgbNE = texture2D( tDiffuse, ( gl_FragCoord.xy + vec2( 1.0, -1.0 ) ) * resolution ).xyz;",
 				"vec3 rgbSW = texture2D( tDiffuse, ( gl_FragCoord.xy + vec2( -1.0, 1.0 ) ) * resolution ).xyz;",
 				"vec3 rgbSE = texture2D( tDiffuse, ( gl_FragCoord.xy + vec2( 1.0, 1.0 ) ) * resolution ).xyz;",
-				"vec3 rgbM  = texture2D( tDiffuse,  gl_FragCoord.xy  * resolution ).xyz;",
+				"vec4 rgbaM  = texture2D( tDiffuse,  gl_FragCoord.xy  * resolution );",
+				"vec3 rgbM  = rgbaM.xyz;",
+				"float opacity  = rgbaM.w;",
 
 				"vec3 luma = vec3( 0.299, 0.587, 0.114 );",
 
@@ -1223,17 +1226,17 @@ THREE.ShaderExtras = {
 
 				"if ( ( lumaB < lumaMin ) || ( lumaB > lumaMax ) ) {",
 
-					"gl_FragColor = vec4( rgbA, 1.0 );",
+					"gl_FragColor = vec4( rgbA, opacity );",
 
 				"} else {",
 
-					"gl_FragColor = vec4( rgbB, 1.0 );",
+					"gl_FragColor = vec4( rgbB, opacity );",
 
 				"}",
 
 			"}",
 
-		].join("\n"),
+		].join("\n")
 
 	},
 

+ 286 - 0
examples/js/ShaderGodRays.js

@@ -0,0 +1,286 @@
+/**
+ * @author huwb / http://huwbowles.com/
+ *
+ * God-rays (crepuscular rays)
+ *
+ * Similar implementation to the one used by Crytek for CryEngine 2 [Sousa2008].
+ * Blurs a mask generated from the depth map along radial lines emanating from the light
+ * source. The blur repeatedly applies a blur filter of increasing support but constant
+ * sample count to produce a blur filter with large support.
+ *
+ * My implementation performs 3 passes, similar to the implementation from Sousa. I found
+ * just 6 samples per pass produced acceptible results. The blur is applied three times,
+ * with decreasing filter support. The result is equivalent to a single pass with
+ * 6*6*6 = 216 samples.
+ *
+ * References:
+ *
+ * Sousa2008 - Crysis Next Gen Effects, GDC2008, http://www.crytek.com/sites/default/files/GDC08_SousaT_CrysisEffects.ppt
+ */
+
+THREE.ShaderGodRays = {
+
+	/**
+	 * The god-ray generation shader.
+	 *
+	 * First pass:
+	 *
+	 * The input is the depth map. I found that the output from the
+	 * THREE.MeshDepthMaterial material was directly suitable without
+	 * requiring any treatment whatsoever.
+	 *
+	 * The depth map is blurred along radial lines towards the "sun". The
+	 * output is written to a temporary render target (I used a 1/4 sized
+	 * target).
+	 *
+	 * Pass two & three:
+	 *
+	 * The results of the previous pass are re-blurred, each time with a
+	 * decreased distance between samples.
+	 */
+
+	'godrays_generate': {
+
+		uniforms: {
+
+			tInput: {
+				type: "t",
+				value: 0,
+				texture: null
+			},
+
+			fStepSize: {
+				type: "f",
+				value: 1.0
+			},
+
+			vSunPositionScreenSpace: {
+				type: "v2",
+				value: new THREE.Vector2( 0.5, 0.5 )
+			}
+
+		},
+
+		vertexShader: [
+
+			"varying vec2 vUv;",
+
+			"void main() {",
+
+				"vUv = vec2( uv.x, 1.0 - uv.y );",
+				"gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );",
+
+			"}"
+
+		].join("\n"),
+
+		fragmentShader: [
+
+			"#define TAPS_PER_PASS 6.0",
+
+			"varying vec2 vUv;",
+
+			"uniform sampler2D tInput;",
+
+			"uniform vec2 vSunPositionScreenSpace;",
+			"uniform float fStepSize;", // filter step size
+
+			"void main() {",
+
+				// delta from current pixel to "sun" position
+
+				"vec2 delta = vSunPositionScreenSpace - vUv;",
+				"float dist = length( delta );",
+
+				// Step vector (uv space)
+
+				"vec2 stepv = fStepSize * delta / dist;",
+
+				// Number of iterations between pixel and sun
+
+				"float iters = dist/fStepSize;",
+
+				"vec2 uv = vUv.xy;",
+				"float col = 0.0;",
+
+				// Unrolling didnt do much on my hardware (ATI Mobility Radeon 3450),
+				// so i've just left the loop
+
+				"for ( float i = 0.0; i < TAPS_PER_PASS; i += 1.0 ) {",
+
+					// Accumulate samples, making sure we dont walk past the light source.
+
+					// The check for uv.y < 1 would not be necessary with "border" UV wrap
+					// mode, with a black border colour. I don't think this is currently
+					// exposed by three.js. As a result there might be artifacts when the
+					// sun is to the left, right or bottom of screen as these cases are
+					// not specifically handled.
+
+					"col += ( i <= iters && uv.y < 1.0 ? texture2D( tInput, uv ).r : 0.0 );",
+					"uv += stepv;",
+
+				"}",
+
+				// Should technically be dividing by 'iters', but 'TAPS_PER_PASS' smooths out
+				// objectionable artifacts, in particular near the sun position. The side
+				// effect is that the result is darker than it should be around the sun, as
+				// TAPS_PER_PASS is greater than the number of samples actually accumulated.
+				// When the result is inverted (in the shader 'godrays_combine', this produces
+				// a slight bright spot at the position of the sun, even when it is occluded.
+
+				"gl_FragColor = vec4( col/TAPS_PER_PASS );",
+				"gl_FragColor.a = 1.0;",
+
+			"}"
+
+		].join("\n")
+
+	},
+
+	/**
+	 * Additively applies god rays from texture tGodRays to a background (tColors).
+	 * fGodRayIntensity attenuates the god rays.
+	 */
+
+	'godrays_combine': {
+
+		uniforms: {
+
+			tColors: {
+				type: "t",
+				value: 0,
+				texture: null
+			},
+
+			tGodRays: {
+				type: "t",
+				value: 1,
+				texture: null
+			},
+
+			fGodRayIntensity: {
+				type: "f",
+				value: 0.69
+			},
+
+			vSunPositionScreenSpace: {
+				type: "v2",
+				value: new THREE.Vector2( 0.5, 0.5 )
+			}
+
+		},
+
+		vertexShader: [
+
+			"varying vec2 vUv;",
+
+			"void main() {",
+
+				"vUv = vec2( uv.x, 1.0 - uv.y );",
+				"gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );",
+
+			"}"
+
+			].join("\n"),
+
+		fragmentShader: [
+
+			"varying vec2 vUv;",
+
+			"uniform sampler2D tColors;",
+			"uniform sampler2D tGodRays;",
+
+			"uniform vec2 vSunPositionScreenSpace;",
+			"uniform float fGodRayIntensity;",
+
+			"void main() {",
+
+				// Since THREE.MeshDepthMaterial renders foreground objects white and background
+				// objects black, the god-rays will be white streaks. Therefore value is inverted
+				// before being combined with tColors
+
+				"gl_FragColor = texture2D( tColors, vUv ) + fGodRayIntensity * vec4( 1.0 - texture2D( tGodRays, vUv ).r );",
+				"gl_FragColor.a = 1.0;",
+
+			"}"
+
+		].join("\n")
+
+	},
+
+
+	/**
+	 * A dodgy sun/sky shader. Makes a bright spot at the sun location. Would be
+	 * cheaper/faster/simpler to implement this as a simple sun sprite.
+	 */
+
+	'godrays_fake_sun': {
+
+		uniforms: {
+
+			vSunPositionScreenSpace: {
+				type: "v2",
+				value: new THREE.Vector2( 0.5, 0.5 )
+			},
+
+			fAspect: {
+				type: "f",
+				value: 1.0
+			},
+
+			sunColor: {
+				type: "c",
+				value: new THREE.Color( 0xffee00 )
+			},
+
+			bgColor: {
+				type: "c",
+				value: new THREE.Color( 0x000000 )
+			}
+
+		},
+
+		vertexShader: [
+
+			"varying vec2 vUv;",
+
+			"void main() {",
+
+				"vUv = vec2( uv.x, 1.0 - uv.y );",
+				"gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );",
+
+			"}"
+
+		].join("\n"),
+
+		fragmentShader: [
+
+			"varying vec2 vUv;",
+
+			"uniform vec2 vSunPositionScreenSpace;",
+			"uniform float fAspect;",
+
+			"uniform vec3 sunColor;",
+			"uniform vec3 bgColor;",
+
+			"void main() {",
+
+				"vec2 diff = vUv - vSunPositionScreenSpace;",
+
+				// Correct for aspect ratio
+
+				"diff.x *= fAspect;",
+
+				"float prop = clamp( length( diff ) / 0.5, 0.0, 1.0 );",
+				"prop = 0.35 * pow( 1.0 - prop, 3.0 );",
+
+				"gl_FragColor.xyz = mix( sunColor, bgColor, 1.0 - prop );",
+				"gl_FragColor.w = 1.0;",
+
+			"}"
+
+		].join("\n")
+
+	}
+
+};

+ 1 - 1
examples/js/ctm/CTMLoader.js

@@ -763,7 +763,7 @@ THREE.CTMLoader.prototype.createModelClassic = function ( file, callback ) {
 
 	function vertex ( scope, x, y, z ) {
 
-		scope.vertices.push( new THREE.Vertex( new THREE.Vector3( x, y, z ) ) );
+		scope.vertices.push( new THREE.Vertex( x, y, z ) );
 
 	};
 

+ 6 - 6
examples/misc_camera_fly.html

@@ -181,19 +181,19 @@
 
 				for ( i = 0; i < 250; i ++ ) {
 
-					vector1 = new THREE.Vector3( Math.random() * 2 - 1, Math.random() * 2 - 1, Math.random() * 2 - 1 );
-					vector1.multiplyScalar( r );
+					var vertex = new THREE.Vertex( Math.random() * 2 - 1, Math.random() * 2 - 1, Math.random() * 2 - 1 );
+					vertex.multiplyScalar( r );
 
-					starsGeometry[ 0 ].vertices.push( new THREE.Vertex( vector1 ) );
+					starsGeometry[ 0 ].vertices.push( vertex );
 
 				}
 
 				for ( i = 0; i < 1500; i ++ ) {
 
-					vector1 = new THREE.Vector3( Math.random() * 2 - 1, Math.random() * 2 - 1, Math.random() * 2 - 1 );
-					vector1.multiplyScalar( r );
+					var vertex = new THREE.Vertex( Math.random() * 2 - 1, Math.random() * 2 - 1, Math.random() * 2 - 1 );
+					vertex.multiplyScalar( r );
 
-					starsGeometry[ 1 ].vertices.push( new THREE.Vertex( vector1 ) );
+					starsGeometry[ 1 ].vertices.push( vertex );
 
 				}
 

+ 6 - 6
examples/misc_ubiquity_test.html

@@ -103,13 +103,13 @@
 
 					var v = new THREE.Vector3( Math.random() * 1000 - 500, Math.random() * 1000 - 500, Math.random() * 1000 - 500 );
 
-					var v0 = new THREE.Vertex( new THREE.Vector3( Math.random() * 100 - 50, Math.random() * 100 - 50, Math.random() * 100 - 50 ) );
-					var v1 = new THREE.Vertex( new THREE.Vector3( Math.random() * 100 - 50, Math.random() * 100 - 50, Math.random() * 100 - 50 ) );
-					var v2 = new THREE.Vertex( new THREE.Vector3( Math.random() * 100 - 50, Math.random() * 100 - 50, Math.random() * 100 - 50 ) );
+					var v0 = new THREE.Vertex( Math.random() * 100 - 50, Math.random() * 100 - 50, Math.random() * 100 - 50 );
+					var v1 = new THREE.Vertex( Math.random() * 100 - 50, Math.random() * 100 - 50, Math.random() * 100 - 50 );
+					var v2 = new THREE.Vertex( Math.random() * 100 - 50, Math.random() * 100 - 50, Math.random() * 100 - 50 );
 
-					v0.position.addSelf( v );
-					v1.position.addSelf( v );
-					v2.position.addSelf( v );
+					v0.addSelf( v );
+					v1.addSelf( v );
+					v2.addSelf( v );
 
 					var face = new THREE.Face3( geometry.vertices.push( v0 ) - 1, geometry.vertices.push( v1 ) - 1, geometry.vertices.push( v2 ) - 1, null, null, geometry.materials.length );
 

+ 0 - 0
examples/models/monster.dae → examples/models/collada/monster/monster.dae


+ 0 - 0
examples/models/monster.jpg → examples/models/collada/monster/monster.jpg


+ 1 - 0
examples/models/collada/monster/readme.txt

@@ -0,0 +1 @@
+Model from http://www.3drt.com/downloads.htm

文件差异内容过多而无法显示
+ 324 - 0
examples/models/collada/pump/pump.dae


二进制
examples/models/collada/pump/pump_body.jpg


二进制
examples/models/collada/pump/pump_gears.jpg


二进制
examples/models/collada/pump/pump_metalreflect.jpg


+ 0 - 0
examples/ctm/LeePerry.ctm → examples/models/ctm/LeePerry.ctm


+ 0 - 0
examples/ctm/WaltHead.ctm → examples/models/ctm/WaltHead.ctm


+ 0 - 0
examples/ctm/ben.ctm → examples/models/ctm/ben.ctm


+ 0 - 0
examples/ctm/camaro/camaro.ctm → examples/models/ctm/camaro/camaro.ctm


+ 0 - 0
examples/ctm/camaro/camaro.js → examples/models/ctm/camaro/camaro.js


+ 0 - 0
examples/ctm/camaro/car-ao.png → examples/models/ctm/camaro/car-ao.png


+ 0 - 0
examples/ctm/camaro/plane-ao-256.png → examples/models/ctm/camaro/plane-ao-256.png


+ 0 - 0
examples/ctm/hand.ctm → examples/models/ctm/hand.ctm


+ 0 - 1
examples/models/readme.txt

@@ -1 +0,0 @@
-Monster model from http://www.3drt.com/downloads.htm

+ 0 - 0
examples/utf8/ben.utf8 → examples/models/utf8/ben.utf8


+ 0 - 0
examples/utf8/hand.utf8 → examples/models/utf8/hand.utf8


+ 1 - 1
examples/obj/Bird.js

@@ -25,7 +25,7 @@ var Bird = function () {
 
 	function v( x, y, z ) {
 
-		scope.vertices.push( new THREE.Vertex( new THREE.Vector3( x, y, z ) ) );
+		scope.vertices.push( new THREE.Vertex( x, y, z ) );
 
 	}
 

+ 1 - 1
examples/obj/Qrcode.js

@@ -1443,7 +1443,7 @@ var Qrcode = function () {
 
 	function v( x, y, z ) {
 
-		scope.vertices.push( new THREE.Vertex( new THREE.Vector3( x, y, z ) ) );
+		scope.vertices.push( new THREE.Vertex( x, y, z ) );
 
 	}
 

+ 7 - 0
examples/obj/tree/.htaccess

@@ -0,0 +1,7 @@
+<Files *.js>
+SetOutputFilter DEFLATE
+</Files>
+
+<Files *.bin>
+SetOutputFilter DEFLATE
+</Files>

文件差异内容过多而无法显示
+ 23 - 0
examples/obj/tree/tree.js


+ 4311 - 0
examples/obj/tree/tree.obj

@@ -0,0 +1,4311 @@
+# This file uses centimeters as units for non-parametric coordinates.
+
+v 0.061043 0.025284 0.034490
+v 0.011829 0.022302 0.083267
+v -0.058528 0.017917 0.083267
+v -0.109573 0.014532 -0.034490
+v -0.026732 0.060313 -0.099586
+v 0.032816 0.217090 -0.081389
+v 0.014186 0.220894 -0.037159
+v -0.030439 0.223336 -0.148347
+v 0.014332 0.218101 -0.127445
+v -0.012410 0.359863 -0.058151
+v 0.007135 0.364429 -0.096394
+v 0.050050 0.365321 -0.111165
+v 0.091197 0.362018 -0.093810
+v -0.034402 0.607330 0.018474
+v -0.047875 0.608469 0.045145
+v -0.075711 0.608536 0.056203
+v -0.101604 0.607492 0.045169
+v -0.110386 0.605948 0.018508
+v -0.096912 0.604808 -0.008164
+v -0.069076 0.604741 -0.019221
+v -0.043184 0.605786 -0.008188
+v -0.005259 0.780558 -0.089352
+v 0.019098 0.779084 -0.078251
+v -0.049662 0.990274 0.082265
+v -0.065202 0.990373 0.074837
+v -0.057327 0.991273 0.057896
+v -0.041787 0.991173 0.065324
+v -0.025339 1.145101 0.000000
+v 0.063987 -0.005220 -0.034490
+v 0.064746 -0.005053 0.034490
+v 0.015533 -0.008035 0.083267
+v -0.054824 -0.012419 0.083267
+v -0.105111 -0.015637 0.034490
+v -0.105869 -0.015804 -0.034490
+v -0.028686 -0.011068 -0.098198
+v 0.016454 -0.008265 -0.098938
+v 0.069705 0.132069 -0.030589
+v 0.046198 0.133147 0.026017
+v -0.011239 0.134185 0.048551
+v -0.068960 0.134576 0.023813
+v -0.093153 0.134091 -0.033705
+v -0.069646 0.133013 -0.090311
+v -0.012209 0.131974 -0.112845
+v 0.045512 0.131584 -0.088107
+v 0.060284 0.025117 -0.034490
+v 0.074466 0.040836 -0.004252
+v 0.046764 0.038939 0.063257
+v -0.112630 0.073898 0.031315
+v -0.093477 0.019923 -0.074960
+v 0.012751 0.022071 -0.098938
+v 0.042219 0.064768 -0.071638
+v 0.113534 0.005387 -0.027553
+v 0.104410 0.016756 -0.004446
+v 0.094627 0.004297 0.024654
+v 0.097609 -0.020131 0.024654
+v 0.116516 -0.019041 -0.027553
+v 0.165229 -0.016172 0.022676
+v 0.167928 -0.010108 0.034203
+v 0.172309 -0.015681 0.049160
+v 0.173781 -0.027741 0.049160
+v 0.166701 -0.028232 0.022676
+v 0.223852 -0.035138 0.004759
+v 0.112872 -0.012736 -0.096485
+v 0.084831 -0.014530 -0.123684
+v 0.110807 0.004181 -0.096485
+v 0.082766 0.002386 -0.123684
+v 0.102484 0.011952 -0.117200
+v 0.148290 -0.031922 -0.170902
+v -0.093294 -0.015045 -0.073807
+v -0.016381 0.021291 -0.153534
+v -0.018776 -0.001544 -0.148548
+v 0.003238 -0.000669 -0.154808
+v -0.047505 0.015676 -0.131589
+v 0.001476 0.014615 -0.156781
+v -0.047329 -0.001851 -0.128241
+v -0.055269 -0.001482 -0.184760
+v -0.055507 -0.015180 -0.181753
+v -0.047381 -0.014975 -0.185529
+v -0.066633 -0.004404 -0.171524
+v -0.048468 -0.005757 -0.186719
+v -0.066069 -0.014947 -0.169504
+v -0.073066 -0.010493 -0.226679
+v -0.157555 0.009940 0.089984
+v -0.172627 0.024322 0.054311
+v -0.158703 0.009746 0.001569
+v -0.156239 -0.010437 0.001569
+v -0.170901 -0.011277 0.054096
+v -0.155091 -0.010242 0.089984
+v -0.249887 -0.014220 0.054871
+v -0.255392 -0.004868 0.031186
+v -0.243244 -0.013881 0.017696
+v -0.241685 -0.026651 0.017696
+v -0.254251 -0.027389 0.030766
+v -0.248328 -0.026990 0.054871
+v -0.317616 -0.023315 0.001723
+v -0.024921 0.060970 0.091389
+v 0.009011 0.002511 0.122996
+v -0.035581 0.005710 0.124806
+v 0.011110 -0.014683 0.122996
+v -0.033239 -0.015454 0.124337
+v -0.003901 0.028029 0.134276
+v 0.075910 -0.021050 0.221453
+v -0.008968 -0.003134 0.155814
+v -0.006853 -0.017537 0.156097
+v -0.065435 -0.002915 0.158962
+v -0.059811 -0.010030 0.158782
+v -0.059446 0.008571 0.162610
+v -0.054137 -0.002898 0.170905
+v -0.050128 -0.007679 0.171014
+v -0.101107 -0.037419 0.164454
+v -0.084857 0.247553 -0.084351
+v -0.065909 0.278454 -0.046870
+v -0.022049 0.241529 -0.018455
+v -0.027588 0.212620 -0.009760
+v -0.072023 0.197926 -0.031692
+v -0.093787 0.218469 -0.079454
+v -0.203335 0.323966 0.023975
+v -0.188092 0.331478 0.044959
+v -0.189917 0.324537 0.071675
+v -0.206985 0.310084 0.077408
+v -0.222228 0.302573 0.056424
+v -0.220403 0.309514 0.029708
+v -0.391278 0.444276 -0.008491
+v -0.383778 0.452632 0.007174
+v -0.388723 0.449201 0.027092
+v -0.401168 0.437414 0.031344
+v -0.408668 0.429059 0.015679
+v -0.403723 0.432490 -0.004239
+v -0.563896 0.515683 0.007964
+v -0.558852 0.519890 0.016664
+v -0.562857 0.518465 0.027740
+v -0.571905 0.512833 0.030116
+v -0.576949 0.508626 0.021417
+v -0.572945 0.510051 0.010341
+v -0.657225 0.660087 -0.048334
+v -0.650643 0.662540 -0.039216
+v -0.653534 0.660141 -0.027530
+v -0.663006 0.655289 -0.024963
+v -0.669588 0.652836 -0.034081
+v -0.666697 0.655235 -0.045767
+v -0.734590 0.711815 0.013046
+v -0.222939 0.330789 0.044135
+v -0.201473 0.335159 0.059299
+v -0.183694 0.321395 0.065855
+v -0.187381 0.303262 0.057248
+v -0.208847 0.298892 0.042084
+v -0.226626 0.312655 0.035528
+v -0.311111 0.302779 0.189061
+v -0.295547 0.305799 0.204549
+v -0.287339 0.292794 0.219836
+v -0.294697 0.276768 0.219635
+v -0.310261 0.273748 0.204147
+v -0.318468 0.286753 0.188860
+v -0.444054 0.378761 0.257440
+v -0.437794 0.381175 0.266621
+v -0.436022 0.375481 0.275497
+v -0.440510 0.367373 0.275194
+v -0.446770 0.364958 0.266014
+v -0.448542 0.370652 0.257137
+v -0.601728 0.372490 0.365952
+v -0.380935 0.435847 -0.001033
+v -0.379475 0.449425 0.007716
+v -0.394763 0.454423 0.020175
+v -0.411511 0.445843 0.023886
+v -0.412971 0.432266 0.015138
+v -0.397684 0.427268 0.002678
+v -0.496275 0.505590 -0.181381
+v -0.496029 0.513471 -0.177495
+v -0.505280 0.516724 -0.171907
+v -0.514777 0.512095 -0.170205
+v -0.515023 0.504214 -0.174091
+v -0.505772 0.500961 -0.179679
+v -0.568096 0.545817 -0.389724
+v -0.660813 0.661901 -0.046627
+v -0.652733 0.663915 -0.038791
+v -0.652035 0.659703 -0.028812
+v -0.659418 0.653475 -0.026670
+v -0.667499 0.651461 -0.034507
+v -0.668196 0.655673 -0.044485
+v -0.734590 0.711815 0.013046
+v -0.572490 0.519890 0.011844
+v -0.561270 0.520342 0.014729
+v -0.556681 0.514710 0.021925
+v -0.563311 0.508626 0.026236
+v -0.574531 0.508175 0.023351
+v -0.579120 0.513807 0.016155
+v -0.594487 0.559002 0.085473
+v -0.583530 0.559921 0.089239
+v -0.579676 0.555597 0.098898
+v -0.586780 0.550354 0.104792
+v -0.597736 0.549435 0.101026
+v -0.601590 0.553759 0.091367
+v -0.625342 0.621512 0.132529
+v -0.029237 0.484801 -0.057992
+v -0.000226 0.452443 -0.070622
+v 0.034084 0.451258 -0.055985
+v 0.028216 0.488878 -0.031632
+v 0.014756 0.509774 -0.046013
+v -0.017973 0.510847 -0.059764
+v 0.044635 0.552342 -0.227241
+v 0.060131 0.542012 -0.237752
+v 0.083936 0.544196 -0.236114
+v 0.092244 0.556709 -0.223963
+v 0.076748 0.567038 -0.213451
+v 0.052943 0.564855 -0.215090
+v -0.025367 0.644074 -0.384664
+v -0.014775 0.638211 -0.396202
+v 0.002306 0.641678 -0.397502
+v 0.008796 0.651008 -0.387264
+v -0.001796 0.656871 -0.375726
+v -0.018878 0.653404 -0.374426
+v -0.040218 0.734709 -0.495677
+v -0.034171 0.731003 -0.501461
+v -0.024867 0.733596 -0.502924
+v -0.021610 0.739895 -0.498605
+v -0.027657 0.743601 -0.492822
+v -0.036961 0.741008 -0.491358
+v -0.133056 0.766329 -0.659632
+v -0.126082 0.762000 -0.663301
+v -0.115945 0.764092 -0.663631
+v -0.112782 0.770513 -0.660293
+v -0.119756 0.774843 -0.656624
+v -0.129894 0.772751 -0.656293
+v -0.101527 0.803591 -0.743173
+v 0.058261 0.562815 -0.242395
+v 0.070197 0.549322 -0.247133
+v 0.080375 0.541032 -0.230340
+v 0.078618 0.546236 -0.208809
+v 0.066682 0.559729 -0.204071
+v 0.056504 0.568019 -0.220864
+v 0.181358 0.619533 -0.256831
+v 0.193723 0.609766 -0.261079
+v 0.210415 0.607017 -0.248570
+v 0.214741 0.614036 -0.231812
+v 0.202376 0.623803 -0.227564
+v 0.185684 0.626552 -0.240073
+v 0.209116 0.685765 -0.377896
+v 0.216140 0.681633 -0.381587
+v 0.225157 0.681507 -0.376878
+v 0.227150 0.685513 -0.368478
+v 0.220127 0.689645 -0.364787
+v 0.211110 0.689771 -0.369496
+v 0.293200 0.780213 -0.419826
+v -0.016346 0.639314 -0.375217
+v -0.013202 0.636186 -0.392048
+v -0.005142 0.644413 -0.402795
+v -0.000226 0.655768 -0.396711
+v -0.003369 0.658896 -0.379880
+v -0.011429 0.650670 -0.369133
+v -0.189015 0.696573 -0.432319
+v -0.188187 0.695117 -0.441926
+v -0.184971 0.700061 -0.448259
+v -0.182582 0.706461 -0.444984
+v -0.183409 0.707918 -0.435377
+v -0.186626 0.702974 -0.429045
+v -0.373963 0.732930 -0.443383
+v -0.132349 0.768156 -0.662605
+v -0.126230 0.763012 -0.665265
+v -0.116800 0.763277 -0.662622
+v -0.113489 0.768686 -0.657320
+v -0.119608 0.773830 -0.654660
+v -0.129039 0.773565 -0.657302
+v -0.101527 0.803591 -0.743173
+v -0.038654 0.739108 -0.502599
+v -0.035983 0.732367 -0.501931
+v -0.028242 0.730562 -0.496473
+v -0.023174 0.735496 -0.491683
+v -0.025846 0.742237 -0.492351
+v -0.033586 0.744043 -0.497809
+v 0.008871 0.745565 -0.565837
+v 0.012111 0.738902 -0.565925
+v 0.021441 0.737312 -0.562583
+v 0.027530 0.742385 -0.559152
+v 0.024290 0.749049 -0.559063
+v 0.014960 0.750639 -0.562406
+v 0.027361 0.753459 -0.650835
+v 0.098971 0.342262 -0.057236
+v 0.080541 0.323799 -0.018567
+v 0.035103 0.336234 -0.003772
+v 0.036164 0.373471 0.001852
+v 0.075348 0.398926 -0.012791
+v 0.097638 0.378469 -0.050429
+v 0.160964 0.456088 0.163408
+v 0.159525 0.442620 0.184078
+v 0.138063 0.442092 0.202779
+v 0.118039 0.455033 0.200810
+v 0.119478 0.468502 0.180139
+v 0.140941 0.469029 0.161438
+v 0.327304 0.580309 0.246148
+v 0.329658 0.572729 0.264042
+v 0.315857 0.574701 0.279728
+v 0.299702 0.584251 0.277520
+v 0.297349 0.591831 0.259625
+v 0.311150 0.589859 0.243939
+v 0.409892 0.693885 0.335919
+v 0.410653 0.689097 0.345425
+v 0.403594 0.691034 0.354673
+v 0.395773 0.697759 0.354415
+v 0.395012 0.702547 0.344908
+v 0.402072 0.700610 0.335660
+v 0.615162 0.751080 0.398964
+v 0.613550 0.745336 0.407411
+v 0.604984 0.746523 0.416354
+v 0.598029 0.753454 0.416850
+v 0.599640 0.759198 0.408404
+v 0.608207 0.758011 0.399461
+v 0.649796 0.795023 0.498981
+v 0.159840 0.467405 0.188522
+v 0.157287 0.450385 0.201068
+v 0.136949 0.438541 0.194654
+v 0.119163 0.443716 0.175695
+v 0.121716 0.460736 0.163150
+v 0.142055 0.472581 0.169563
+v 0.056838 0.518954 0.309031
+v 0.052611 0.506208 0.321905
+v 0.029136 0.500244 0.325073
+v 0.009889 0.507025 0.315367
+v 0.014116 0.519771 0.302494
+v 0.037590 0.525735 0.299326
+v 0.118769 0.599184 0.440264
+v 0.117087 0.593666 0.448790
+v 0.105781 0.592138 0.452355
+v 0.096158 0.596129 0.447393
+v 0.097840 0.601648 0.438867
+v 0.109145 0.603175 0.435303
+v 0.061516 0.701163 0.555096
+v 0.313179 0.573119 0.245279
+v 0.325397 0.569948 0.261671
+v 0.325722 0.579109 0.278226
+v 0.313828 0.591441 0.278389
+v 0.301609 0.594612 0.261997
+v 0.301285 0.585451 0.245441
+v 0.488666 0.664723 0.154918
+v 0.496354 0.663420 0.163501
+v 0.497782 0.669123 0.171988
+v 0.491521 0.676130 0.171891
+v 0.483833 0.677434 0.163307
+v 0.482406 0.671731 0.154821
+v 0.640971 0.731040 0.013651
+v 0.616613 0.753281 0.402228
+v 0.615062 0.746640 0.409034
+v 0.605045 0.745625 0.414713
+v 0.596578 0.751252 0.413586
+v 0.598128 0.757894 0.406780
+v 0.608146 0.758908 0.401101
+v 0.649796 0.795023 0.498981
+v 0.413302 0.699191 0.343465
+v 0.412200 0.690944 0.344448
+v 0.401731 0.687575 0.346149
+v 0.392363 0.692453 0.346869
+v 0.393465 0.700700 0.345886
+v 0.403935 0.704069 0.344184
+v 0.425402 0.704066 0.436689
+v 0.424445 0.695877 0.438787
+v 0.414380 0.692671 0.443607
+v 0.405273 0.697655 0.446330
+v 0.406230 0.705843 0.444232
+v 0.416295 0.709049 0.439412
+v 0.479156 0.715408 0.524064
+v -0.315152 0.899639 -0.108081
+v -0.315130 0.896911 -0.111069
+v -0.312304 0.896928 -0.114995
+v -0.312347 0.902383 -0.109021
+v -0.348501 0.914088 -0.137929
+v -0.075270 0.229728 -0.131852
+v 0.002865 0.354300 -0.018838
+v 0.031618 0.492900 -0.015978
+v 0.013737 0.503698 0.016177
+v -0.019774 0.491003 0.029027
+v -0.049369 0.480896 0.013166
+v -0.061398 0.482906 -0.019822
+v -0.044889 0.484619 -0.052279
+v -0.015645 0.772807 -0.072454
+v -0.011121 0.780381 -0.077107
+v -0.013007 0.787936 -0.071803
+v 0.008208 0.772392 -0.052438
+v -0.012764 0.778290 -0.058302
+v -0.314542 0.896940 -0.111858
+v -0.314140 0.900519 -0.108540
+v -0.313489 0.896985 -0.113481
+v -0.310529 0.902467 -0.113821
+v -0.311877 0.902315 -0.109827
+v -0.075132 0.802664 -0.104187
+v -0.076929 0.796972 -0.112541
+v -0.072179 0.797611 -0.123389
+v -0.065633 0.803942 -0.125883
+v -0.063836 0.809634 -0.117529
+v -0.068585 0.808995 -0.106681
+v -0.163488 0.844578 -0.103592
+v -0.166776 0.841150 -0.110105
+v -0.164587 0.842470 -0.118414
+v -0.159111 0.847219 -0.120211
+v -0.155823 0.850647 -0.113698
+v -0.158012 0.849327 -0.105389
+v -0.220905 0.886184 -0.120587
+v -0.222396 0.884074 -0.124149
+v -0.221581 0.885117 -0.128842
+v -0.219274 0.888271 -0.129974
+v -0.217783 0.890381 -0.126412
+v -0.218599 0.889337 -0.121718
+v -0.313827 0.898842 -0.107150
+v -0.314157 0.896468 -0.110748
+v -0.312656 0.897281 -0.115607
+v -0.310824 0.900468 -0.116867
+v -0.310493 0.902842 -0.113269
+v -0.311995 0.902029 -0.108410
+v -0.348501 0.914088 -0.137929
+v -0.313398 0.896989 -0.113563
+v -0.310488 0.902594 -0.113628
+v -0.311912 0.902312 -0.109781
+v -0.348501 0.914088 -0.137929
+v -0.348501 0.914088 -0.137929
+v -0.348501 0.914088 -0.137929
+v -0.348501 0.914088 -0.137929
+v -0.348501 0.914088 -0.137929
+vt 0.131375 0.762327
+vt 0.437504 0.963420
+vt 0.086658 0.708747
+vt 0.461481 0.919841
+vt 0.357670 0.794304
+vt 0.323844 0.740885
+vt 0.220530 0.938794
+vt 0.999084 0.482194
+vt 0.129176 0.786619
+vt 0.273518 0.805223
+vt 0.222591 0.210262
+vt 0.464104 0.593798
+vt 0.880972 0.481508
+vt 0.451843 0.616338
+vt 0.061173 0.996503
+vt 0.655344 0.545161
+vt 0.021411 0.432082
+vt 0.884161 0.516715
+vt 0.768482 0.442408
+vt 0.661203 0.530861
+vt 0.104587 0.228904
+vt 0.782179 0.610023
+vt 0.724012 0.743411
+vt 0.727992 0.734589
+vt 0.772920 0.420410
+vt 0.473382 0.963694
+vt 0.254482 0.190939
+vt 0.380010 0.714108
+vt 0.137210 0.882460
+vt 0.794244 0.105105
+vt 0.788614 0.090921
+vt 0.000000 0.612433
+vt 0.490748 0.765506
+vt 0.227040 0.751515
+vt 0.936744 0.147670
+vt 0.933272 0.156551
+vt 0.129176 0.904228
+vt 0.972522 0.412850
+vt 0.896240 0.020133
+vt 0.844140 0.741391
+vt 0.690353 0.707500
+vt 0.000000 0.434941
+vt 0.639502 0.586140
+vt 0.307988 0.854475
+vt 0.669323 0.399709
+vt 0.518940 0.543848
+vt 0.304975 0.868725
+vt 0.334138 0.676560
+vt 0.937692 0.141522
+vt 0.406550 0.949371
+vt 0.939733 0.127797
+vt 0.314938 0.805223
+vt 0.373798 0.762680
+vt 0.343382 0.706871
+vt 0.107761 0.424947
+vt 0.323844 0.800622
+vt 0.776906 0.572167
+vt 0.000000 0.872961
+vt 0.325414 0.825792
+vt 0.263530 0.941120
+vt 0.227040 0.941290
+vt 0.313515 0.929776
+vt 0.437504 0.891515
+vt 0.425020 0.676560
+vt 0.961358 0.269182
+vt 0.384209 0.850216
+vt 0.533478 0.593736
+vt 0.308205 0.918175
+vt 0.286433 0.929550
+vt 0.227040 0.811487
+vt 0.000071 0.881864
+vt 0.011217 0.963897
+vt 0.884842 0.456855
+vt 0.380010 0.941173
+vt 0.272900 0.845179
+vt 0.220530 0.960756
+vt 0.519126 0.622619
+vt 0.382580 0.920945
+vt 0.997000 0.268808
+vt 0.029315 0.993455
+vt 0.029686 0.970046
+vt 0.001980 0.298576
+vt 0.030640 0.299491
+vt 0.001927 0.340273
+vt 0.116091 0.873159
+vt 0.037841 0.905344
+vt 0.813955 0.491711
+vt 0.966374 0.390661
+vt 0.956672 0.410998
+vt 0.013868 0.332770
+vt 0.815458 0.523572
+vt 0.000000 0.945015
+vt 0.975060 0.391035
+vt 0.031721 0.358542
+vt 0.437504 0.919625
+vt 0.411026 0.940877
+vt 0.912429 0.390749
+vt 0.380010 0.871774
+vt 0.254280 0.837706
+vt 0.129176 0.720938
+vt 0.170382 0.749181
+vt 0.166067 0.729418
+vt 0.965312 0.549299
+vt 0.102692 0.596055
+vt 0.091090 0.593996
+vt 0.120575 0.593206
+vt 0.018236 0.429584
+vt 0.404680 0.927421
+vt 0.002990 0.429305
+vt 0.290347 0.975185
+vt 0.422435 0.690895
+vt 0.336348 0.530861
+vt 0.512792 0.543948
+vt 0.277178 0.918175
+vt 0.291693 0.979586
+vt 0.456730 0.781243
+vt 0.283326 0.922527
+vt 0.994996 0.845474
+vt 0.509157 0.535759
+vt 0.323844 0.882220
+vt 0.080191 0.960237
+vt 0.359723 0.853903
+vt 0.456750 0.790146
+vt 0.966695 0.381020
+vt 0.633077 0.169033
+vt 0.636712 0.183295
+vt 0.766903 0.180965
+vt 0.767399 0.191845
+vt 0.437542 0.913477
+vt 0.129176 0.938794
+vt 0.525391 0.639278
+vt 0.849932 0.484555
+vt 0.270133 0.934972
+vt 0.106873 0.203203
+vt 0.821621 0.991400
+vt 0.962667 0.743592
+vt 0.962626 0.734589
+vt 0.181834 0.811108
+vt 0.490333 0.392480
+vt 0.491052 0.412539
+vt 0.004950 0.679833
+vt 0.452461 0.634220
+vt 0.452686 0.951501
+vt 0.278338 0.395987
+vt 0.323844 0.860221
+vt 0.760720 0.144718
+vt 0.030972 0.945894
+vt 0.173569 0.153292
+vt 0.872804 0.996593
+vt 0.040004 0.961098
+vt 0.173531 0.158076
+vt 0.096023 0.945015
+vt 0.778235 0.986866
+vt 0.149218 0.155109
+vt 0.440859 0.942644
+vt 0.459082 0.943303
+vt 0.323844 0.853978
+vt 0.907984 0.404283
+vt 0.870083 0.405623
+vt 0.760645 0.138546
+vt 0.774363 0.979040
+vt 0.743741 0.985784
+vt 0.380010 0.894562
+vt 0.284905 0.968837
+vt 0.042842 0.926729
+vt 0.312470 0.941120
+vt 0.314844 0.969447
+vt 0.005574 0.499215
+vt 0.386000 0.877922
+vt 0.488170 0.913218
+vt 0.781590 0.964927
+vt 0.084942 0.593372
+vt 0.850481 0.478563
+vt 0.282553 0.751795
+vt 0.331687 0.876072
+vt 0.645685 0.118266
+vt 0.052655 0.718771
+vt 0.044114 0.745632
+vt 0.999736 0.104602
+vt 0.051477 0.764334
+vt 0.945882 0.141459
+vt 0.644704 0.111884
+vt 0.245796 0.799074
+vt 0.481526 0.902931
+vt 0.122413 0.709251
+vt 0.006678 0.725284
+vt 0.087527 0.682793
+vt 0.516793 0.946384
+vt 0.526739 0.954494
+vt 0.481526 0.954313
+vt 0.260958 0.962153
+vt 0.997507 0.090162
+vt 0.950144 0.111884
+vt 0.380243 0.987466
+vt 0.346317 0.909041
+vt 0.441389 0.996316
+vt 0.950405 0.676560
+vt 0.950405 0.685804
+vt 0.143227 0.912426
+vt 0.110247 0.677298
+vt 0.347257 0.930358
+vt 0.593004 0.145722
+vt 0.475377 0.885366
+vt 0.380010 0.976054
+vt 0.524314 0.150362
+vt 0.287423 0.988218
+vt 0.283514 0.997896
+vt 0.441052 0.969843
+vt 0.678653 0.979076
+vt 0.684127 0.987099
+vt 0.749125 0.999252
+vt 0.311068 0.995046
+vt 0.718208 0.979427
+vt 0.445694 0.611171
+vt 0.743741 0.993015
+vt 0.976807 0.759101
+vt 0.777872 0.993962
+vt 0.869488 0.166234
+vt 0.869050 0.172389
+vt 0.620563 0.222301
+vt 0.626929 0.209894
+vt 0.805657 0.544760
+vt 0.437504 0.980369
+vt 0.801675 0.530861
+vt 0.995250 0.680043
+vt 0.890175 0.664042
+vt 0.816330 0.690503
+vt 0.442798 0.624812
+vt 0.325179 0.707960
+vt 0.327989 0.694301
+vt 0.437504 0.986518
+vt 0.715814 0.745927
+vt 0.473124 0.973648
+vt 0.430100 0.900710
+vt 0.426218 0.914797
+vt 0.713582 0.734589
+vt 0.190549 0.411598
+vt 0.227040 0.686467
+vt 0.612013 0.745715
+vt 0.612084 0.739717
+vt 0.959248 0.774499
+vt 0.364214 0.860126
+vt 0.609616 0.978095
+vt 0.235422 0.676560
+vt 0.483337 0.877560
+vt 0.086137 0.551723
+vt 0.609616 0.968850
+vt 0.539989 0.626611
+vt 0.649370 0.974668
+vt 0.312391 0.956252
+vt 0.863321 0.038707
+vt 0.643735 0.396398
+vt 0.726296 0.478281
+vt 0.357420 0.593736
+vt 0.890076 0.653230
+vt 0.986130 0.604963
+vt 0.786511 0.663185
+vt 0.897524 0.982798
+vt 0.979625 0.593736
+vt 0.871893 0.035831
+vt 0.646952 0.073322
+vt 0.212010 0.771740
+vt 0.077336 0.718771
+vt 0.719678 0.451520
+vt 0.233703 0.988218
+vt 0.884503 0.604735
+vt 0.539627 0.615805
+vt 0.785906 0.657197
+vt 0.832337 0.036017
+vt 0.227040 0.998493
+vt 0.964986 0.482291
+vt 0.744670 0.916202
+vt 0.344935 0.036143
+vt 0.743560 0.922175
+vt 0.467077 0.897515
+vt 0.882666 0.598791
+vt 0.468082 0.908576
+vt 0.007341 0.137422
+vt 0.231062 0.607010
+vt 0.802963 0.920529
+vt 0.014041 0.137473
+vt 0.013800 0.112981
+vt 0.345956 0.022207
+vt 0.648459 0.838045
+vt 0.656375 0.714108
+vt 0.235670 0.628071
+vt 0.860743 0.350744
+vt 0.323844 0.794473
+vt 0.648563 0.084013
+vt 0.112816 0.917212
+vt 0.864699 0.336837
+vt 0.648718 0.844041
+vt 0.656569 0.724919
+vt 0.109062 0.905344
+vt 0.692008 0.000000
+vt 0.483321 0.816616
+vt 0.388853 0.799655
+vt 0.483357 0.805804
+vt 0.048991 0.916483
+vt 0.000000 0.932878
+vt 0.000705 0.938866
+vt 0.693799 0.013858
+vt 0.380010 0.813191
+vt 0.380577 0.807199
+vt 0.119258 0.934389
+vt 0.609616 0.916202
+vt 0.609723 0.922198
+vt 0.601563 0.476778
+vt 0.863868 0.853323
+vt 0.670425 0.918111
+vt 0.543549 0.347247
+vt 0.530970 0.841559
+vt 0.865016 0.859290
+vt 0.210370 0.287727
+vt 0.242326 0.267291
+vt 0.206500 0.033101
+vt 0.105321 0.820960
+vt 0.967506 0.330182
+vt 0.561054 0.009906
+vt 0.563006 0.020614
+vt 0.464289 0.042167
+vt 0.131236 0.249764
+vt 0.131677 0.235052
+vt 0.530746 0.406575
+vt 0.630462 0.261456
+vt 0.418233 0.987504
+vt 0.630375 0.267628
+vt 0.531284 0.412569
+vt 0.744359 0.235052
+vt 0.743366 0.241432
+vt 0.795612 0.269293
+vt 0.380010 0.759101
+vt 0.974786 0.320433
+vt 0.227503 0.670411
+vt 0.575108 0.024051
+vt 0.216581 0.641474
+vt 0.380176 0.773045
+vt 0.464146 0.048480
+vt 0.965234 0.799320
+vt 0.963166 0.793376
+vt 0.867632 0.798952
+vt 0.120756 0.475308
+vt 0.113363 0.483197
+vt 0.102834 0.480739
+vt 0.539372 0.179207
+vt 0.099698 0.470392
+vt 0.107091 0.462502
+vt 0.130452 0.648226
+vt 0.539045 0.166234
+vt 0.067054 0.969187
+vt 0.053109 0.969169
+vt 0.046153 0.957083
+vt 0.540974 0.352663
+vt 0.053141 0.945015
+vt 0.067086 0.945034
+vt 0.074043 0.957120
+vt 0.499556 0.326322
+vt 0.865421 0.922124
+vt 0.478141 0.759208
+vt 0.455415 0.225219
+vt 0.453847 0.219196
+vt 0.863539 0.916202
+vt 0.809112 0.921565
+vt 0.649853 0.726727
+vt 0.117620 0.464960
+vt 0.000000 0.856016
+vt 0.650226 0.715922
+vt 0.220245 0.702640
+vt 0.581105 0.024048
+vt 0.584106 0.029240
+vt 0.220892 0.714790
+vt 0.791666 0.574293
+vt 0.598772 0.966590
+vt 0.600033 0.491711
+vt 0.554910 0.859304
+vt 0.555676 0.853323
+vt 0.437504 0.853641
+vt 0.802773 0.558146
+vt 0.598944 0.952403
+vt 0.581110 0.034435
+vt 0.654866 0.844049
+vt 0.353700 0.087792
+vt 0.762767 0.902931
+vt 0.656754 0.838045
+vt 0.599026 0.946407
+vt 0.753846 0.840742
+vt 0.983498 0.877560
+vt 0.538226 0.948577
+vt 0.575114 0.034438
+vt 0.762790 0.908927
+vt 0.823543 0.905699
+vt 0.734213 0.958750
+vt 0.802455 0.934312
+vt 0.894625 0.491711
+vt 0.572113 0.029246
+vt 0.801617 0.928346
+vt 0.745567 0.933763
+vt 0.829691 0.904044
+vt 0.429537 0.844067
+vt 0.484185 0.411639
+vt 0.481103 0.399594
+vt 0.983208 0.883550
+vt 0.371130 0.401670
+vt 0.370701 0.392480
+vt 0.001434 0.866813
+vt 0.227040 0.877899
+vt 0.227297 0.889676
+vt 0.313539 0.877088
+vt 0.922659 0.877615
+vt 0.889372 0.020930
+vt 0.102781 0.857342
+vt 0.883871 0.018542
+vt 0.883190 0.012584
+vt 0.888008 0.009015
+vt 0.104314 0.863322
+vt 0.431356 0.838353
+vt 0.129176 0.634220
+vt 0.110966 0.849867
+vt 0.352830 0.076020
+vt 0.312111 0.886745
+vt 0.668289 0.896773
+vt 0.772778 0.870529
+vt 0.829822 0.910040
+vt 0.774149 0.865453
+vt 0.692163 0.868611
+vt 0.437504 0.831896
+vt 0.437504 0.838045
+vt 0.437763 0.847175
+vt 0.464612 0.085487
+vt 0.129176 0.539059
+vt 0.524821 0.838177
+vt 0.524502 0.843251
+vt 0.463460 0.076366
+vt 0.787739 0.969938
+vt 0.674437 0.891714
+vt 0.789148 0.964927
+vt 0.841145 0.969673
+vt 0.927082 0.854486
+vt 0.893509 0.011404
+vt 0.380010 0.828302
+vt 0.382384 0.822765
+vt 0.894191 0.017361
+vt 0.662953 0.984244
+vt 0.437663 0.822765
+vt 0.686122 0.877560
+vt 0.130077 0.548148
+vt 0.080191 0.977279
+vt 0.686287 0.882627
+vt 0.086019 0.967042
+vt 0.481526 0.883516
+vt 0.586851 0.879477
+vt 0.018335 0.559843
+vt 0.578652 0.882815
+vt 0.013953 0.562384
+vt 0.009561 0.559860
+vt 0.009551 0.554794
+vt 0.013933 0.552253
+vt 0.018325 0.554777
+vt 0.097798 0.966970
+vt 0.103750 0.977135
+vt 0.314834 0.745366
+vt 0.113625 0.560496
+vt 0.679392 0.966948
+vt 0.664307 0.990178
+vt 0.255926 0.235052
+vt 0.248475 0.252851
+vt 0.108559 0.560504
+vt 0.609616 0.990036
+vt 0.678653 0.928346
+vt 0.362351 0.270857
+vt 0.362048 0.283281
+vt 0.893143 0.497521
+vt 0.097923 0.987373
+vt 0.678655 0.934343
+vt 0.470269 0.238922
+vt 0.471872 0.247980
+vt 0.000000 0.462502
+vt 0.880607 0.902931
+vt 0.881785 0.908903
+vt 0.942394 0.503895
+vt 0.993200 0.160070
+vt 0.086144 0.987445
+vt 0.277366 0.998199
+vt 0.593741 0.521437
+vt 0.530028 0.904464
+vt 0.901935 0.005742
+vt 0.779810 0.595713
+vt 0.893143 0.517240
+vt 0.687393 0.604495
+vt 0.991310 0.041309
+vt 0.603815 0.746391
+vt 0.600673 0.734589
+vt 0.129312 0.579292
+vt 0.106020 0.556121
+vt 0.208313 0.885072
+vt 0.202629 0.903514
+vt 0.687393 0.618530
+vt 0.108546 0.551730
+vt 0.129176 0.584504
+vt 0.688459 0.627669
+vt 0.992806 0.029601
+vt 0.774185 0.621041
+vt 0.113611 0.551723
+vt 0.116151 0.556106
+vt 0.893616 0.522301
+vt 0.775399 0.626113
+vt 0.317696 0.731718
+vt 0.953031 0.768234
+vt 0.679890 0.805804
+vt 0.225784 0.558146
+vt 0.224880 0.563524
+vt 0.584831 0.782613
+vt 0.953099 0.759101
+vt 0.268728 0.587587
+vt 0.874679 0.032435
+vt 0.209430 0.995212
+vt 0.865488 0.766061
+vt 0.483398 0.237518
+vt 0.478020 0.247998
+vt 0.865061 0.760995
+vt 0.982850 0.725886
+vt 0.678653 0.993248
+vt 0.585210 0.794387
+vt 0.207849 0.022301
+vt 0.739419 0.931316
+vt 0.107903 0.006295
+vt 0.783208 0.896756
+vt 0.132425 0.969675
+vt 0.788328 0.618315
+vt 0.790015 0.627929
+vt 0.538226 0.902931
+vt 0.683438 0.815450
+vt 0.778141 0.877560
+vt 0.210983 0.985575
+vt 0.776392 0.882580
+vt 0.694485 0.877784
+vt 0.804113 0.957875
+vt 0.660826 0.781243
+vt 0.587267 0.938209
+vt 0.107412 0.000000
+vt 0.763820 0.770477
+vt 0.765850 0.759101
+vt 0.762451 0.793376
+vt 0.780298 0.865453
+vt 0.987036 0.787211
+vt 0.584884 0.142585
+vt 0.925114 0.287265
+vt 0.924964 0.276454
+vt 0.551982 0.273919
+vt 0.662773 0.790808
+vt 0.552257 0.284878
+vt 0.982656 0.714108
+vt 0.586856 0.131954
+vt 0.988952 0.583730
+vt 0.001736 0.057430
+vt 0.622902 0.235052
+vt 0.624226 0.240140
+vt 0.857720 0.858378
+vt 0.856270 0.853323
+vt 0.773884 0.856490
+vt 0.103126 0.897146
+vt 0.572357 0.442190
+vt 0.922846 0.921266
+vt 0.103197 0.888013
+vt 0.489506 0.805850
+vt 0.489688 0.814982
+vt 0.539815 0.908004
+vt 0.875988 0.620296
+vt 0.620622 0.905807
+vt 0.804123 0.952810
+vt 0.855447 0.955443
+vt 0.896988 0.964927
+vt 0.896942 0.969992
+vt 0.368913 0.995223
+vt 0.645891 0.580365
+vt 0.645650 0.586362
+vt 0.764884 0.583522
+vt 0.587491 0.932216
+vt 0.538585 0.936390
+vt 0.538226 0.930375
+vt 0.774048 0.759101
+vt 0.774180 0.770879
+vt 0.580793 0.896782
+vt 0.000000 0.071295
+vt 0.139832 0.067584
+vt 0.137930 0.078300
+vt 0.236921 0.099423
+vt 0.237087 0.105735
+vt 0.933231 0.853323
+vt 0.934740 0.859298
+vt 0.993062 0.855370
+vt 0.994491 0.293875
+vt 0.295552 0.353779
+vt 0.302505 0.341691
+vt 0.999198 0.301702
+vt 0.573654 0.433150
+vt 0.216517 0.306849
+vt 0.216812 0.293875
+vt 0.667255 0.853323
+vt 0.666996 0.858386
+vt 0.369653 0.990188
+vt 0.323844 0.990463
+vt 0.767736 0.857091
+vt 0.001773 0.160086
+vt 0.000000 0.146226
+vt 0.132740 0.150339
+vt 0.130801 0.139630
+vt 0.920636 0.441515
+vt 0.994774 0.309692
+vt 0.400557 0.584495
+vt 0.229544 0.118197
+vt 0.229694 0.111884
+vt 0.391630 0.558146
+vt 0.858912 0.759224
+vt 0.985642 0.309855
+vt 0.980935 0.302029
+vt 0.985359 0.294039
+vt 0.787739 0.978136
+vt 0.904707 0.420410
+vt 0.853773 0.768907
+vt 0.481027 0.752952
+vt 0.480753 0.734589
+vt 0.284486 0.414198
+vt 0.284851 0.408999
+vt 0.581304 0.891714
+vt 0.481526 0.894678
+vt 0.909343 0.865453
+vt 0.909434 0.870517
+vt 0.340999 0.157732
+vt 0.960709 0.867072
+vt 0.873320 0.608419
+vt 0.341687 0.151615
+vt 0.331820 0.665189
+vt 0.938466 0.104143
+vt 0.547719 0.062748
+vt 0.915179 0.811793
+vt 0.338536 0.655043
+vt 0.295580 0.775668
+vt 0.804969 0.940491
+vt 0.934783 0.090162
+vt 0.800393 0.101072
+vt 0.805191 0.945552
+vt 0.856360 0.940773
+vt 0.548131 0.057430
+vt 0.525410 0.979935
+vt 0.895090 0.828629
+vt 0.288702 0.763537
+vt 0.295768 0.751515
+vt 0.525563 0.974872
+vt 0.309712 0.751623
+vt 0.316591 0.763753
+vt 0.909525 0.945530
+vt 0.800427 0.090260
+vt 0.786074 0.714108
+vt 0.309525 0.775776
+vt 0.975021 0.933383
+vt 0.785796 0.724917
+vt 0.595346 0.481731
+vt 0.667907 0.960652
+vt 0.669020 0.954679
+vt 0.609616 0.956291
+vt 0.595414 0.476517
+vt 0.895573 0.823569
+vt 0.498771 0.456930
+vt 0.917208 0.693518
+vt 0.972904 0.921951
+vt 0.972983 0.916886
+vt 0.874467 0.603485
+vt 0.929889 0.921280
+vt 0.929083 0.916202
+vt 0.832759 0.598982
+vt 0.342017 0.625674
+vt 0.271170 0.524712
+vt 0.974290 0.928346
+vt 0.233651 0.639641
+vt 0.913479 0.805804
+vt 0.422633 0.697044
+vt 0.921201 0.705011
+vt 0.660848 0.853323
+vt 0.761742 0.838045
+vt 0.658852 0.859291
+vt 0.926965 0.933140
+vt 0.784168 0.891714
+vt 0.759994 0.844020
+vt 0.822685 0.687370
+vt 0.733983 0.892882
+vt 0.422435 0.707854
+vt 0.344726 0.611995
+vt 0.445996 0.662659
+vt 0.498079 0.451520
+vt 0.453697 0.478987
+vt 0.917401 0.645999
+vt 0.701782 0.690469
+vt 0.072507 0.975336
+vt 0.705728 0.676560
+vt 0.917448 0.634220
+vt 0.665634 0.828764
+vt 0.570486 0.687539
+vt 0.270535 0.498909
+vt 0.544113 0.308225
+vt 0.547384 0.293875
+vt 0.409562 0.320174
+vt 0.570648 0.676728
+vt 0.665796 0.822765
+vt 0.945052 0.270306
+vt 0.446262 0.651108
+vt 0.822478 0.676560
+vt 0.668922 0.781243
+vt 0.409775 0.309284
+vt 0.546609 0.827161
+vt 0.309257 0.303472
+vt 0.628820 0.902931
+vt 0.308654 0.297330
+vt 0.628936 0.908926
+vt 0.672323 0.828754
+vt 0.671944 0.822765
+vt 0.789719 0.822897
+vt 0.573720 0.039475
+vt 0.578919 0.036487
+vt 0.857545 0.390661
+vt 0.129176 0.421706
+vt 0.132720 0.435991
+vt 0.689632 0.904754
+vt 0.778932 0.651116
+vt 0.481526 0.865453
+vt 0.483550 0.871411
+vt 0.997414 0.828755
+vt 0.674244 0.790824
+vt 0.852377 0.734589
+vt 0.852338 0.743722
+vt 0.585271 0.865453
+vt 0.585888 0.870509
+vt 0.686015 0.866295
+vt 0.593004 0.152719
+vt 0.262923 0.434488
+vt 0.429913 0.360193
+vt 0.781961 0.871387
+vt 0.840162 0.865957
+vt 0.129176 0.849271
+vt 0.584106 0.039495
+vt 0.584094 0.045492
+vt 0.578895 0.048480
+vt 0.779757 0.640335
+vt 0.920576 0.933406
+vt 0.579122 0.866522
+vt 0.920816 0.928346
+vt 0.869425 0.928434
+vt 0.849413 0.983046
+vt 0.323844 0.967153
+vt 0.849343 0.977981
+vt 0.791328 0.896756
+vt 0.909153 0.957829
+vt 0.790316 0.891714
+vt 0.836496 0.893044
+vt 0.840364 0.330688
+vt 0.263350 0.445371
+vt 0.129239 0.478363
+vt 0.129176 0.484535
+vt 0.593549 0.158712
+vt 0.243033 0.451520
+vt 0.098565 0.671149
+vt 0.099871 0.587058
+vt 0.573708 0.045472
+vt 0.118486 0.515321
+vt 0.984508 0.805804
+vt 0.786339 0.877560
+vt 0.983032 0.811787
+vt 0.921328 0.808150
+vt 0.804924 0.523101
+vt 0.807806 0.509457
+vt 0.864796 0.320054
+vt 0.497663 0.921416
+vt 0.503149 0.930733
+vt 0.497823 0.940143
+vt 0.365599 0.420410
+vt 0.487012 0.940235
+vt 0.481526 0.930918
+vt 0.365123 0.426561
+vt 0.486851 0.921509
+vt 0.097032 0.545574
+vt 0.100475 0.532061
+vt 0.987573 0.351929
+vt 0.000000 0.519539
+vt 0.101021 0.657422
+vt 0.130454 0.348789
+vt 0.129176 0.342698
+vt 0.002200 0.652614
+vt 0.000000 0.640646
+vt 0.677776 0.377710
+vt 0.481526 0.986892
+vt 0.008833 0.510032
+vt 0.553533 0.294232
+vt 0.904359 0.409481
+vt 0.115475 0.520481
+vt 0.109543 0.520417
+vt 0.977471 0.624526
+vt 0.979562 0.613161
+vt 0.106623 0.515193
+vt 0.553585 0.300404
+vt 0.988586 0.345997
+vt 0.561825 0.854833
+vt 0.737126 0.922192
+vt 0.109635 0.510032
+vt 0.115567 0.510096
+vt 0.737412 0.916202
+vt 0.668466 0.321128
+vt 0.676573 0.916298
+vt 0.983049 0.286814
+vt 0.983561 0.280839
+vt 0.999791 0.558573
+vt 0.634331 0.198386
+vt 0.633077 0.209125
+vt 0.791906 0.580442
+vt 0.999527 0.572515
+vt 0.755380 0.214947
+vt 0.755542 0.221004
+vt 0.779196 0.668791
+vt 0.241819 0.604535
+vt 0.227040 0.868890
+vt 0.773237 0.657265
+vt 0.653426 0.668289
+vt 0.909138 0.645032
+vt 0.871889 0.197994
+vt 0.522548 0.373872
+vt 0.521419 0.363118
+vt 0.232407 0.851328
+vt 0.653713 0.657481
+vt 0.400349 0.384282
+vt 0.950973 0.903815
+vt 0.485770 0.967412
+vt 0.953241 0.909810
+vt 0.400581 0.378228
+vt 0.909203 0.634220
+vt 0.284486 0.359928
+vt 0.481526 0.960642
+vt 0.524952 0.991868
+vt 0.593058 0.996018
+vt 0.994172 0.902931
+vt 0.736363 0.946275
+vt 0.734659 0.940491
+vt 0.994678 0.908736
+vt 0.944824 0.908893
+vt 0.943955 0.902931
+vt 0.609622 0.948531
+vt 0.609616 0.942534
+vt 0.670384 0.945469
+vt 0.807061 0.811795
+vt 0.756618 0.908921
+vt 0.756343 0.902931
+vt 0.811958 0.704214
+vt 0.525656 0.986084
+vt 0.556209 0.007551
+vt 0.556301 0.003043
+vt 0.901928 0.871407
+vt 0.903195 0.865453
+vt 0.887934 0.908637
+vt 0.830287 0.038707
+vt 0.830255 0.036207
+vt 0.878037 0.197994
+vt 0.330194 0.902893
+vt 0.609901 0.928346
+vt 0.695780 0.908714
+vt 0.001411 0.773647
+vt 0.590328 0.980783
+vt 0.552648 0.576737
+vt 0.846310 0.866318
+vt 0.004815 0.561638
+vt 0.007306 0.561861
+vt 0.884870 0.228069
+vt 0.995466 0.200007
+vt 0.351996 0.882505
+vt 0.609616 0.934336
+vt 0.670455 0.934232
+vt 0.110894 0.759455
+vt 0.277877 0.982069
+vt 0.110519 0.765440
+vt 0.809819 0.934311
+vt 0.590187 0.974788
+vt 0.000000 0.779476
+vt 0.874243 0.454417
+vt 0.874824 0.460215
+vt 0.513007 0.005911
+vt 0.798821 0.946412
+vt 0.512829 0.003407
+vt 0.279575 0.513761
+vt 0.470580 0.494016
+vt 0.808604 0.928346
+vt 0.863277 0.929761
+vt 0.377914 0.295227
+vt 0.007501 0.562331
+vt 0.325137 0.295227
+vt 0.819535 0.456983
+vt 0.362419 0.958575
+vt 0.820221 0.461470
+vt 0.905403 0.408525
+vt 0.553280 0.570945
+vt 0.494997 0.573413
+vt 0.495720 0.568932
+vt 0.004396 0.562384
+vt 0.855800 0.877560
+vt 0.813486 0.698269
+vt 0.320395 0.524419
+vt 0.324026 0.938556
+vt 0.579802 0.436637
+vt 0.369589 0.952195
+vt 0.369307 0.979067
+vt 0.457312 0.360843
+vt 0.876987 0.409842
+vt 0.873886 0.409687
+vt 0.325880 0.984039
+vt 0.377839 0.294235
+vt 0.325179 0.294745
+vt 0.323844 0.959432
+vt 0.325544 0.953973
+vt 0.320433 0.519910
+vt 0.755730 0.707651
+vt 0.487383 0.360538
+vt 0.323844 0.944550
+vt 0.744563 0.952810
+vt 0.743741 0.958779
+vt 0.797965 0.957969
+vt 0.277319 0.522773
+vt 0.896323 0.653230
+vt 0.277568 0.520275
+vt 0.323844 0.978363
+vt 0.897682 0.659215
+vt 0.224515 0.158076
+vt 0.951983 0.659669
+vt 0.405324 0.294235
+vt 0.459967 0.360534
+vt 0.755944 0.703114
+vt 0.188755 0.351545
+vt 0.739785 0.166951
+vt 0.046153 0.975790
+vt 0.447549 0.464461
+vt 0.890793 0.970972
+vt 0.889523 0.964927
+vt 0.942741 0.244782
+vt 0.188316 0.353779
+vt 0.213062 0.353392
+vt 0.952071 0.664210
+vt 0.457918 0.360501
+vt 0.487409 0.361047
+vt 0.405247 0.295227
+vt 0.460008 0.361017
+vt 0.739816 0.166695
+vt 0.849343 0.971255
+vt 0.850878 0.965424
+vt 0.384588 0.949371
+vt 0.392458 0.969905
+vt 0.380010 0.969905
+vt 0.996911 0.838045
+vt 0.967151 0.838123
+vt 0.123027 0.328663
+vt 0.122030 0.364306
+vt 0.095534 0.388497
+vt 0.227040 0.896375
+vt 0.059060 0.387066
+vt 0.033973 0.360851
+vt 0.034970 0.325209
+vt 0.076270 0.293875
+vt 0.099686 0.294411
+vt 0.874417 0.410998
+vt 0.876907 0.410531
+vt 0.227077 0.898948
+vt 0.224817 0.155585
+vt 0.431963 0.361047
+vt 0.275035 0.907316
+vt 0.275449 0.909977
+vt 0.429236 1.000000
+vt 0.175938 0.156453
+vt 0.995958 0.696093
+vt 0.995957 0.693518
+vt 0.352554 0.294439
+vt 0.429224 0.997491
+vt 0.804932 0.037787
+vt 0.275511 0.909241
+vt 0.350505 0.294761
+vt 0.949183 0.707703
+vt 0.949571 0.705038
+vt 0.927349 0.693658
+vt 0.949341 0.706159
+vt 0.512755 0.360615
+vt 0.927349 0.693658
+vt 0.379963 0.294977
+vt 0.485334 0.361047
+vt 0.585775 0.422376
+vt 0.646952 0.090162
+vt 0.662813 0.763194
+vt 0.770436 0.159076
+vt 0.766869 0.150041
+vt 0.985265 0.781243
+vt 0.887774 0.785891
+vt 0.314599 0.345989
+vt 0.675472 0.363329
+vt 0.308654 0.331695
+vt 0.859026 0.382463
+vt 0.868717 0.359928
+vt 0.338336 0.544436
+vt 0.342817 0.548840
+vt 0.899907 0.977404
+vt 0.928494 0.982747
+vt 0.428617 0.481878
+vt 0.701923 0.593736
+vt 0.863935 0.404664
+vt 0.529457 0.532804
+vt 0.816112 0.676560
+vt 0.713926 0.690822
+vt 0.715688 0.679401
+vt 0.961003 0.844033
+vt 0.960597 0.838045
+vt 0.865306 0.843741
+vt 0.904704 0.410998
+vt 0.879036 0.408627
+vt 0.762361 0.781243
+vt 0.763099 0.787227
+vt 0.881625 0.782092
+vt 0.539413 0.981974
+vt 0.538226 0.976003
+vt 0.049326 0.785247
+vt 0.997046 0.822765
+vt 0.901721 0.827852
+vt 0.345988 0.059991
+vt 0.346682 0.066105
+vt 0.538226 0.922177
+vt 0.539733 0.916202
+vt 0.601418 0.920149
+vt 0.878372 0.989194
+vt 0.849343 0.989818
+vt 0.807741 0.805804
+vt 0.689586 0.807824
+vt 0.699947 0.047457
+vt 0.700578 0.049949
+vt 0.724899 0.048298
+vt 0.791666 0.586438
+vt 0.890894 0.583498
+vt 0.778013 0.972892
+vt 0.743741 0.965798
+vt 0.296982 0.895825
+vt 0.296982 0.895825
+vt 0.242065 0.457904
+vt 0.294418 0.485562
+vt 0.599065 0.960601
+vt 0.538226 0.960627
+vt 0.855707 0.883556
+vt 0.916511 0.881503
+vt 0.014081 0.405725
+vt 0.008553 0.407215
+vt 0.669422 0.327514
+vt 0.721251 0.293875
+vt 0.886994 0.491761
+vt 0.992806 0.012865
+vt 0.676146 0.640154
+vt 0.677150 0.634220
+vt 0.889645 0.718577
+vt 0.890041 0.724582
+vt 0.815939 0.809294
+vt 0.470994 0.980000
+vt 0.711408 0.151871
+vt 0.710463 0.157871
+vt 0.754751 0.782985
+vt 0.756212 0.788034
+vt 0.274876 0.584258
+vt 0.278602 0.571428
+vt 0.677697 0.663689
+vt 0.676146 0.657663
+vt 0.236844 0.634220
+vt 0.482550 0.770549
+vt 0.871416 0.342387
+vt 0.870944 0.336330
+vt 0.678653 0.972928
+vt 0.732860 0.971371
+vt 0.350874 0.603993
+vt 0.245934 0.593736
+vt 0.994911 0.654650
+vt 0.994661 0.657211
+vt 0.899958 0.726173
+vt 0.896190 0.716610
+vt 0.368086 0.867952
+vt 0.999911 0.741163
+vt 0.909813 0.558146
+vt 0.905325 0.569455
+vt 0.993404 0.645222
+vt 0.997052 0.635613
+vt 0.857108 0.842280
+vt 0.129429 0.993464
+vt 0.129176 0.988401
+vt 0.042285 0.305158
+vt 0.000000 0.369660
+vt 0.007472 0.388516
+vt 0.129176 0.960757
+vt 0.180667 0.940064
+vt 0.180667 0.954676
+vt 0.129176 0.930502
+vt 0.203452 0.919458
+vt 0.150401 0.930596
+vt 0.476013 0.003639
+vt 0.476951 0.007551
+vt 0.510779 0.004387
+vt 0.757302 0.151871
+vt 0.752495 0.159932
+vt 0.717557 0.152687
+vt 0.205776 0.802810
+vt 0.144852 0.768476
+vt 0.135190 0.804959
+vt 0.082548 0.625129
+vt 0.014325 0.593206
+vt 0.025695 0.634498
+vt 0.190212 0.379314
+vt 0.235640 0.359928
+vt 0.247922 0.414262
+vt 0.129176 0.391613
+vt 0.138777 0.365686
+vt 0.000000 0.829860
+vt 0.000250 0.797607
+vt 0.049111 0.824589
+vt 0.110647 0.456354
+vt 0.061092 0.394665
+vt 0.027825 0.453962
+vt 0.002838 0.456094
+vt 0.134514 0.843122
+vt 0.129176 0.811692
+vt 0.217362 0.841722
+vt 0.000000 0.189418
+vt 0.000975 0.166234
+vt 0.170203 0.209140
+vt 0.168534 0.176726
+vt 0.248334 0.189670
+vt 0.217027 0.172076
+vt 0.000000 0.711672
+vt 0.080509 0.696161
+vt 0.072136 0.677298
+vt 0.048909 0.712622
+vt 0.988802 0.082192
+vt 0.987519 0.057430
+vt 0.891548 0.079326
+vt 0.905248 0.057607
+vt 0.135667 0.874227
+vt 0.211488 0.850071
+vt 0.210436 0.876312
+vt 0.025079 0.586803
+vt 0.000000 0.577715
+vt 0.020605 0.564749
+vt 0.876915 0.373064
+vt 0.904902 0.360343
+vt 0.971556 0.359928
+vt 0.690329 0.026315
+vt 0.693799 0.048480
+vt 0.600119 0.023400
+vt 0.586155 0.047841
+vt 0.361088 0.200332
+vt 0.361754 0.223784
+vt 0.447698 0.175717
+vt 0.425062 0.192148
+vt 0.258986 0.166234
+vt 0.447601 0.167111
+vt 0.122521 0.112538
+vt 0.128570 0.137473
+vt 0.016091 0.135984
+vt 0.025191 0.113767
+vt 0.697340 0.410765
+vt 0.675472 0.394941
+vt 0.766509 0.392801
+vt 0.780637 0.407715
+vt 0.489887 0.326322
+vt 0.481148 0.353307
+vt 0.397874 0.349648
+vt 0.399270 0.329009
+vt 0.768401 0.380087
+vt 0.772094 0.361628
+vt 0.468266 0.508376
+vt 0.277319 0.491711
+vt 0.373949 0.492863
+vt 0.373920 0.511069
+vt 0.674142 0.439522
+vt 0.679347 0.421393
+vt 0.875636 0.166234
+vt 0.948999 0.167055
+vt 0.977461 0.175996
+vt 0.890319 0.187024
+vt 0.981311 0.183800
+vt 0.783468 0.558146
+vt 0.645650 0.560635
+vt 0.770194 0.276376
+vt 0.632782 0.287231
+vt 0.630375 0.275441
+vt 0.382526 0.728441
+vt 0.521915 0.716509
+vt 0.656309 0.097089
+vt 0.649930 0.096457
+vt 0.654368 0.104915
+vt 0.539627 0.593736
+vt 0.545690 0.607980
+vt 0.681245 0.597711
+vt 0.553533 0.337784
+vt 0.556180 0.352107
+vt 0.689460 0.335712
+vt 0.690205 0.349567
+vt 0.531539 0.648452
+vt 0.534570 0.634220
+vt 0.667948 0.647602
+vt 0.518165 0.148733
+vt 0.517601 0.157618
+vt 0.347836 0.150836
+vt 0.766869 0.120759
+vt 0.767566 0.111884
+vt 0.576633 0.788862
+vt 0.686398 0.698667
+vt 0.570486 0.705127
+vt 0.950341 0.482327
+vt 0.957755 0.451520
+vt 0.452411 0.666110
+vt 0.517035 0.664416
+vt 0.623613 0.558146
+vt 0.585569 0.586298
+vt 0.559429 0.569927
+vt 0.399415 0.677783
+vt 0.416286 0.702408
+vt 0.359723 0.831941
+vt 0.323844 0.832015
+vt 0.103769 0.960821
+vt 0.116517 0.948564
+vt 0.279666 0.809564
+vt 0.286793 0.828887
+vt 0.314853 0.834222
+vt 0.272277 0.944440
+vt 0.269679 0.951272
+vt 0.234149 0.918451
+vt 0.227040 0.923906
+vt 0.424409 0.891569
+vt 0.427366 0.883354
+vt 0.825062 0.998089
+vt 0.787739 0.997955
+vt 0.046260 0.494862
+vt 0.050595 0.482886
+vt 0.093549 0.503883
+vt 0.060853 0.750260
+vt 0.117104 0.737339
+vt 0.115305 0.749623
+vt 0.208125 0.726269
+vt 0.000000 0.906408
+vt 0.002789 0.918333
+vt 0.425373 0.850489
+vt 0.423032 0.862510
+vt 0.989914 0.147670
+vt 0.942893 0.158682
+vt 0.973732 0.451520
+vt 0.963904 0.451616
+vt 0.933556 0.532852
+vt 0.988907 0.535492
+vt 0.971494 0.530861
+vt 0.002713 0.986930
+vt 0.000000 0.975419
+vt 0.361664 0.800713
+vt 0.361385 0.813453
+vt 0.519459 0.401697
+vt 0.518062 0.410799
+vt 0.471702 0.992406
+vt 0.470975 0.987686
+vt 0.112481 0.621662
+vt 0.107859 0.621571
+vt 0.120196 0.618458
+vt 0.267115 0.797530
+vt 0.373862 0.714108
+vt 0.344296 0.717141
+vt 0.188865 0.940020
+vt 0.188865 0.954631
+vt 0.978379 0.242493
+vt 0.951201 0.235052
+vt 0.994903 0.140859
+vt 0.994040 0.130044
+vt 0.382467 0.901239
+vt 0.380010 0.910152
+vt 0.000000 0.731848
+vt 0.002545 0.744347
+vt 0.946025 0.099538
+vt 0.944615 0.090401
+vt 0.366309 0.771045
+vt 0.346299 0.768829
+vt 0.238044 0.962688
+vt 0.997639 0.405902
+vt 0.999137 0.390661
+vt 0.380010 0.781243
+vt 0.450581 0.783412
+vt 0.997388 0.420410
+vt 0.926784 0.420786
+vt 0.980646 0.439268
+vt 0.581235 0.148733
+vt 0.578233 0.158739
+vt 0.999507 0.767313
+vt 0.994317 0.774319
+vt 0.324223 0.914549
+vt 0.323844 0.922631
+vt 0.459927 0.865453
+vt 0.440238 0.884861
+vt 0.437504 0.875577
+vt 0.308215 0.997849
+vt 0.001875 0.287532
+vt 0.000000 0.276809
+vt 0.654479 0.377850
+vt 0.530746 0.373767
+vt 0.531012 0.359928
+vt 0.602780 0.462664
+vt 0.992496 0.214273
+vt 0.132355 0.593736
+vt 0.129176 0.607237
+vt 0.729450 0.347714
+vt 0.729620 0.336903
+vt 0.001007 0.051282
+vt 0.000000 0.045212
+vt 0.667550 0.544651
+vt 0.667352 0.533841
+vt 0.352785 0.002767
+vt 0.352105 0.008886
+vt 0.649150 0.405858
+vt 0.648198 0.411857
+vt 0.733385 0.484056
+vt 0.732444 0.478054
+vt 0.227040 0.725656
+vt 0.227480 0.714108
+vt 0.669161 0.766814
+vt 0.668962 0.760817
+vt 0.870944 0.299106
+vt 0.874440 0.293875
+vt 0.129176 0.676560
+vt 0.129204 0.682851
+vt 0.762361 0.799376
+vt 0.861484 0.793953
+vt 0.528487 0.720123
+vt 0.528063 0.714108
+vt 0.465219 0.117937
+vt 0.465464 0.111884
+vt 0.347836 0.127034
+vt 0.802077 0.286574
+vt 0.801760 0.280581
+vt 0.779647 0.714307
+vt 0.779124 0.720314
+vt 0.768559 0.057430
+vt 0.768599 0.063489
+vt 0.885399 0.076552
+vt 0.661362 0.620130
+vt 0.661394 0.614129
+vt 0.942491 0.510109
+vt 0.995261 0.491828
+vt 0.107460 0.815357
+vt 0.057309 0.802628
+vt 0.060970 0.797607
+vt 0.496035 0.331288
+vt 0.735543 0.952810
+vt 0.678653 0.953072
+vt 0.599889 0.520203
+vt 0.707190 0.492484
+vt 0.711011 0.504074
+vt 0.592096 0.491711
+vt 0.476857 0.509363
+vt 0.476728 0.498325
+vt 0.927408 0.545721
+vt 0.916957 0.530861
+vt 0.811805 0.543219
+vt 0.815860 0.531731
+vt 0.380010 0.748741
+vt 0.384317 0.737079
+vt 0.898800 0.572806
+vt 0.899176 0.561157
+vt 0.114082 0.838058
+vt 0.000031 0.849427
+vt 0.000000 0.840294
+vt 0.876309 0.023387
+vt 0.792735 0.005332
+vt 0.792608 0.000000
+vt 0.700520 0.038407
+vt 0.699947 0.033241
+vt 0.487175 0.744095
+vt 0.487181 0.734962
+vt 0.639947 0.101133
+vt 0.640803 0.096004
+vt 0.993158 0.516257
+vt 0.992373 0.521328
+vt 0.796643 0.827837
+vt 0.795867 0.822765
+vt 0.675405 0.896755
+vt 0.727835 0.892713
+vt 0.680063 0.998258
+vt 0.729221 0.993617
+vt 0.129176 0.979426
+vt 0.218110 0.968955
+vt 0.216696 0.974078
+vt 0.875824 0.625361
+vt 0.599886 0.807433
+vt 0.601475 0.812504
+vt 0.989133 0.578664
+vt 0.905325 0.581509
+vt 0.667953 0.891714
+vt 0.587453 0.896416
+vt 0.000493 0.894308
+vt 0.000000 0.889239
+vt 0.470506 0.425528
+vt 0.470503 0.420410
+vt 0.371748 0.437267
+vt 0.593440 0.805804
+vt 0.593738 0.810865
+vt 0.956478 0.737065
+vt 0.955923 0.742129
+vt 0.232449 0.530861
+vt 0.232223 0.535973
+vt 0.330199 0.551997
+vt 0.540176 0.831651
+vt 0.540461 0.826589
+vt 0.922935 0.916202
+vt 0.871569 0.917829
+vt 0.787739 0.983202
+vt 0.839068 0.980669
+vt 0.938137 0.965298
+vt 0.938584 0.970367
+vt 0.832566 0.593736
+vt 0.788328 0.610117
+vt 0.481526 0.978609
+vt 0.482171 0.973561
+vt 0.324028 0.972215
+vt 0.367228 0.965580
+vt 0.366036 0.970692
+vt 0.890560 0.982481
+vt 0.891375 0.977404
+vt 0.910551 0.940491
+vt 0.862508 0.941635
+vt 0.907617 0.952810
+vt 0.861596 0.956860
+vt 0.802531 0.249114
+vt 0.801760 0.235052
+vt 0.131224 0.505429
+vt 0.129176 0.491711
+vt 0.779206 0.436483
+vt 0.779069 0.423660
+vt 0.729450 0.304972
+vt 0.738089 0.293875
+vt 0.304121 0.451520
+vt 0.300566 0.463750
+vt 0.787521 0.883520
+vt 0.849558 0.878364
+vt 0.717160 0.503258
+vt 0.717617 0.491711
+vt 0.882833 0.620362
+vt 0.882666 0.614364
+vt 0.344684 0.640061
+vt 0.346048 0.634220
+vt 0.822478 0.693735
+vt 0.824251 0.699771
+vt 0.532011 0.662662
+vt 0.531539 0.656650
+vt 0.545584 0.701710
+vt 0.545707 0.707710
+vt 0.785906 0.641880
+vt 0.786573 0.635887
+vt 0.944138 0.682643
+vt 0.944257 0.676643
+vt 0.372720 0.940035
+vt 0.373120 0.946047
+vt 0.049499 0.791458
+vt 0.102041 0.772533
+vt 0.931263 0.282379
+vt 0.932355 0.276454
+vt 0.278757 0.976138
+vt 0.227040 0.974530
+vt 0.229532 0.968837
+vt 0.062273 0.756408
+vt 0.060853 0.762328
+vt 0.796932 0.940491
+vt 0.742511 0.945920
+vt 0.977405 0.000628
+vt 0.989815 0.020930
+vt 0.691147 0.612381
+vt 0.493824 0.759197
+vt 0.500000 0.759101
+vt 0.429867 0.361047
+vt 0.404542 0.360284
+vt 0.526911 0.960789
+vt 0.528866 0.965922
+vt 0.594532 0.990172
+vt 0.538291 0.996405
+vt 0.538226 0.991897
+vt 0.714107 0.699538
+vt 0.713926 0.696971
+vt 0.454304 0.560776
+vt 0.454193 0.558146
+vt 0.409085 0.577937
+vt 0.408755 0.575393
+vt 0.678769 0.946661
+vt 0.678653 0.942154
+vt 0.778812 0.469276
+vt 0.778677 0.471906
+vt 0.732801 0.451520
+vt 0.732444 0.454062
+vt 0.380010 0.996112
+vt 0.380618 0.993652
+vt 0.175619 0.153940
+vt 0.175671 0.154193
+vt 0.764565 0.166626
+vt 0.564338 0.688425
+vn 0.912731 0.155721 0.377721
+vn 0.912731 0.155721 0.377721
+vn 0.912731 0.155721 0.377721
+vn 0.912731 0.155721 0.377721
+vn 0.912731 0.155721 0.377721
+vn 0.398893 0.347365 0.848659
+vn 0.398893 0.347365 0.848659
+vn 0.398893 0.347365 0.848659
+vn 0.398893 0.347365 0.848659
+vn 0.398893 0.347365 0.848659
+vn -0.445920 0.410680 0.795297
+vn -0.445920 0.410680 0.795297
+vn -0.445920 0.410680 0.795297
+vn -0.445920 0.410680 0.795297
+vn -0.445920 0.410680 0.795297
+vn -0.752546 0.580136 0.311635
+vn -0.752546 0.580136 0.311635
+vn -0.752546 0.580136 0.311635
+vn -0.947001 0.136388 -0.290841
+vn -0.947001 0.136388 -0.290841
+vn -0.947001 0.136388 -0.290841
+vn -0.947001 0.136388 -0.290841
+vn -0.947001 0.136388 -0.290841
+vn -0.332721 -0.076479 -0.939919
+vn -0.332721 -0.076479 -0.939919
+vn -0.332721 -0.076479 -0.939919
+vn -0.332721 -0.076479 -0.939919
+vn 0.380446 -0.102942 -0.919056
+vn 0.380446 -0.102942 -0.919056
+vn 0.380446 -0.102942 -0.919056
+vn 0.380446 -0.102942 -0.919056
+vn 0.380446 -0.102942 -0.919056
+vn 0.899974 -0.088523 -0.426862
+vn 0.899974 -0.088523 -0.426862
+vn 0.899974 -0.088523 -0.426862
+vn 0.899974 -0.088523 -0.426862
+vn 0.899974 -0.088523 -0.426862
+vn 0.809751 -0.521031 0.269872
+vn 0.809751 -0.521031 0.269872
+vn 0.809751 -0.521031 0.269872
+vn 0.809751 -0.521031 0.269872
+vn 0.250235 -0.310801 0.916943
+vn 0.250235 -0.310801 0.916943
+vn 0.250235 -0.310801 0.916943
+vn 0.250235 -0.310801 0.916943
+vn -0.438247 0.099853 0.893291
+vn -0.438247 0.099853 0.893291
+vn -0.438247 0.099853 0.893291
+vn -0.438247 0.099853 0.893291
+vn -0.810970 0.557531 0.177446
+vn -0.810970 0.557531 0.177446
+vn -0.810970 0.557531 0.177446
+vn -0.810970 0.557531 0.177446
+vn -0.754995 0.558910 -0.342933
+vn -0.754995 0.558910 -0.342933
+vn -0.754995 0.558910 -0.342933
+vn -0.754995 0.558910 -0.342933
+vn -0.285840 0.397235 -0.872066
+vn -0.285840 0.397235 -0.872066
+vn -0.285840 0.397235 -0.872066
+vn -0.285840 0.397235 -0.872066
+vn 0.406955 0.002279 -0.913445
+vn 0.406955 0.002279 -0.913445
+vn 0.406955 0.002279 -0.913445
+vn 0.406955 0.002279 -0.913445
+vn 0.852312 -0.374614 -0.365005
+vn 0.852312 -0.374614 -0.365005
+vn 0.852312 -0.374614 -0.365005
+vn 0.852312 -0.374614 -0.365005
+vn 0.857829 0.409713 0.310266
+vn 0.857829 0.409713 0.310266
+vn 0.857829 0.409713 0.310266
+vn 0.857829 0.409713 0.310266
+vn 0.370956 -0.038182 0.927865
+vn 0.370956 -0.038182 0.927865
+vn 0.370956 -0.038182 0.927865
+vn 0.370956 -0.038182 0.927865
+vn -0.337598 -0.360380 0.869571
+vn -0.337598 -0.360380 0.869571
+vn -0.337598 -0.360380 0.869571
+vn -0.337598 -0.360380 0.869571
+vn -0.859647 -0.427415 0.279862
+vn -0.859647 -0.427415 0.279862
+vn -0.859647 -0.427415 0.279862
+vn -0.859647 -0.427415 0.279862
+vn -0.864774 -0.203528 -0.459067
+vn -0.864774 -0.203528 -0.459067
+vn -0.864774 -0.203528 -0.459067
+vn -0.864774 -0.203528 -0.459067
+vn -0.268143 0.238905 -0.933287
+vn -0.268143 0.238905 -0.933287
+vn -0.268143 0.238905 -0.933287
+vn -0.268143 0.238905 -0.933287
+vn -0.268143 0.238905 -0.933287
+vn 0.353300 0.551059 -0.755985
+vn 0.353300 0.551059 -0.755985
+vn 0.353300 0.551059 -0.755985
+vn 0.353300 0.551059 -0.755985
+vn 0.709251 0.561794 -0.425853
+vn 0.709251 0.561794 -0.425853
+vn 0.709251 0.561794 -0.425853
+vn 0.709251 0.561794 -0.425853
+vn 0.709251 0.561794 -0.425853
+vn 0.340414 0.392245 0.854554
+vn 0.340414 0.392245 0.854554
+vn 0.340414 0.392245 0.854554
+vn -0.066427 0.574786 0.815603
+vn -0.066427 0.574786 0.815603
+vn -0.066427 0.574786 0.815603
+vn -0.798847 0.555431 0.230955
+vn -0.798847 0.555431 0.230955
+vn -0.798847 0.555431 0.230955
+vn -0.891661 0.349260 -0.288026
+vn -0.891661 0.349260 -0.288026
+vn -0.891661 0.349260 -0.288026
+vn -0.891661 0.349260 -0.288026
+vn -0.359756 -0.230102 -0.904228
+vn -0.359756 -0.230102 -0.904228
+vn -0.359756 -0.230102 -0.904228
+vn 0.355487 -0.456036 -0.815880
+vn 0.355487 -0.456036 -0.815880
+vn 0.355487 -0.456036 -0.815880
+vn 0.355487 -0.456036 -0.815880
+vn 0.869551 -0.418505 -0.262174
+vn 0.869551 -0.418504 -0.262174
+vn 0.869551 -0.418505 -0.262174
+vn -0.360711 -0.558237 0.747167
+vn -0.360711 -0.558237 0.747167
+vn -0.360711 -0.558237 0.747167
+vn 0.358509 0.592171 -0.721668
+vn 0.358509 0.592171 -0.721668
+vn 0.358509 0.592171 -0.721668
+vn 0.358509 0.592171 -0.721668
+vn 0.901958 0.083426 0.423688
+vn 0.901958 0.083426 0.423688
+vn 0.901958 0.083426 0.423688
+vn -0.375790 0.480172 0.792601
+vn -0.375790 0.480172 0.792601
+vn -0.375790 0.480172 0.792601
+vn -0.907016 0.030542 -0.419987
+vn -0.907016 0.030542 -0.419987
+vn -0.907016 0.030542 -0.419987
+vn 0.394251 -0.394393 -0.830072
+vn 0.394251 -0.394393 -0.830072
+vn 0.394251 -0.394393 -0.830072
+vn 0.796472 0.520578 0.307621
+vn 0.796472 0.520578 0.307621
+vn 0.796472 0.520578 0.307621
+vn 0.796472 0.520578 0.307621
+vn 0.316968 0.618119 0.719348
+vn 0.316968 0.618119 0.719348
+vn 0.316968 0.618118 0.719348
+vn 0.316968 0.618118 0.719348
+vn -0.411813 0.535498 0.737328
+vn -0.411813 0.535498 0.737328
+vn -0.411813 0.535498 0.737328
+vn -0.411813 0.535498 0.737328
+vn -0.861927 0.271800 0.428027
+vn -0.861927 0.271800 0.428027
+vn -0.861927 0.271800 0.428027
+vn -0.861927 0.271800 0.428027
+vn -0.905738 -0.209024 -0.368710
+vn -0.905738 -0.209024 -0.368710
+vn -0.905738 -0.209024 -0.368710
+vn -0.905738 -0.209024 -0.368710
+vn -0.352684 -0.392665 -0.849369
+vn -0.352684 -0.392665 -0.849369
+vn -0.352684 -0.392665 -0.849369
+vn -0.352684 -0.392665 -0.849369
+vn 0.379729 -0.267159 -0.885682
+vn 0.379729 -0.267159 -0.885682
+vn 0.379729 -0.267159 -0.885682
+vn 0.379729 -0.267159 -0.885682
+vn 0.912221 0.164911 -0.375042
+vn 0.912221 0.164911 -0.375042
+vn 0.912221 0.164911 -0.375043
+vn 0.912221 0.164911 -0.375042
+vn 0.595657 -0.569795 0.566150
+vn 0.595657 -0.569795 0.566151
+vn 0.595657 -0.569795 0.566150
+vn 0.698772 0.085304 0.710240
+vn 0.698772 0.085304 0.710240
+vn 0.698772 0.085304 0.710240
+vn 0.698772 0.085304 0.710240
+vn -0.937751 -0.061837 -0.341760
+vn -0.937751 -0.061837 -0.341760
+vn -0.937751 -0.061837 -0.341760
+vn -0.937751 -0.061837 -0.341760
+vn 0.062157 -0.998065 0.001536
+vn 0.062157 -0.998065 0.001536
+vn 0.062157 -0.998065 0.001536
+vn 0.062157 -0.998065 0.001536
+vn 0.062157 -0.998065 0.001536
+vn 0.062157 -0.998065 0.001536
+vn 0.062157 -0.998065 0.001536
+vn 0.062157 -0.998065 0.001536
+vn 0.062157 -0.998065 0.001536
+vn 0.446340 0.780089 -0.438454
+vn 0.446340 0.780089 -0.438454
+vn 0.446340 0.780089 -0.438454
+vn 0.446340 0.780089 -0.438454
+vn 0.558336 0.681888 0.472535
+vn 0.558336 0.681888 0.472535
+vn 0.558336 0.681888 0.472535
+vn 0.558336 0.681888 0.472535
+vn 0.302034 0.036871 0.952584
+vn 0.302034 0.036871 0.952584
+vn 0.302034 0.036871 0.952584
+vn 0.302034 0.036871 0.952584
+vn -0.321768 -0.945197 -0.055380
+vn -0.321768 -0.945198 -0.055380
+vn -0.321768 -0.945197 -0.055380
+vn -0.321768 -0.945198 -0.055380
+vn 0.135191 0.016504 -0.990682
+vn 0.135191 0.016504 -0.990682
+vn 0.135191 0.016504 -0.990682
+vn 0.135191 0.016504 -0.990682
+vn 0.552561 0.781130 -0.290711
+vn 0.552561 0.781130 -0.290711
+vn 0.552561 0.781130 -0.290711
+vn 0.552561 0.781130 -0.290711
+vn 0.128569 0.912172 0.389117
+vn 0.128569 0.912172 0.389117
+vn 0.128569 0.912172 0.389117
+vn 0.128569 0.912172 0.389117
+vn -0.309455 -0.037777 0.950163
+vn -0.309455 -0.037777 0.950163
+vn -0.309455 -0.037777 0.950163
+vn -0.309455 -0.037777 0.950163
+vn -0.117136 -0.992797 -0.025149
+vn -0.117136 -0.992797 -0.025149
+vn -0.117136 -0.992797 -0.025149
+vn -0.117136 -0.992797 -0.025149
+vn 0.712646 0.086998 -0.696109
+vn 0.712646 0.086998 -0.696109
+vn 0.712646 0.086998 -0.696109
+vn 0.712645 0.086998 -0.696109
+vn 0.131249 0.864332 -0.485494
+vn 0.131249 0.864332 -0.485494
+vn 0.131249 0.864332 -0.485494
+vn 0.479176 0.859108 0.179787
+vn 0.479176 0.859108 0.179787
+vn 0.479176 0.859108 0.179787
+vn 0.667976 0.081545 0.739701
+vn 0.667976 0.081545 0.739701
+vn 0.667976 0.081545 0.739701
+vn -0.105417 -0.993335 0.046610
+vn -0.105417 -0.993335 0.046610
+vn -0.105417 -0.993335 0.046610
+vn -0.303002 -0.036989 -0.952272
+vn -0.303002 -0.036989 -0.952272
+vn -0.303002 -0.036989 -0.952272
+vn -0.093709 0.601193 -0.793590
+vn -0.093709 0.601193 -0.793590
+vn -0.093709 0.601193 -0.793590
+vn -0.093709 0.601193 -0.793590
+vn 0.690179 0.681372 0.243691
+vn 0.690179 0.681372 0.243691
+vn 0.690179 0.681372 0.243691
+vn 0.690179 0.681372 0.243691
+vn -0.048463 -0.994534 0.092488
+vn -0.048463 -0.994534 0.092488
+vn -0.048463 -0.994534 0.092488
+vn -0.048463 -0.994534 0.092488
+vn -0.343401 -0.041922 -0.938253
+vn -0.343401 -0.041922 -0.938253
+vn -0.343401 -0.041922 -0.938253
+vn -0.343401 -0.041922 -0.938253
+vn 0.787244 0.096105 0.609106
+vn 0.787244 0.096105 0.609106
+vn 0.787244 0.096105 0.609106
+vn 0.787244 0.096105 0.609106
+vn -0.120989 0.715667 -0.687882
+vn -0.120989 0.715667 -0.687882
+vn -0.120989 0.715667 -0.687882
+vn 0.688788 0.724947 -0.004762
+vn 0.688788 0.724947 -0.004762
+vn 0.688788 0.724947 -0.004762
+vn -0.123941 -0.973536 0.192008
+vn -0.123941 -0.973536 0.192008
+vn -0.123941 -0.973536 0.192008
+vn -0.608327 -0.074263 -0.790204
+vn -0.608327 -0.074263 -0.790204
+vn -0.608327 -0.074263 -0.790204
+vn 0.908171 0.110867 0.403651
+vn 0.908171 0.110867 0.403651
+vn 0.908171 0.110867 0.403651
+vn -0.554151 0.639740 -0.532587
+vn -0.554151 0.639740 -0.532587
+vn -0.554151 0.639740 -0.532587
+vn -0.554151 0.639740 -0.532587
+vn 0.575696 0.753313 -0.317952
+vn 0.575696 0.753313 -0.317952
+vn 0.575696 0.753313 -0.317952
+vn 0.575696 0.753313 -0.317952
+vn -0.075295 -0.965451 -0.249468
+vn -0.075295 -0.965451 -0.249468
+vn -0.075295 -0.965451 -0.249468
+vn -0.075295 -0.965451 -0.249468
+vn 0.037330 -0.986388 -0.160141
+vn 0.037330 -0.986388 -0.160141
+vn 0.037330 -0.986388 -0.160141
+vn 0.037330 -0.986388 -0.160141
+vn 0.971957 0.107397 -0.209202
+vn 0.971957 0.107397 -0.209202
+vn 0.971957 0.107397 -0.209202
+vn 0.971957 0.107397 -0.209202
+vn -0.766550 -0.060063 -0.639370
+vn -0.766550 -0.060063 -0.639370
+vn -0.766550 -0.060063 -0.639370
+vn -0.766550 -0.060063 -0.639370
+vn -0.374600 0.896977 -0.234750
+vn -0.374600 0.896977 -0.234750
+vn -0.374600 0.896977 -0.234750
+vn -0.374600 0.896977 -0.234750
+vn 0.155206 0.686916 -0.709970
+vn 0.155206 0.686916 -0.709970
+vn 0.155206 0.686916 -0.709970
+vn 0.155206 0.686916 -0.709970
+vn 0.178339 -0.960845 0.212066
+vn 0.178339 -0.960845 0.212066
+vn 0.178339 -0.960845 0.212066
+vn 0.178339 -0.960845 0.212066
+vn 0.119565 -0.959278 0.255911
+vn 0.119565 -0.959278 0.255911
+vn 0.119565 -0.959278 0.255911
+vn 0.119565 -0.959278 0.255911
+vn 0.527997 -0.048038 -0.847886
+vn 0.527997 -0.048038 -0.847886
+vn 0.527997 -0.048038 -0.847886
+vn 0.527997 -0.048038 -0.847886
+vn -0.913152 0.053197 0.404133
+vn -0.913152 0.053197 0.404133
+vn -0.913152 0.053197 0.404133
+vn -0.913152 0.053197 0.404133
+vn -0.320834 0.944771 -0.066877
+vn -0.320834 0.944771 -0.066877
+vn -0.320834 0.944771 -0.066877
+vn 0.420922 0.833517 -0.357874
+vn 0.420922 0.833517 -0.357874
+vn 0.420922 0.833517 -0.357874
+vn -0.097697 -0.993064 -0.065414
+vn -0.097697 -0.993064 -0.065414
+vn -0.097697 -0.993064 -0.065414
+vn -0.019617 -0.995173 -0.096152
+vn -0.019617 -0.995173 -0.096152
+vn -0.019617 -0.995173 -0.096152
+vn 0.849448 0.032189 -0.526689
+vn 0.849448 0.032189 -0.526689
+vn 0.849448 0.032189 -0.526689
+vn -0.992423 -0.030255 0.119089
+vn -0.992423 -0.030255 0.119089
+vn -0.992423 -0.030255 0.119089
+vn -0.132765 0.719028 0.682182
+vn -0.132765 0.719028 0.682182
+vn -0.132765 0.719028 0.682182
+vn -0.132765 0.719028 0.682182
+vn -0.586184 0.647050 -0.487560
+vn -0.586184 0.647050 -0.487560
+vn -0.586184 0.647050 -0.487560
+vn -0.586184 0.647050 -0.487560
+vn -0.585646 -0.071494 -0.807408
+vn -0.585646 -0.071494 -0.807408
+vn -0.585646 -0.071494 -0.807408
+vn -0.585646 -0.071494 -0.807408
+vn -0.091021 -0.995722 -0.015929
+vn -0.091021 -0.995722 -0.015929
+vn -0.091021 -0.995722 -0.015929
+vn -0.091021 -0.995722 -0.015929
+vn -0.027865 -0.997027 0.071836
+vn -0.027865 -0.997027 0.071836
+vn -0.027865 -0.997027 0.071836
+vn -0.027865 -0.997027 0.071836
+vn 0.067009 0.008180 0.997719
+vn 0.067009 0.008180 0.997719
+vn 0.067009 0.008180 0.997719
+vn 0.067009 0.008180 0.997719
+vn -0.394681 0.797788 0.455808
+vn -0.394681 0.797788 0.455808
+vn -0.394681 0.797788 0.455808
+vn -0.394681 0.797788 0.455808
+vn -0.258451 0.873379 -0.412810
+vn -0.258451 0.873379 -0.412810
+vn -0.258451 0.873379 -0.412810
+vn -0.258451 0.873379 -0.412810
+vn -0.181360 -0.022140 -0.983167
+vn -0.181360 -0.022140 -0.983167
+vn -0.181360 -0.022140 -0.983167
+vn -0.181360 -0.022140 -0.983167
+vn 0.185621 -0.981167 0.053450
+vn 0.185621 -0.981167 0.053450
+vn 0.185621 -0.981167 0.053450
+vn 0.185621 -0.981167 0.053450
+vn 0.198187 -0.978968 -0.048403
+vn 0.198187 -0.978968 -0.048403
+vn 0.198187 -0.978968 -0.048403
+vn 0.198187 -0.978968 -0.048403
+vn -0.345473 -0.042174 0.937481
+vn -0.345473 -0.042174 0.937481
+vn -0.345473 -0.042174 0.937481
+vn -0.345473 -0.042174 0.937481
+vn -0.433992 0.798947 0.416334
+vn -0.433992 0.798947 0.416334
+vn -0.433992 0.798947 0.416334
+vn 0.011678 0.836249 -0.548225
+vn 0.011678 0.836249 -0.548225
+vn 0.011678 0.836249 -0.548225
+vn 0.206864 0.025253 -0.978044
+vn 0.206864 0.025253 -0.978044
+vn 0.206864 0.025253 -0.978044
+vn -0.026572 -0.996296 -0.081780
+vn -0.026572 -0.996296 -0.081780
+vn -0.026572 -0.996296 -0.081780
+vn -0.080682 -0.996078 0.036304
+vn -0.080682 -0.996078 0.036304
+vn -0.080682 -0.996078 0.036304
+vn -0.609430 -0.074397 0.789342
+vn -0.609430 -0.074397 0.789342
+vn -0.609430 -0.074397 0.789342
+vn 0.803545 0.566012 0.184245
+vn 0.803545 0.566012 0.184246
+vn 0.803545 0.566012 0.184246
+vn 0.803545 0.566012 0.184246
+vn -0.643663 0.483104 0.593556
+vn -0.643663 0.483104 0.593556
+vn -0.643663 0.483104 0.593556
+vn -0.643663 0.483104 0.593556
+vn 0.043030 -0.990855 -0.127889
+vn 0.043030 -0.990855 -0.127889
+vn 0.043030 -0.990855 -0.127889
+vn 0.043030 -0.990855 -0.127889
+vn 0.984248 0.120154 0.129690
+vn 0.984248 0.120154 0.129690
+vn 0.984248 0.120154 0.129690
+vn 0.984248 0.120154 0.129690
+vn -0.883290 -0.107830 0.456258
+vn -0.883290 -0.107830 0.456258
+vn -0.883290 -0.107830 0.456258
+vn -0.883290 -0.107830 0.456258
+vn 0.748121 0.545517 -0.377790
+vn 0.748121 0.545517 -0.377790
+vn 0.748121 0.545517 -0.377790
+vn -0.429835 0.559618 0.708568
+vn -0.429835 0.559618 0.708568
+vn -0.429835 0.559618 0.708568
+vn 0.017884 -0.996929 -0.076236
+vn 0.017884 -0.996929 -0.076236
+vn 0.017884 -0.996929 -0.076236
+vn 0.833985 0.101811 -0.542313
+vn 0.833985 0.101811 -0.542313
+vn 0.833985 0.101811 -0.542313
+vn -0.619941 -0.075680 0.780990
+vn -0.619941 -0.075680 0.780990
+vn -0.619941 -0.075680 0.780990
+vn 0.014960 -0.996855 -0.077816
+vn 0.014960 -0.996855 -0.077816
+vn 0.014960 -0.996855 -0.077816
+vn -0.534165 0.748049 -0.393815
+vn -0.534165 0.748049 -0.393815
+vn -0.534165 0.748049 -0.393815
+vn -0.534165 0.748049 -0.393815
+vn -0.752544 -0.197563 -0.628209
+vn -0.752544 -0.197563 -0.628209
+vn -0.752544 -0.197563 -0.628209
+vn -0.752544 -0.197563 -0.628209
+vn -0.133664 -0.984263 0.115583
+vn -0.133664 -0.984263 0.115583
+vn -0.133664 -0.984263 0.115583
+vn -0.133664 -0.984263 0.115583
+vn 0.236474 0.557991 0.795441
+vn 0.236474 0.557991 0.795441
+vn 0.236474 0.557991 0.795441
+vn 0.236474 0.557991 0.795441
+vn 0.331544 0.124922 0.935133
+vn 0.331544 0.124922 0.935133
+vn 0.331544 0.124922 0.935133
+vn 0.331544 0.124922 0.935133
+vn -0.587252 0.506657 -0.631216
+vn -0.587252 0.506657 -0.631216
+vn -0.587252 0.506657 -0.631216
+vn -0.100496 -0.054240 -0.993458
+vn -0.100496 -0.054240 -0.993458
+vn -0.100496 -0.054240 -0.993458
+vn 0.511795 -0.822828 -0.247021
+vn 0.511795 -0.822828 -0.247021
+vn 0.511795 -0.822828 -0.247021
+vn -0.408695 0.403076 0.818840
+vn -0.408695 0.403076 0.818840
+vn -0.408695 0.403076 0.818840
+vn -0.094738 -0.056813 0.993880
+vn -0.094738 -0.056813 0.993880
+vn -0.094738 -0.056813 0.993880
+vn -0.004846 0.837036 -0.547127
+vn -0.004846 0.837036 -0.547127
+vn -0.004846 0.837036 -0.547127
+vn -0.004846 0.837036 -0.547127
+vn 0.531768 0.811988 0.240620
+vn 0.531768 0.811988 0.240620
+vn 0.531768 0.811988 0.240620
+vn 0.531768 0.811988 0.240620
+vn 0.473125 0.046069 0.879790
+vn 0.473125 0.046069 0.879790
+vn 0.473125 0.046069 0.879790
+vn 0.473125 0.046069 0.879790
+vn -0.150901 -0.776580 0.611681
+vn -0.150901 -0.776580 0.611681
+vn -0.150901 -0.776580 0.611681
+vn -0.150901 -0.776580 0.611681
+vn -0.627250 -0.770091 -0.116262
+vn -0.627250 -0.770091 -0.116262
+vn -0.627250 -0.770091 -0.116262
+vn -0.627250 -0.770091 -0.116262
+vn -0.591580 0.160358 -0.790138
+vn -0.591580 0.160358 -0.790138
+vn -0.591580 0.160358 -0.790138
+vn -0.591580 0.160358 -0.790138
+vn 0.505426 0.632129 -0.587331
+vn 0.505426 0.632129 -0.587331
+vn 0.505426 0.632129 -0.587331
+vn 0.505426 0.632129 -0.587331
+vn 0.472124 0.843499 0.256142
+vn 0.472124 0.843499 0.256142
+vn 0.472124 0.843499 0.256142
+vn 0.472124 0.843499 0.256142
+vn 0.007268 0.348491 0.937284
+vn 0.007268 0.348491 0.937284
+vn 0.007268 0.348491 0.937284
+vn 0.007268 0.348491 0.937284
+vn -0.536004 -0.601032 0.592841
+vn -0.536004 -0.601032 0.592841
+vn -0.536004 -0.601031 0.592841
+vn -0.536004 -0.601031 0.592841
+vn -0.504399 -0.824464 -0.256594
+vn -0.504399 -0.824464 -0.256594
+vn -0.504399 -0.824464 -0.256594
+vn -0.504399 -0.824464 -0.256594
+vn -0.038442 -0.317328 -0.947536
+vn -0.038442 -0.317328 -0.947536
+vn -0.038442 -0.317328 -0.947536
+vn -0.038442 -0.317328 -0.947536
+vn 0.274130 0.789974 -0.548446
+vn 0.274130 0.789974 -0.548446
+vn 0.274130 0.789974 -0.548446
+vn 0.274130 0.789974 -0.548446
+vn 0.359190 0.900583 0.244811
+vn 0.359190 0.900583 0.244811
+vn 0.359190 0.900583 0.244811
+vn 0.359190 0.900583 0.244811
+vn 0.100416 0.243223 0.964759
+vn 0.100416 0.243223 0.964759
+vn 0.100416 0.243223 0.964759
+vn 0.100416 0.243223 0.964759
+vn -0.337472 -0.754567 0.562798
+vn -0.337472 -0.754567 0.562798
+vn -0.337472 -0.754567 0.562798
+vn -0.337472 -0.754567 0.562798
+vn -0.420515 -0.869915 -0.257711
+vn -0.420515 -0.869915 -0.257711
+vn -0.420515 -0.869915 -0.257711
+vn -0.420515 -0.869915 -0.257711
+vn -0.162219 -0.169736 -0.972047
+vn -0.162219 -0.169736 -0.972047
+vn -0.162219 -0.169736 -0.972047
+vn -0.162219 -0.169736 -0.972047
+vn 0.761700 0.259147 -0.593849
+vn 0.761700 0.259147 -0.593849
+vn 0.761700 0.259147 -0.593849
+vn 0.761700 0.259147 -0.593849
+vn 0.734178 0.597337 0.322755
+vn 0.734178 0.597337 0.322755
+vn 0.734178 0.597337 0.322755
+vn 0.734178 0.597337 0.322755
+vn 0.031958 0.379545 0.924621
+vn 0.031958 0.379545 0.924621
+vn 0.031958 0.379545 0.924621
+vn 0.031958 0.379545 0.924621
+vn -0.761700 -0.259148 0.593848
+vn -0.761700 -0.259148 0.593848
+vn -0.761700 -0.259148 0.593848
+vn -0.761700 -0.259148 0.593848
+vn -0.734179 -0.597337 -0.322752
+vn -0.734179 -0.597337 -0.322752
+vn -0.734179 -0.597337 -0.322752
+vn -0.734179 -0.597337 -0.322752
+vn -0.031958 -0.379545 -0.924621
+vn -0.031958 -0.379545 -0.924621
+vn -0.031958 -0.379545 -0.924621
+vn -0.031958 -0.379545 -0.924621
+vn 0.252672 0.872973 -0.417224
+vn 0.252672 0.872973 -0.417224
+vn 0.252672 0.872973 -0.417224
+vn 0.615307 0.728266 0.301705
+vn 0.615307 0.728266 0.301705
+vn 0.615307 0.728266 0.301705
+vn 0.343757 -0.183890 0.920878
+vn 0.343757 -0.183890 0.920878
+vn 0.343757 -0.183890 0.920878
+vn -0.371230 -0.793921 0.481537
+vn -0.371230 -0.793921 0.481537
+vn -0.371230 -0.793921 0.481537
+vn -0.751797 -0.584152 -0.305887
+vn -0.751797 -0.584153 -0.305887
+vn -0.751797 -0.584153 -0.305887
+vn -0.414187 0.368233 -0.832378
+vn -0.414187 0.368233 -0.832378
+vn -0.414187 0.368233 -0.832378
+vn -0.232193 0.971569 0.046256
+vn -0.232193 0.971569 0.046256
+vn -0.232193 0.971569 0.046256
+vn -0.232193 0.971569 0.046256
+vn 0.437156 0.784005 0.440717
+vn 0.437156 0.784005 0.440717
+vn 0.437156 0.784005 0.440717
+vn 0.437156 0.784005 0.440717
+vn 0.799097 -0.378750 0.466897
+vn 0.799097 -0.378750 0.466897
+vn 0.799097 -0.378750 0.466897
+vn 0.799097 -0.378750 0.466897
+vn 0.211269 -0.977231 -0.019613
+vn 0.211269 -0.977231 -0.019613
+vn 0.211269 -0.977231 -0.019613
+vn 0.211269 -0.977231 -0.019613
+vn -0.463325 -0.785132 -0.410971
+vn -0.463325 -0.785132 -0.410971
+vn -0.463325 -0.785132 -0.410971
+vn -0.463325 -0.785132 -0.410971
+vn -0.821806 0.376069 -0.428027
+vn -0.821806 0.376069 -0.428027
+vn -0.821806 0.376069 -0.428027
+vn -0.821806 0.376069 -0.428027
+vn 0.270522 0.861750 -0.429190
+vn 0.270522 0.861750 -0.429190
+vn 0.270522 0.861750 -0.429190
+vn 0.270522 0.861750 -0.429190
+vn 0.553118 0.753747 0.354861
+vn 0.553118 0.753747 0.354861
+vn 0.553118 0.753747 0.354861
+vn 0.553118 0.753747 0.354861
+vn 0.269569 -0.152171 0.950882
+vn 0.269569 -0.152171 0.950882
+vn 0.269569 -0.152171 0.950882
+vn 0.269569 -0.152171 0.950882
+vn -0.330060 -0.817424 0.472101
+vn -0.330060 -0.817424 0.472101
+vn -0.330060 -0.817424 0.472101
+vn -0.330060 -0.817424 0.472101
+vn -0.622005 -0.722375 -0.302134
+vn -0.622005 -0.722375 -0.302134
+vn -0.622005 -0.722375 -0.302134
+vn -0.622004 -0.722375 -0.302134
+vn -0.356745 0.194182 -0.913798
+vn -0.356745 0.194182 -0.913798
+vn -0.356745 0.194182 -0.913798
+vn -0.356745 0.194182 -0.913798
+vn -0.146748 0.976669 -0.156791
+vn -0.146748 0.976669 -0.156791
+vn -0.146748 0.976669 -0.156791
+vn 0.250603 0.836818 0.486759
+vn 0.250603 0.836818 0.486759
+vn 0.250603 0.836818 0.486759
+vn 0.462891 -0.287558 0.838476
+vn 0.462891 -0.287558 0.838477
+vn 0.462891 -0.287558 0.838476
+vn 0.082046 -0.976193 0.200787
+vn 0.082046 -0.976193 0.200787
+vn 0.082046 -0.976193 0.200787
+vn -0.336551 -0.821715 -0.459910
+vn -0.336551 -0.821715 -0.459910
+vn -0.336551 -0.821715 -0.459910
+vn -0.544039 0.329968 -0.771455
+vn -0.544039 0.329968 -0.771455
+vn -0.544039 0.329968 -0.771455
+vn 0.515303 0.279725 -0.810072
+vn 0.515303 0.279725 -0.810072
+vn 0.515303 0.279725 -0.810072
+vn 0.515303 0.279725 -0.810072
+vn 0.515303 0.279725 -0.810072
+vn 0.515303 0.279725 -0.810072
+vn 0.858620 0.207672 -0.468663
+vn 0.858620 0.207672 -0.468663
+vn 0.858620 0.207672 -0.468663
+vn 0.858620 0.207672 -0.468663
+vn 0.373052 0.923919 0.084884
+vn 0.373052 0.923919 0.084884
+vn 0.373052 0.923919 0.084884
+vn 0.373052 0.923919 0.084884
+vn -0.323569 0.829486 0.455253
+vn -0.323569 0.829486 0.455253
+vn -0.323569 0.829486 0.455253
+vn -0.323569 0.829486 0.455253
+vn -0.892811 -0.173702 0.415591
+vn -0.892811 -0.173702 0.415591
+vn -0.892811 -0.173702 0.415591
+vn -0.892811 -0.173702 0.415591
+vn -0.400139 -0.907285 -0.129318
+vn -0.400139 -0.907284 -0.129318
+vn -0.400140 -0.907284 -0.129318
+vn -0.400140 -0.907284 -0.129318
+vn 0.302324 -0.807969 -0.505754
+vn 0.302324 -0.807969 -0.505754
+vn 0.302324 -0.807969 -0.505754
+vn 0.302324 -0.807969 -0.505754
+vn 0.945493 0.119805 -0.302802
+vn 0.945493 0.119805 -0.302802
+vn 0.945493 0.119805 -0.302802
+vn 0.345332 0.938128 0.025715
+vn 0.345332 0.938128 0.025715
+vn 0.345332 0.938128 0.025715
+vn -0.392275 0.890106 0.232018
+vn -0.392275 0.890106 0.232018
+vn -0.392275 0.890106 0.232017
+vn -0.971383 -0.079965 0.223655
+vn -0.971383 -0.079965 0.223655
+vn -0.971383 -0.079965 0.223655
+vn -0.375995 -0.922671 -0.085475
+vn -0.375995 -0.922671 -0.085475
+vn -0.375995 -0.922671 -0.085475
+vn 0.374393 -0.877889 -0.298565
+vn 0.374393 -0.877889 -0.298565
+vn 0.374393 -0.877889 -0.298565
+vn 0.430294 -0.521184 0.737031
+vn 0.430294 -0.521184 0.737031
+vn 0.430294 -0.521184 0.737031
+vn 0.430294 -0.521184 0.737031
+vn 0.430294 -0.521184 0.737031
+vn 0.430294 -0.521184 0.737031
+vn 0.221022 0.865070 -0.450337
+vn 0.221022 0.865070 -0.450337
+vn 0.221022 0.865070 -0.450337
+vn 0.608525 0.745404 0.272159
+vn 0.608525 0.745404 0.272159
+vn 0.608525 0.745404 0.272159
+vn 0.379183 -0.134650 0.915472
+vn 0.379183 -0.134650 0.915472
+vn 0.379183 -0.134650 0.915472
+vn -0.323600 -0.780804 0.534442
+vn -0.323600 -0.780804 0.534442
+vn -0.323600 -0.780804 0.534442
+vn -0.733967 -0.642574 -0.219981
+vn -0.733967 -0.642574 -0.219981
+vn -0.733967 -0.642574 -0.219981
+vn -0.479892 0.283337 -0.830316
+vn -0.479892 0.283337 -0.830316
+vn -0.479892 0.283337 -0.830316
+vn 0.538568 -0.762100 -0.359373
+vn 0.538568 -0.762100 -0.359373
+vn 0.538568 -0.762100 -0.359373
+vn 0.538568 -0.762100 -0.359373
+vn 0.538568 -0.762100 -0.359373
+vn 0.538568 -0.762100 -0.359373
+vn 0.079639 0.889992 -0.448969
+vn 0.079639 0.889992 -0.448969
+vn 0.079639 0.889992 -0.448969
+vn 0.079639 0.889991 -0.448968
+vn 0.812591 0.579208 -0.064914
+vn 0.812591 0.579208 -0.064914
+vn 0.812591 0.579208 -0.064914
+vn 0.812591 0.579208 -0.064914
+vn 0.742532 -0.473764 0.473491
+vn 0.742532 -0.473764 0.473491
+vn 0.742532 -0.473764 0.473491
+vn 0.742532 -0.473764 0.473491
+vn -0.079639 -0.889992 0.448969
+vn -0.079639 -0.889992 0.448968
+vn -0.079639 -0.889992 0.448968
+vn -0.079639 -0.889992 0.448968
+vn -0.812591 -0.579209 0.064914
+vn -0.812591 -0.579209 0.064914
+vn -0.812591 -0.579209 0.064914
+vn -0.812591 -0.579209 0.064914
+vn -0.742533 0.473763 -0.473491
+vn -0.742533 0.473763 -0.473491
+vn -0.742533 0.473763 -0.473491
+vn -0.742533 0.473763 -0.473491
+vn 0.197676 0.649959 -0.733811
+vn 0.197676 0.649959 -0.733811
+vn 0.197676 0.649959 -0.733811
+vn 0.806428 0.588450 -0.058318
+vn 0.806428 0.588450 -0.058318
+vn 0.806428 0.588450 -0.058318
+vn 0.623455 0.033380 0.781147
+vn 0.623455 0.033380 0.781147
+vn 0.623455 0.033380 0.781147
+vn -0.252118 -0.467006 0.847551
+vn -0.252118 -0.467006 0.847551
+vn -0.252118 -0.467006 0.847551
+vn -0.893169 -0.416373 0.169951
+vn -0.893169 -0.416373 0.169951
+vn -0.893169 -0.416373 0.169951
+vn -0.701627 0.173837 -0.691013
+vn -0.701627 0.173837 -0.691013
+vn -0.701627 0.173837 -0.691013
+vn 0.203324 -0.703890 -0.680587
+vn 0.203324 -0.703890 -0.680587
+vn 0.203324 -0.703890 -0.680587
+vn 0.203324 -0.703890 -0.680587
+vn 0.203324 -0.703890 -0.680587
+vn 0.203324 -0.703890 -0.680587
+vn -0.718957 -0.474051 -0.508307
+vn -0.718957 -0.474051 -0.508307
+vn -0.718957 -0.474051 -0.508307
+vn -0.718957 -0.474051 -0.508307
+vn 0.134969 -0.894090 -0.427068
+vn 0.134969 -0.894090 -0.427068
+vn 0.134969 -0.894090 -0.427068
+vn 0.134969 -0.894090 -0.427068
+vn 0.958026 -0.197755 0.207557
+vn 0.958026 -0.197755 0.207557
+vn 0.958026 -0.197755 0.207557
+vn 0.958026 -0.197755 0.207557
+vn 0.629533 0.638611 0.442564
+vn 0.629533 0.638611 0.442564
+vn 0.629533 0.638611 0.442564
+vn 0.629533 0.638611 0.442564
+vn -0.097212 0.952573 0.288365
+vn -0.097212 0.952573 0.288365
+vn -0.097212 0.952573 0.288365
+vn -0.097212 0.952573 0.288365
+vn -0.851502 0.485519 -0.198027
+vn -0.851502 0.485519 -0.198027
+vn -0.851502 0.485519 -0.198027
+vn -0.851502 0.485519 -0.198027
+vn -0.619949 -0.765742 -0.171177
+vn -0.619949 -0.765742 -0.171177
+vn -0.619949 -0.765742 -0.171177
+vn -0.619949 -0.765742 -0.171177
+vn 0.118309 -0.822668 -0.556076
+vn 0.118309 -0.822668 -0.556076
+vn 0.118309 -0.822668 -0.556076
+vn 0.118309 -0.822668 -0.556076
+vn 0.867188 -0.084445 -0.490769
+vn 0.867188 -0.084445 -0.490769
+vn 0.867188 -0.084445 -0.490769
+vn 0.867188 -0.084445 -0.490769
+vn 0.605634 0.783056 0.141527
+vn 0.605634 0.783056 0.141527
+vn 0.605634 0.783056 0.141527
+vn 0.605634 0.783056 0.141527
+vn -0.120860 0.843038 0.524099
+vn -0.120860 0.843038 0.524099
+vn -0.120860 0.843038 0.524099
+vn -0.120860 0.843038 0.524099
+vn -0.878402 0.121233 0.462290
+vn -0.878402 0.121233 0.462290
+vn -0.878403 0.121233 0.462290
+vn -0.878402 0.121233 0.462290
+vn -0.723971 -0.578403 -0.375919
+vn -0.723972 -0.578403 -0.375919
+vn -0.723972 -0.578403 -0.375919
+vn -0.723972 -0.578403 -0.375919
+vn 0.099322 -0.737227 -0.668305
+vn 0.099322 -0.737227 -0.668305
+vn 0.099322 -0.737227 -0.668305
+vn 0.099322 -0.737227 -0.668305
+vn 0.897884 -0.190098 -0.397074
+vn 0.897884 -0.190098 -0.397074
+vn 0.897884 -0.190098 -0.397074
+vn 0.897884 -0.190098 -0.397074
+vn 0.699734 0.639201 0.319052
+vn 0.699734 0.639201 0.319052
+vn 0.699734 0.639201 0.319052
+vn 0.699734 0.639201 0.319052
+vn -0.116870 0.785814 0.607321
+vn -0.116870 0.785814 0.607321
+vn -0.116870 0.785814 0.607321
+vn -0.116870 0.785814 0.607321
+vn -0.907653 0.256833 0.331967
+vn -0.907653 0.256833 0.331967
+vn -0.907653 0.256833 0.331967
+vn -0.907653 0.256833 0.331967
+vn -0.470124 -0.877142 0.098009
+vn -0.470124 -0.877142 0.098009
+vn -0.470124 -0.877142 0.098009
+vn -0.470124 -0.877142 0.098009
+vn 0.198661 -0.935834 -0.291118
+vn 0.198661 -0.935834 -0.291118
+vn 0.198661 -0.935834 -0.291118
+vn 0.198661 -0.935834 -0.291118
+vn 0.853195 -0.125887 -0.506173
+vn 0.853195 -0.125887 -0.506173
+vn 0.853195 -0.125887 -0.506173
+vn 0.853195 -0.125887 -0.506173
+vn 0.470126 0.877141 -0.098010
+vn 0.470126 0.877141 -0.098010
+vn 0.470126 0.877141 -0.098010
+vn 0.470126 0.877141 -0.098010
+vn -0.198661 0.935834 0.291118
+vn -0.198661 0.935834 0.291118
+vn -0.198661 0.935834 0.291118
+vn -0.198661 0.935834 0.291118
+vn -0.853195 0.125888 0.506173
+vn -0.853195 0.125888 0.506173
+vn -0.853195 0.125888 0.506173
+vn -0.853195 0.125888 0.506173
+vn -0.631139 -0.591354 -0.501960
+vn -0.631139 -0.591354 -0.501960
+vn -0.631139 -0.591354 -0.501960
+vn 0.171113 -0.894441 -0.413153
+vn 0.171113 -0.894441 -0.413153
+vn 0.171113 -0.894441 -0.413153
+vn 0.905346 -0.422223 -0.045571
+vn 0.905346 -0.422223 -0.045571
+vn 0.905346 -0.422223 -0.045571
+vn 0.621595 0.694823 0.361719
+vn 0.621595 0.694823 0.361719
+vn 0.621595 0.694823 0.361719
+vn -0.185772 0.943535 0.274283
+vn -0.185772 0.943535 0.274283
+vn -0.185772 0.943535 0.274283
+vn -0.867442 0.484984 -0.111061
+vn -0.867442 0.484984 -0.111061
+vn -0.867442 0.484984 -0.111061
+vn -0.192800 0.171812 -0.966079
+vn -0.192800 0.171812 -0.966079
+vn -0.192800 0.171812 -0.966079
+vn -0.192800 0.171812 -0.966079
+vn 0.307810 -0.762255 -0.569403
+vn 0.307810 -0.762255 -0.569403
+vn 0.307810 -0.762255 -0.569403
+vn 0.307810 -0.762255 -0.569403
+vn 0.465411 -0.851746 0.240668
+vn 0.465411 -0.851746 0.240668
+vn 0.465411 -0.851746 0.240668
+vn 0.465411 -0.851746 0.240668
+vn 0.229399 -0.132859 0.964222
+vn 0.229399 -0.132859 0.964222
+vn 0.229399 -0.132859 0.964222
+vn 0.229399 -0.132859 0.964222
+vn -0.276130 0.788127 0.550099
+vn -0.276130 0.788127 0.550099
+vn -0.276130 0.788127 0.550099
+vn -0.276130 0.788127 0.550099
+vn -0.429724 0.868150 -0.248299
+vn -0.429724 0.868150 -0.248299
+vn -0.429724 0.868150 -0.248299
+vn -0.429724 0.868150 -0.248299
+vn -0.632474 -0.608527 -0.479240
+vn -0.632474 -0.608527 -0.479240
+vn -0.632474 -0.608527 -0.479240
+vn -0.632474 -0.608527 -0.479240
+vn 0.219275 -0.854924 -0.470132
+vn 0.219275 -0.854924 -0.470132
+vn 0.219275 -0.854924 -0.470132
+vn 0.219275 -0.854924 -0.470132
+vn 0.937908 -0.335367 -0.088639
+vn 0.937908 -0.335367 -0.088639
+vn 0.937908 -0.335367 -0.088639
+vn 0.937908 -0.335367 -0.088639
+vn 0.636510 0.659105 0.400545
+vn 0.636510 0.659105 0.400545
+vn 0.636510 0.659105 0.400545
+vn 0.636510 0.659105 0.400545
+vn -0.171908 0.897337 0.406490
+vn -0.171908 0.897337 0.406490
+vn -0.171908 0.897337 0.406490
+vn -0.171908 0.897337 0.406490
+vn -0.899095 0.436382 0.034623
+vn -0.899095 0.436382 0.034623
+vn -0.899095 0.436382 0.034623
+vn -0.899095 0.436382 0.034623
+vn -0.458705 0.013928 -0.888480
+vn -0.458705 0.013928 -0.888480
+vn -0.458705 0.013928 -0.888480
+vn 0.372700 -0.574130 -0.729020
+vn 0.372700 -0.574130 -0.729020
+vn 0.372700 -0.574130 -0.729020
+vn 0.834319 -0.547651 0.063176
+vn 0.834319 -0.547651 0.063176
+vn 0.834319 -0.547651 0.063176
+vn 0.510829 0.106280 0.853088
+vn 0.510829 0.106280 0.853088
+vn 0.510829 0.106280 0.853088
+vn -0.335444 0.671923 0.660301
+vn -0.335444 0.671923 0.660301
+vn -0.335444 0.671923 0.660301
+vn -0.767188 0.630371 -0.118553
+vn -0.767188 0.630371 -0.118553
+vn -0.767188 0.630371 -0.118553
+vn -0.726324 -0.679300 0.104904
+vn -0.726324 -0.679300 0.104904
+vn -0.726324 -0.679300 0.104904
+vn -0.726324 -0.679300 0.104904
+vn -0.726324 -0.679300 0.104904
+vn -0.726324 -0.679300 0.104904
+vn -0.345284 -0.932056 0.109776
+vn -0.345284 -0.932056 0.109776
+vn -0.345284 -0.932056 0.109776
+vn -0.345284 -0.932056 0.109776
+vn -0.075191 -0.765036 -0.639583
+vn -0.075191 -0.765036 -0.639583
+vn -0.075191 -0.765036 -0.639583
+vn -0.075191 -0.765036 -0.639583
+vn 0.326530 0.332078 -0.884931
+vn 0.326530 0.332078 -0.884931
+vn 0.326530 0.332078 -0.884931
+vn 0.326530 0.332078 -0.884931
+vn 0.295185 0.947869 -0.120043
+vn 0.295185 0.947869 -0.120043
+vn 0.295185 0.947869 -0.120043
+vn 0.295185 0.947869 -0.120043
+vn 0.022421 0.784487 0.619740
+vn 0.022421 0.784487 0.619740
+vn 0.022421 0.784487 0.619740
+vn 0.022421 0.784487 0.619740
+vn -0.387665 -0.299924 0.871643
+vn -0.387665 -0.299924 0.871643
+vn -0.387665 -0.299924 0.871643
+vn -0.387665 -0.299924 0.871643
+vn -0.198735 -0.971372 0.130158
+vn -0.198735 -0.971372 0.130158
+vn -0.198735 -0.971372 0.130158
+vn -0.145991 -0.742460 -0.653788
+vn -0.145991 -0.742460 -0.653788
+vn -0.145991 -0.742460 -0.653788
+vn 0.053207 0.438968 -0.896926
+vn 0.053207 0.438968 -0.896926
+vn 0.053207 0.438968 -0.896926
+vn 0.134576 0.981359 -0.137197
+vn 0.134576 0.981359 -0.137197
+vn 0.134576 0.981359 -0.137197
+vn 0.073987 0.767499 0.636766
+vn 0.073987 0.767499 0.636766
+vn 0.073987 0.767499 0.636766
+vn -0.134726 -0.410963 0.901642
+vn -0.134726 -0.410962 0.901642
+vn -0.134726 -0.410963 0.901642
+vn 0.833742 -0.493596 0.247463
+vn 0.833742 -0.493596 0.247463
+vn 0.833742 -0.493596 0.247463
+vn 0.833742 -0.493596 0.247463
+vn 0.833742 -0.493596 0.247463
+vn 0.833742 -0.493596 0.247463
+vn -0.674612 -0.545060 -0.497803
+vn -0.674612 -0.545060 -0.497803
+vn -0.674612 -0.545060 -0.497803
+vn 0.143165 -0.895640 -0.421109
+vn 0.143165 -0.895640 -0.421109
+vn 0.143165 -0.895640 -0.421109
+vn 0.879535 -0.470823 -0.068877
+vn 0.879535 -0.470823 -0.068877
+vn 0.879535 -0.470823 -0.068877
+vn 0.687198 0.634536 0.353728
+vn 0.687198 0.634536 0.353728
+vn 0.687198 0.634536 0.353728
+vn -0.109750 0.948687 0.296559
+vn -0.109750 0.948687 0.296559
+vn -0.109750 0.948687 0.296559
+vn -0.821442 0.566568 -0.065066
+vn -0.821442 0.566568 -0.065066
+vn -0.821442 0.566568 -0.065066
+vn -0.194708 -0.623268 0.757381
+vn -0.194708 -0.623268 0.757381
+vn -0.194708 -0.623268 0.757381
+vn -0.194708 -0.623268 0.757381
+vn -0.194708 -0.623268 0.757381
+vn -0.194708 -0.623268 0.757381
+vn -0.731980 -0.348159 -0.585654
+vn -0.731980 -0.348159 -0.585654
+vn -0.731980 -0.348159 -0.585654
+vn -0.731980 -0.348159 -0.585654
+vn -0.103184 -0.978700 -0.177479
+vn -0.103184 -0.978700 -0.177479
+vn -0.103184 -0.978700 -0.177479
+vn -0.103184 -0.978700 -0.177479
+vn 0.506354 -0.809231 0.297910
+vn 0.506354 -0.809231 0.297910
+vn 0.506354 -0.809231 0.297910
+vn 0.506354 -0.809231 0.297910
+vn 0.731981 0.348158 0.585654
+vn 0.731981 0.348158 0.585654
+vn 0.731981 0.348158 0.585654
+vn 0.731981 0.348158 0.585654
+vn 0.103184 0.978700 0.177479
+vn 0.103184 0.978700 0.177479
+vn 0.103184 0.978700 0.177479
+vn 0.103184 0.978700 0.177479
+vn -0.506354 0.809231 -0.297910
+vn -0.506354 0.809231 -0.297910
+vn -0.506354 0.809231 -0.297910
+vn -0.506354 0.809231 -0.297910
+vn -0.876409 -0.423120 -0.229951
+vn -0.876409 -0.423120 -0.229951
+vn -0.876409 -0.423120 -0.229951
+vn -0.100088 -0.977522 -0.185563
+vn -0.100088 -0.977522 -0.185563
+vn -0.100088 -0.977522 -0.185563
+vn 0.667082 -0.739462 -0.090538
+vn 0.667083 -0.739462 -0.090538
+vn 0.667082 -0.739462 -0.090538
+vn 0.898405 0.436193 0.051027
+vn 0.898405 0.436193 0.051027
+vn 0.898405 0.436193 0.051027
+vn 0.149455 0.987376 0.052448
+vn 0.149455 0.987376 0.052448
+vn 0.149455 0.987377 0.052448
+vn -0.618131 0.783651 -0.061694
+vn -0.618131 0.783651 -0.061694
+vn -0.618131 0.783651 -0.061694
+vn -0.593335 -0.156956 0.789505
+vn -0.593335 -0.156956 0.789505
+vn -0.593335 -0.156956 0.789505
+vn -0.593335 -0.156956 0.789505
+vn -0.593335 -0.156956 0.789505
+vn -0.593335 -0.156956 0.789505
+vn 0.852168 -0.523255 0.003774
+vn 0.852168 -0.523255 0.003774
+vn 0.852168 -0.523255 0.003774
+vn 0.852168 -0.523255 0.003774
+vn 0.070330 -0.887250 0.455895
+vn 0.070330 -0.887250 0.455895
+vn 0.070330 -0.887250 0.455895
+vn 0.070330 -0.887250 0.455895
+vn -0.788925 -0.335639 0.514728
+vn -0.788925 -0.335639 0.514728
+vn -0.788925 -0.335639 0.514728
+vn -0.788925 -0.335639 0.514728
+vn -0.710274 0.702635 -0.042605
+vn -0.710274 0.702635 -0.042605
+vn -0.710274 0.702635 -0.042605
+vn -0.710274 0.702635 -0.042605
+vn -0.039294 0.932039 -0.360221
+vn -0.039294 0.932039 -0.360221
+vn -0.039294 0.932039 -0.360221
+vn -0.039294 0.932039 -0.360221
+vn 0.829669 0.398940 -0.390507
+vn 0.829670 0.398940 -0.390507
+vn 0.829669 0.398940 -0.390507
+vn 0.829669 0.398940 -0.390507
+vn 0.667379 -0.646929 -0.368900
+vn 0.667379 -0.646929 -0.368900
+vn 0.667379 -0.646929 -0.368900
+vn 0.667379 -0.646929 -0.368900
+vn 0.402373 -0.799377 0.446197
+vn 0.402373 -0.799377 0.446197
+vn 0.402373 -0.799377 0.446197
+vn 0.402373 -0.799377 0.446197
+vn -0.244815 -0.218304 0.944674
+vn -0.244815 -0.218304 0.944674
+vn -0.244815 -0.218304 0.944674
+vn -0.244815 -0.218304 0.944674
+vn -0.636545 0.670531 0.381049
+vn -0.636545 0.670531 0.381049
+vn -0.636545 0.670531 0.381049
+vn -0.636545 0.670531 0.381049
+vn -0.379608 0.822360 -0.423818
+vn -0.379608 0.822360 -0.423818
+vn -0.379608 0.822360 -0.423818
+vn -0.379608 0.822360 -0.423818
+vn 0.267736 0.258222 -0.928245
+vn 0.267736 0.258222 -0.928245
+vn 0.267736 0.258222 -0.928245
+vn 0.267736 0.258222 -0.928245
+vn 0.868406 -0.407440 -0.282603
+vn 0.868406 -0.407440 -0.282603
+vn 0.868406 -0.407440 -0.282603
+vn 0.868406 -0.407440 -0.282603
+vn 0.488076 -0.702168 0.518403
+vn 0.488076 -0.702168 0.518403
+vn 0.488076 -0.702168 0.518403
+vn 0.488076 -0.702168 0.518403
+vn -0.317327 -0.332856 0.887981
+vn -0.317327 -0.332856 0.887981
+vn -0.317327 -0.332856 0.887981
+vn -0.317327 -0.332856 0.887981
+vn -0.818806 0.482602 0.310889
+vn -0.818806 0.482602 0.310889
+vn -0.818806 0.482602 0.310889
+vn -0.818806 0.482602 0.310889
+vn -0.436423 0.758464 -0.484011
+vn -0.436423 0.758464 -0.484011
+vn -0.436423 0.758464 -0.484011
+vn -0.436423 0.758464 -0.484011
+vn 0.359895 0.402583 -0.841666
+vn 0.359895 0.402583 -0.841666
+vn 0.359895 0.402583 -0.841666
+vn 0.359895 0.402583 -0.841666
+vn 0.365504 -0.810305 -0.458054
+vn 0.365504 -0.810305 -0.458054
+vn 0.365504 -0.810305 -0.458054
+vn 0.365504 -0.810305 -0.458054
+vn 0.166279 -0.938076 0.303916
+vn 0.166279 -0.938076 0.303916
+vn 0.166279 -0.938076 0.303916
+vn 0.166279 -0.938076 0.303916
+vn -0.219637 -0.254094 0.941911
+vn -0.219637 -0.254094 0.941911
+vn -0.219637 -0.254094 0.941911
+vn -0.219637 -0.254094 0.941911
+vn -0.365504 0.810305 0.458054
+vn -0.365504 0.810305 0.458054
+vn -0.365504 0.810305 0.458054
+vn -0.365504 0.810305 0.458054
+vn -0.166279 0.938076 -0.303917
+vn -0.166279 0.938075 -0.303917
+vn -0.166279 0.938076 -0.303917
+vn -0.166279 0.938075 -0.303917
+vn 0.219638 0.254091 -0.941911
+vn 0.219638 0.254091 -0.941911
+vn 0.219638 0.254091 -0.941911
+vn 0.219638 0.254091 -0.941911
+vn 0.894943 -0.429392 -0.121244
+vn 0.894943 -0.429392 -0.121244
+vn 0.894943 -0.429392 -0.121244
+vn 0.268632 -0.887216 0.375080
+vn 0.268632 -0.887216 0.375080
+vn 0.268632 -0.887216 0.375080
+vn -0.528604 -0.575180 0.624296
+vn -0.528604 -0.575180 0.624296
+vn -0.528604 -0.575180 0.624296
+vn -0.801269 0.554666 0.224306
+vn -0.801269 0.554666 0.224306
+vn -0.801269 0.554666 0.224306
+vn -0.164285 0.945006 -0.282798
+vn -0.164284 0.945006 -0.282798
+vn -0.164285 0.945006 -0.282798
+vn 0.598927 0.635878 -0.486771
+vn 0.598927 0.635878 -0.486771
+vn 0.598927 0.635878 -0.486771
+vn 0.785466 0.288626 0.547484
+vn 0.785466 0.288627 0.547484
+vn 0.785466 0.288626 0.547484
+vn 0.785466 0.288627 0.547484
+vn 0.267923 -0.765697 0.584743
+vn 0.267923 -0.765697 0.584743
+vn 0.267923 -0.765697 0.584743
+vn 0.267923 -0.765697 0.584743
+vn -0.384592 -0.915918 0.114815
+vn -0.384592 -0.915918 0.114815
+vn -0.384592 -0.915918 0.114815
+vn -0.384592 -0.915918 0.114815
+vn -0.814350 -0.258329 -0.519711
+vn -0.814350 -0.258329 -0.519711
+vn -0.814350 -0.258329 -0.519711
+vn -0.814350 -0.258329 -0.519711
+vn -0.279587 0.787836 -0.548767
+vn -0.279587 0.787836 -0.548767
+vn -0.279587 0.787836 -0.548767
+vn -0.279587 0.787836 -0.548767
+vn 0.365187 0.927036 -0.085107
+vn 0.365187 0.927036 -0.085107
+vn 0.365187 0.927036 -0.085107
+vn 0.365187 0.927036 -0.085107
+vn 0.882236 -0.449500 -0.140034
+vn 0.882236 -0.449500 -0.140034
+vn 0.882236 -0.449500 -0.140034
+vn 0.882236 -0.449500 -0.140034
+vn 0.270464 -0.850935 0.450287
+vn 0.270464 -0.850935 0.450287
+vn 0.270464 -0.850935 0.450287
+vn 0.270464 -0.850935 0.450287
+vn -0.533216 -0.498883 0.683225
+vn -0.533216 -0.498883 0.683225
+vn -0.533216 -0.498883 0.683225
+vn -0.533216 -0.498883 0.683225
+vn -0.835608 0.509868 0.204433
+vn -0.835608 0.509868 0.204433
+vn -0.835608 0.509868 0.204433
+vn -0.835608 0.509868 0.204433
+vn -0.263592 0.890573 -0.370673
+vn -0.263592 0.890573 -0.370673
+vn -0.263592 0.890573 -0.370673
+vn -0.263592 0.890573 -0.370673
+vn 0.529882 0.587660 -0.611459
+vn 0.529882 0.587660 -0.611458
+vn 0.529882 0.587660 -0.611458
+vn 0.529882 0.587660 -0.611458
+vn 0.935076 0.183506 0.303245
+vn 0.935076 0.183506 0.303245
+vn 0.935076 0.183506 0.303245
+vn 0.315196 -0.579946 0.751209
+vn 0.315196 -0.579946 0.751209
+vn 0.315196 -0.579946 0.751209
+vn -0.537865 -0.683469 0.493530
+vn -0.537865 -0.683469 0.493530
+vn -0.537865 -0.683469 0.493530
+vn -0.968172 -0.074210 -0.239031
+vn -0.968172 -0.074210 -0.239031
+vn -0.968172 -0.074210 -0.239031
+vn -0.303271 0.674945 -0.672663
+vn -0.303271 0.674945 -0.672663
+vn -0.303271 0.674945 -0.672663
+vn 0.520914 0.750469 -0.406749
+vn 0.520914 0.750469 -0.406749
+vn 0.520914 0.750469 -0.406749
+vn 0.526165 -0.554299 -0.644905
+vn 0.526165 -0.554299 -0.644905
+vn 0.526165 -0.554299 -0.644905
+vn 0.526165 -0.554299 -0.644905
+vn 0.526165 -0.554299 -0.644905
+vn 0.526165 -0.554299 -0.644905
+vn 0.270210 -0.887075 -0.374280
+vn 0.270210 -0.887075 -0.374280
+vn 0.270210 -0.887075 -0.374280
+vn 0.270210 -0.887075 -0.374280
+vn 0.601297 -0.704853 0.376330
+vn 0.601297 -0.704853 0.376330
+vn 0.601297 -0.704853 0.376330
+vn 0.601297 -0.704853 0.376330
+vn 0.361178 0.336106 0.869818
+vn 0.361178 0.336106 0.869818
+vn 0.361178 0.336106 0.869818
+vn 0.361178 0.336106 0.869818
+vn -0.227507 0.910803 0.344497
+vn -0.227507 0.910803 0.344497
+vn -0.227507 0.910803 0.344497
+vn -0.227507 0.910803 0.344497
+vn -0.549277 0.734883 -0.397796
+vn -0.549277 0.734883 -0.397796
+vn -0.549277 0.734883 -0.397796
+vn -0.549277 0.734883 -0.397796
+vn -0.313459 -0.291194 -0.903853
+vn -0.313459 -0.291194 -0.903853
+vn -0.313459 -0.291194 -0.903853
+vn -0.313459 -0.291194 -0.903853
+vn 0.152473 -0.947668 -0.280493
+vn 0.152473 -0.947668 -0.280493
+vn 0.152473 -0.947668 -0.280493
+vn 0.662599 -0.668466 0.337810
+vn 0.662599 -0.668466 0.337810
+vn 0.662599 -0.668466 0.337810
+vn 0.540839 0.492655 0.681751
+vn 0.540839 0.492655 0.681751
+vn 0.540839 0.492655 0.681751
+vn -0.102407 0.965752 0.238402
+vn -0.102407 0.965752 0.238402
+vn -0.102407 0.965752 0.238402
+vn -0.598628 0.707817 -0.375020
+vn -0.598628 0.707817 -0.375020
+vn -0.598628 0.707817 -0.375020
+vn -0.493374 -0.451106 -0.743697
+vn -0.493374 -0.451106 -0.743697
+vn -0.493374 -0.451106 -0.743697
+vn -0.665898 -0.647161 0.371164
+vn -0.665897 -0.647162 0.371164
+vn -0.665897 -0.647162 0.371164
+vn -0.665898 -0.647161 0.371164
+vn -0.665897 -0.647162 0.371164
+vn -0.665898 -0.647161 0.371164
+vn 0.915644 -0.371403 -0.153802
+vn 0.915644 -0.371404 -0.153802
+vn 0.915644 -0.371403 -0.153802
+vn 0.294724 -0.884397 0.361912
+vn 0.294724 -0.884397 0.361912
+vn 0.294724 -0.884397 0.361912
+vn -0.489987 -0.613156 0.619639
+vn -0.489987 -0.613156 0.619639
+vn -0.489987 -0.613156 0.619639
+vn -0.834516 0.477168 0.275488
+vn -0.834516 0.477168 0.275488
+vn -0.834516 0.477168 0.275488
+vn -0.235121 0.940105 -0.246821
+vn -0.235121 0.940105 -0.246821
+vn -0.235121 0.940105 -0.246821
+vn 0.528440 0.698477 -0.482577
+vn 0.528440 0.698477 -0.482577
+vn 0.528440 0.698477 -0.482577
+vn -0.330452 -0.636771 -0.696652
+vn -0.330452 -0.636771 -0.696652
+vn -0.330452 -0.636771 -0.696652
+vn -0.330452 -0.636771 -0.696652
+vn -0.330452 -0.636771 -0.696652
+vn -0.330452 -0.636771 -0.696652
+vn 0.982068 -0.145516 -0.119860
+vn 0.982068 -0.145516 -0.119860
+vn 0.982068 -0.145516 -0.119860
+vn 0.982068 -0.145516 -0.119860
+vn 0.307725 -0.951425 0.009813
+vn 0.307725 -0.951425 0.009813
+vn 0.307725 -0.951425 0.009813
+vn 0.307725 -0.951425 0.009813
+vn -0.452978 -0.885306 0.105092
+vn -0.452978 -0.885306 0.105092
+vn -0.452978 -0.885306 0.105092
+vn -0.452978 -0.885306 0.105092
+vn -0.982068 0.145517 0.119860
+vn -0.982068 0.145516 0.119860
+vn -0.982068 0.145517 0.119860
+vn -0.982068 0.145516 0.119860
+vn -0.307724 0.951425 -0.009813
+vn -0.307724 0.951425 -0.009813
+vn -0.307724 0.951425 -0.009813
+vn -0.307724 0.951425 -0.009813
+vn 0.452979 0.885305 -0.105092
+vn 0.452979 0.885305 -0.105092
+vn 0.452979 0.885305 -0.105092
+vn 0.452979 0.885305 -0.105092
+vn 0.842805 -0.223913 -0.489431
+vn 0.842805 -0.223913 -0.489431
+vn 0.842805 -0.223913 -0.489431
+vn 0.311222 -0.950168 0.017951
+vn 0.311222 -0.950168 0.017951
+vn 0.311222 -0.950168 0.017951
+vn -0.306662 -0.822340 0.479286
+vn -0.306662 -0.822340 0.479286
+vn -0.306662 -0.822340 0.479286
+vn -0.729805 0.248482 0.636900
+vn -0.729805 0.248482 0.636900
+vn -0.729805 0.248482 0.636900
+vn -0.251313 0.961119 0.114416
+vn -0.251313 0.961119 0.114416
+vn -0.251313 0.961119 0.114416
+vn 0.370982 0.864006 -0.340391
+vn 0.370982 0.864006 -0.340391
+vn 0.370982 0.864006 -0.340391
+vn -0.128067 -0.100460 -0.986664
+vn -0.128067 -0.100460 -0.986664
+vn -0.128067 -0.100460 -0.986664
+vn -0.128067 -0.100460 -0.986664
+vn -0.128067 -0.100460 -0.986664
+vn -0.128067 -0.100460 -0.986664
+vn -0.677719 -0.545393 0.493197
+vn -0.677719 -0.545393 0.493197
+vn -0.677719 -0.545393 0.493197
+vn 0.687328 -0.533892 0.492483
+vn 0.687328 -0.533892 0.492483
+vn 0.687328 -0.533892 0.492483
+vn 0.687328 -0.533892 0.492483
+vn -0.257337 -0.963894 -0.068448
+vn -0.257337 -0.963894 -0.068448
+vn -0.257337 -0.963894 -0.068448
+vn 0.520639 0.152893 0.839976
+vn 0.520639 0.152893 0.839976
+vn 0.520638 0.152893 0.839976
+vn -0.930526 0.239008 -0.277481
+vn -0.930526 0.239008 -0.277481
+vn -0.930526 0.239008 -0.277481
+vn 0.982734 0.068486 -0.171883
+vn 0.982734 0.068486 -0.171883
+vn 0.982734 0.068486 -0.171883
+vn -0.474037 -0.118290 0.872523
+vn -0.474037 -0.118290 0.872523
+vn -0.474037 -0.118290 0.872523
+vn 0.844842 0.384190 0.372344
+vn 0.844842 0.384190 0.372344
+vn 0.844842 0.384190 0.372344
+vn 0.844842 0.384190 0.372344
+vn 0.369788 -0.038910 0.928301
+vn 0.369788 -0.038910 0.928301
+vn 0.369788 -0.038910 0.928301
+vn 0.369788 -0.038910 0.928301
+vn -0.346289 -0.363123 0.865000
+vn -0.346289 -0.363123 0.865000
+vn -0.346289 -0.363123 0.865000
+vn -0.346289 -0.363123 0.865000
+vn -0.853840 -0.429194 0.294533
+vn -0.853840 -0.429194 0.294533
+vn -0.853840 -0.429194 0.294533
+vn -0.853840 -0.429194 0.294533
+vn -0.870924 -0.211301 -0.443669
+vn -0.870924 -0.211301 -0.443670
+vn -0.870924 -0.211301 -0.443670
+vn -0.870924 -0.211301 -0.443669
+vn -0.386101 0.166570 -0.907293
+vn -0.386100 0.166570 -0.907293
+vn -0.386101 0.166570 -0.907293
+vn -0.386101 0.166570 -0.907293
+vn -0.386100 0.166570 -0.907293
+vn 0.333567 0.516879 -0.788396
+vn 0.333567 0.516879 -0.788396
+vn 0.333567 0.516879 -0.788396
+vn 0.333567 0.516879 -0.788396
+vn 0.811656 0.541039 -0.220205
+vn 0.811656 0.541039 -0.220205
+vn 0.811656 0.541039 -0.220205
+vn 0.811656 0.541039 -0.220205
+vn 0.811656 0.541039 -0.220205
+vn -0.899458 0.078168 -0.429959
+vn -0.899458 0.078168 -0.429959
+vn -0.899458 0.078168 -0.429959
+vn -0.899458 0.078168 -0.429959
+vn 0.309135 0.928286 0.206690
+vn 0.309135 0.928286 0.206690
+vn 0.309135 0.928286 0.206690
+vn 0.257337 0.963894 0.068448
+vn 0.257337 0.963894 0.068448
+vn 0.257337 0.963894 0.068448
+vn -0.309135 -0.928286 -0.206691
+vn -0.309135 -0.928286 -0.206691
+vn -0.309135 -0.928286 -0.206691
+vn -0.296318 0.686903 0.663596
+vn -0.296318 0.686903 0.663596
+vn -0.296318 0.686903 0.663596
+vn -0.440580 -0.886900 0.138918
+vn -0.440580 -0.886900 0.138918
+vn -0.440580 -0.886900 0.138918
+vn -0.440580 -0.886900 0.138918
+vn -0.348325 -0.741209 0.573828
+vn -0.348325 -0.741209 0.573828
+vn -0.348325 -0.741209 0.573828
+vn -0.348325 -0.741209 0.573828
+vn -0.433542 -0.866991 -0.245699
+vn -0.433542 -0.866991 -0.245699
+vn -0.433542 -0.866991 -0.245699
+vn -0.433542 -0.866991 -0.245699
+vn -0.153667 -0.207394 -0.966113
+vn -0.153667 -0.207394 -0.966113
+vn -0.153667 -0.207394 -0.966113
+vn -0.153667 -0.207394 -0.966113
+vn 0.314841 0.757257 -0.572222
+vn 0.314841 0.757257 -0.572222
+vn 0.314841 0.757257 -0.572222
+vn 0.314841 0.757257 -0.572222
+vn 0.403100 0.884090 0.236421
+vn 0.403100 0.884090 0.236421
+vn 0.403100 0.884090 0.236421
+vn 0.403100 0.884090 0.236421
+vn 0.121660 0.240880 0.962900
+vn 0.121660 0.240880 0.962900
+vn 0.121660 0.240880 0.962900
+vn 0.121660 0.240880 0.962900
+vn -0.582308 -0.563523 0.585969
+vn -0.582308 -0.563523 0.585969
+vn -0.582308 -0.563523 0.585969
+vn -0.582308 -0.563523 0.585969
+vn -0.544606 -0.793987 -0.270166
+vn -0.544606 -0.793987 -0.270166
+vn -0.544606 -0.793987 -0.270166
+vn -0.544606 -0.793987 -0.270166
+vn -0.051625 -0.301902 -0.951940
+vn -0.051625 -0.301902 -0.951940
+vn -0.051625 -0.301902 -0.951940
+vn -0.051625 -0.301902 -0.951940
+vn 0.518900 0.620973 -0.587482
+vn 0.518900 0.620973 -0.587482
+vn 0.518900 0.620973 -0.587482
+vn 0.518900 0.620973 -0.587482
+vn 0.481582 0.835936 0.263229
+vn 0.481582 0.835936 0.263229
+vn 0.481582 0.835936 0.263229
+vn 0.481582 0.835936 0.263229
+vn -0.014491 0.359945 0.932861
+vn -0.014491 0.359945 0.932861
+vn -0.014491 0.359945 0.932861
+vn -0.014491 0.359944 0.932861
+vn -0.036287 -0.842789 0.537019
+vn -0.036287 -0.842789 0.537019
+vn -0.036287 -0.842789 0.537019
+vn -0.036287 -0.842789 0.537019
+vn 0.036240 0.842793 -0.537016
+vn 0.036240 0.842793 -0.537016
+vn 0.036240 0.842793 -0.537016
+vn 0.036240 0.842793 -0.537016
+vn 0.036240 0.842793 -0.537016
+vn 0.170660 0.248278 0.953537
+vn 0.170660 0.248278 0.953537
+vn 0.170660 0.248278 0.953537
+vn 0.170660 0.248278 0.953537
+vn -0.280282 -0.927557 -0.247145
+vn -0.280282 -0.927557 -0.247145
+vn -0.280282 -0.927557 -0.247145
+vn 0.284056 -0.489320 -0.824547
+vn 0.284056 -0.489320 -0.824547
+vn 0.284056 -0.489320 -0.824547
+vn 0.520785 0.705260 -0.481031
+vn 0.520785 0.705260 -0.481031
+vn 0.520785 0.705260 -0.481031
+vn 0.161925 0.960589 0.225942
+vn 0.161925 0.960589 0.225942
+vn 0.161925 0.960589 0.225942
+vn 0.161925 0.960589 0.225942
+vn 0.161925 0.960589 0.225942
+vn -0.419237 0.531906 0.735742
+vn -0.419237 0.531906 0.735742
+vn -0.419237 0.531906 0.735742
+vn 0.346780 -0.632217 -0.692853
+vn 0.346780 -0.632217 -0.692853
+vn 0.346780 -0.632217 -0.692853
+vn 0.346780 -0.632217 -0.692853
+vn 0.092891 0.910928 0.401971
+vn 0.092891 0.910928 0.401971
+vn 0.092891 0.910928 0.401971
+vn 0.092891 0.910928 0.401971
+vn 0.681596 0.527465 -0.507157
+vn 0.681596 0.527465 -0.507157
+vn 0.681596 0.527465 -0.507157
+vn 0.681596 0.527465 -0.507157
+vn -0.977154 -0.098512 0.188325
+vn -0.977154 -0.098512 0.188325
+vn -0.977154 -0.098512 0.188325
+vn -0.977154 -0.098512 0.188325
+vn -0.287381 -0.927977 -0.237215
+vn -0.287381 -0.927977 -0.237215
+vn -0.287381 -0.927977 -0.237215
+vn -0.170661 -0.248282 -0.953536
+vn -0.170661 -0.248282 -0.953536
+vn -0.170661 -0.248282 -0.953536
+vn -0.170661 -0.248282 -0.953536
+vn 0.528483 0.683678 -0.503279
+vn 0.528483 0.683678 -0.503279
+vn 0.528483 0.683678 -0.503279
+vn 0.150759 0.966370 0.208330
+vn 0.150759 0.966370 0.208330
+vn 0.150759 0.966370 0.208330
+vn 0.907871 -0.055859 0.415512
+vn 0.907871 -0.055859 0.415512
+vn 0.907871 -0.055859 0.415512
+vn 0.907871 -0.055859 0.415512
+vn -0.331603 0.608990 0.720535
+vn -0.331603 0.608990 0.720535
+vn -0.331603 0.608990 0.720535
+vn -0.871112 0.262743 -0.414885
+vn -0.871112 0.262743 -0.414885
+vn -0.871112 0.262743 -0.414885
+vn -0.871112 0.262743 -0.414885
+vn 0.660456 -0.261467 0.703870
+vn 0.660456 -0.261467 0.703870
+vn 0.660456 -0.261467 0.703870
+vn 0.660456 -0.261467 0.703870
+vn 0.660456 -0.261467 0.703870
+vn -0.281628 -0.928086 -0.243603
+vn -0.281628 -0.928086 -0.243603
+vn -0.281628 -0.928086 -0.243603
+vn -0.963321 -0.058697 -0.261855
+vn -0.963321 -0.058697 -0.261855
+vn -0.963321 -0.058697 -0.261855
+vn -0.963321 -0.058697 -0.261855
+vn -0.617032 -0.582233 0.529412
+vn -0.617032 -0.582233 0.529412
+vn -0.617032 -0.582233 0.529412
+vn -0.304794 0.604947 0.735622
+vn -0.304794 0.604947 0.735622
+vn -0.304794 0.604947 0.735622
+vn -0.162112 -0.960540 -0.226014
+vn -0.162112 -0.960540 -0.226014
+vn -0.162112 -0.960540 -0.226014
+vn -0.162112 -0.960540 -0.226013
+vn -0.162112 -0.960540 -0.226013
+vn 0.150797 0.966374 0.208282
+vn 0.150797 0.966374 0.208282
+vn 0.150797 0.966374 0.208282
+vn -0.419235 0.531903 0.735745
+vn -0.419235 0.531903 0.735745
+vn -0.419235 0.531903 0.735745
+vn 0.224233 0.922361 0.314595
+vn 0.224233 0.922361 0.314595
+vn 0.224233 0.922361 0.314595
+f 37/262/1 38/1103/2 46/1104/3
+f 46/1104/3 38/1103/2 1/9/4
+f 38/1103/2 47/1105/5 1/9/4
+f 38/172/6 39/1106/7 47/1107/8
+f 2/32/9 47/1107/8 96/1108/10
+f 47/1107/8 39/1106/7 96/1108/10
+f 3/144/11 96/1111/12 48/1110/13
+f 96/1111/12 39/237/14 48/1110/13
+f 39/237/14 40/1109/15 48/1110/13
+f 48/1116/16 40/1114/17 41/1115/18
+f 42/1117/19 49/1119/20 41/55/21
+f 49/1119/20 4/17/22 41/55/21
+f 48/1118/23 41/55/21 4/17/22
+f 49/1123/24 42/1121/25 5/138/26
+f 5/138/26 42/1121/25 43/1122/27
+f 50/1128/28 5/11/29 51/1129/30
+f 5/11/29 43/1126/31 51/1129/30
+f 43/1126/31 44/1127/32 51/1129/30
+f 44/1130/33 37/141/34 51/1133/35
+f 45/1131/36 51/1133/35 46/1132/37
+f 51/1133/35 37/141/34 46/1132/37
+f 277/1136/38 278/1137/39 6/1134/40
+f 6/1134/40 278/1137/39 7/1135/41
+f 7/739/42 278/1139/43 113/1138/44
+f 113/1138/44 278/1139/43 279/1140/45
+f 113/762/46 279/1141/47 112/246/48
+f 112/246/48 279/1141/47 366/1143/49
+f 366/1146/50 10/124/51 112/1145/52
+f 112/1145/52 10/124/51 111/1144/53
+f 365/1150/54 111/1149/55 11/1148/56
+f 11/1148/56 111/1149/55 10/1147/57
+f 365/1155/58 11/1151/59 8/27/60
+f 8/27/60 11/1151/59 12/1152/61
+f 8/21/62 12/1124/63 9/134/64
+f 9/134/64 12/1124/63 13/1125/65
+f 13/1159/66 277/1160/67 9/1158/68
+f 9/1158/68 277/1160/67 6/1157/69
+f 282/1162/70 367/1163/71 281/1161/72
+f 281/1161/72 367/1163/71 368/1164/73
+f 368/1167/74 369/1168/75 281/1166/76
+f 281/1166/76 369/1168/75 280/1165/77
+f 366/998/78 280/997/79 370/1170/80
+f 370/1170/80 280/997/79 369/1169/81
+f 366/1172/82 370/1173/83 10/885/84
+f 10/885/84 370/1173/83 371/1174/85
+f 371/1175/86 372/1176/87 10/19/88
+f 10/19/88 372/1176/87 11/25/89
+f 12/1152/90 11/1151/91 195/1154/92
+f 372/1156/93 194/1153/94 11/1151/91
+f 11/1151/91 194/1153/94 195/1154/92
+f 195/495/95 196/496/96 12/29/97
+f 12/29/97 196/496/96 13/37/98
+f 13/1177/99 196/1178/100 282/1180/101
+f 367/1181/102 282/1180/101 197/1179/103
+f 196/1178/100 197/1179/103 282/1180/101
+f 15/57/104 376/1183/105 16/1182/106
+f 16/1184/107 376/1185/108 377/1186/109
+f 17/28/110 377/1188/111 18/1187/112
+f 18/30/113 377/1191/114 19/31/115
+f 19/31/115 377/1191/114 373/1189/116
+f 19/1192/117 22/1194/118 20/1193/119
+f 20/1195/120 22/1197/121 21/1196/122
+f 21/1196/122 22/1197/121 23/1198/123
+f 21/1200/124 23/1201/125 14/1199/126
+f 24/1202/127 25/1203/128 377/1204/129
+f 26/1205/130 27/1206/131 22/49/132
+f 22/49/132 27/1206/131 23/51/133
+f 27/24/134 28/40/135 24/23/136
+f 24/116/137 28/1207/138 25/123/139
+f 25/41/140 28/1209/141 26/1208/142
+f 26/58/143 28/85/144 27/71/145
+f 6/13/146 7/73/147 37/1210/148
+f 37/1210/148 7/73/147 38/1211/149
+f 7/131/150 114/1213/151 38/142/152
+f 38/142/152 114/1213/151 39/1212/153
+f 39/237/154 114/1112/155 40/1109/156
+f 40/1109/156 114/1112/155 115/1113/157
+f 40/43/158 115/1215/159 41/1214/160
+f 41/1214/160 115/1215/159 116/1216/161
+f 41/48/162 116/1217/163 42/54/164
+f 42/54/164 116/1217/163 365/1218/165
+f 365/1051/166 8/18/167 42/87/168
+f 42/87/168 8/18/167 43/91/169
+f 8/21/170 9/134/171 43/1126/172
+f 43/1126/172 9/134/171 44/1127/173
+f 9/14/174 6/12/175 44/77/176
+f 44/77/176 6/12/175 37/67/177
+f 1/2/178 47/143/179 2/26/180
+f 2/157/181 31/1220/182 1/122/183
+f 1/122/183 31/1220/182 30/1219/184
+f 49/1119/185 69/1120/186 4/17/187
+f 4/17/187 69/1120/186 34/42/188
+f 36/962/189 29/954/190 35/961/191
+f 35/961/191 29/954/190 69/1088/192
+f 69/1088/192 29/954/190 34/960/193
+f 34/960/193 29/954/190 33/959/194
+f 33/959/194 29/954/190 32/958/195
+f 32/958/195 29/954/190 31/956/196
+f 30/955/197 31/956/196 29/954/190
+f 46/78/198 53/108/199 45/74/200
+f 45/74/200 53/108/199 52/96/201
+f 46/95/202 1/4/203 53/155/204
+f 53/155/204 1/4/203 54/156/205
+f 1/121/206 30/152/207 54/1221/208
+f 54/1221/208 30/152/207 55/1222/209
+f 30/1223/210 29/52/211 55/1224/212
+f 55/1224/212 29/52/211 56/1225/213
+f 45/92/214 52/147/215 29/72/216
+f 29/72/216 52/147/215 56/150/217
+f 52/166/218 53/250/219 57/1226/220
+f 57/1226/220 53/250/219 58/1227/221
+f 53/114/222 54/133/223 58/1228/224
+f 58/1228/224 54/133/223 59/1229/225
+f 54/163/226 55/169/227 59/1230/228
+f 59/1230/228 55/169/227 60/1231/229
+f 56/83/230 61/90/231 55/82/232
+f 55/82/232 61/90/231 60/84/233
+f 52/145/234 57/242/235 56/175/236
+f 56/175/236 57/242/235 61/1079/237
+f 57/135/238 58/1232/239 62/1233/240
+f 58/136/241 59/137/242 62/1080/243
+f 59/171/244 60/1037/245 62/1038/246
+f 60/84/247 61/90/248 62/94/249
+f 61/161/250 57/153/251 62/162/252
+f 51/477/253 67/1235/254 50/168/255
+f 50/168/255 67/1235/254 66/1234/256
+f 51/1237/257 45/263/258 67/1239/259
+f 67/1239/259 45/263/258 65/1238/260
+f 36/100/261 64/102/262 29/1/263
+f 29/1/263 64/102/262 63/101/264
+f 50/165/265 66/1242/266 36/86/267
+f 36/86/267 66/1242/266 64/1241/268
+f 45/98/269 29/66/270 65/1244/271
+f 65/1244/271 29/66/270 63/1243/272
+f 66/1234/273 67/1235/274 68/1236/275
+f 67/1245/276 65/481/277 68/1246/278
+f 63/101/279 64/102/280 68/1240/281
+f 64/170/282 66/184/283 68/485/284
+f 65/270/285 63/265/286 68/483/287
+f 49/70/288 5/10/289 73/99/290
+f 73/99/290 5/10/289 70/75/291
+f 5/8/292 50/271/293 70/1247/294
+f 70/1247/294 50/271/293 74/1248/295
+f 69/1249/296 75/1251/297 35/103/298
+f 35/103/298 75/1251/297 71/1250/299
+f 35/80/300 71/1252/301 36/81/302
+f 36/81/302 71/1252/301 72/1253/303
+f 36/63/304 72/275/305 50/129/306
+f 50/129/306 72/275/305 74/277/307
+f 69/59/308 49/56/309 75/1255/310
+f 75/1255/310 49/56/309 73/1254/311
+f 70/139/312 76/1256/313 73/140/314
+f 73/140/314 76/1256/313 79/1257/315
+f 74/231/316 80/1259/317 70/196/318
+f 70/196/318 80/1259/317 76/1258/319
+f 75/106/320 81/1262/321 71/104/322
+f 71/104/322 81/1262/321 77/1260/323
+f 72/105/324 71/104/325 78/1261/326
+f 78/1261/326 71/104/325 77/1260/327
+f 74/223/328 72/208/329 80/1058/330
+f 80/1058/330 72/208/329 78/233/331
+f 73/62/332 79/69/333 75/68/334
+f 75/68/334 79/69/333 81/117/335
+f 79/1028/336 76/149/337 82/1029/338
+f 76/148/339 80/151/340 82/154/341
+f 77/110/342 81/164/343 82/167/344
+f 78/115/345 77/110/346 82/167/347
+f 80/281/348 78/278/349 82/282/350
+f 81/952/351 79/118/352 82/953/353
+f 3/34/354 48/174/355 83/183/356
+f 83/183/356 48/174/355 84/1263/357
+f 4/6/358 85/1265/359 48/53/360
+f 48/53/360 85/1265/359 84/1264/361
+f 34/76/362 86/1267/363 4/7/364
+f 4/7/364 86/1267/363 85/1266/365
+f 34/79/366 33/65/367 86/1268/368
+f 86/1268/368 33/65/367 87/1269/369
+f 32/958/370 88/1090/371 33/959/372
+f 33/959/372 88/1090/371 87/1089/373
+f 32/1091/374 3/130/375 88/1093/376
+f 88/1093/376 3/130/375 83/1092/377
+f 83/88/378 84/89/379 89/97/380
+f 89/97/380 84/89/379 90/158/381
+f 85/193/382 91/1271/383 84/181/384
+f 84/181/384 91/1271/383 90/1270/385
+f 85/234/386 86/235/387 91/1272/388
+f 91/1272/388 86/235/387 92/1273/389
+f 86/177/390 87/178/391 92/186/392
+f 92/186/392 87/178/391 93/1274/393
+f 88/180/394 94/1275/395 87/178/396
+f 87/178/396 94/1275/395 93/1274/397
+f 83/179/398 89/1276/399 88/192/400
+f 88/192/400 89/1276/399 94/1277/401
+f 89/97/402 90/158/403 95/159/404
+f 90/194/405 91/204/406 95/326/407
+f 91/243/408 92/247/409 95/249/410
+f 92/1100/411 93/1101/412 95/1102/413
+f 93/188/414 94/189/415 95/190/416
+f 94/198/417 89/197/418 95/225/419
+f 96/288/420 101/1279/421 2/5/422
+f 2/5/422 101/1279/421 97/1278/423
+f 96/185/424 3/3/425 101/200/426
+f 101/200/426 3/3/425 98/187/427
+f 32/61/428 31/60/429 100/1280/430
+f 100/1280/430 31/60/429 99/191/431
+f 2/50/432 97/950/433 31/949/434
+f 31/949/434 97/950/433 99/951/435
+f 3/38/436 32/93/437 98/1281/438
+f 98/1281/438 32/93/437 100/1282/439
+f 97/297/440 101/1283/441 102/1284/442
+f 101/1285/443 103/1287/444 102/1286/445
+f 104/1096/446 99/199/447 102/1095/448
+f 99/294/449 97/290/450 102/299/451
+f 103/1288/452 104/1289/453 102/205/454
+f 100/1094/455 99/199/456 104/1096/457
+f 101/241/458 98/216/459 107/1291/460
+f 107/1291/460 98/216/459 105/1290/461
+f 100/109/462 106/1048/463 98/107/464
+f 98/107/464 106/1048/463 105/1047/465
+f 104/201/466 109/1293/467 100/195/468
+f 100/195/468 109/1293/467 106/1292/469
+f 101/203/470 107/1295/471 103/1294/472
+f 103/1294/472 107/1295/471 108/1296/473
+f 104/207/474 103/206/475 109/1297/476
+f 109/1297/476 103/206/475 108/212/477
+f 107/260/478 105/251/479 110/269/480
+f 105/258/481 106/1001/482 110/1002/483
+f 106/211/484 109/215/485 110/217/486
+f 108/210/487 107/209/488 110/213/489
+f 109/1098/490 108/1097/491 110/1099/492
+f 111/334/493 117/348/494 112/336/495
+f 112/336/495 117/348/494 118/417/496
+f 118/322/497 119/323/498 112/314/499
+f 112/314/499 119/323/498 113/315/500
+f 119/1301/501 120/1302/502 113/252/503
+f 113/252/503 120/1302/502 114/1300/504
+f 114/253/505 120/308/506 115/264/507
+f 115/264/507 120/308/506 121/1303/508
+f 115/859/509 121/870/510 116/869/511
+f 116/869/511 121/870/510 122/1304/512
+f 116/286/513 122/1306/514 111/279/515
+f 111/279/515 122/1306/514 117/1305/516
+f 123/1307/517 124/1308/518 117/287/519
+f 117/287/519 124/1308/518 118/291/520
+f 124/1298/521 125/1299/522 118/322/523
+f 118/322/523 125/1299/522 119/323/524
+f 125/316/525 126/524/526 119/273/527
+f 119/273/527 126/524/526 120/283/528
+f 120/222/529 126/1311/530 121/224/531
+f 121/224/531 126/1311/530 127/1312/532
+f 121/125/533 127/127/534 122/126/535
+f 122/126/535 127/127/534 128/128/536
+f 122/302/537 128/320/538 117/295/539
+f 117/295/539 128/320/538 123/319/540
+f 129/303/541 130/304/542 123/296/543
+f 123/296/543 130/304/542 124/298/544
+f 124/366/545 130/411/546 125/405/547
+f 125/405/547 130/411/546 131/415/548
+f 125/316/549 131/526/550 126/524/551
+f 126/524/551 131/526/550 132/540/552
+f 126/226/553 132/257/554 127/255/555
+f 127/255/555 132/257/554 133/268/556
+f 133/218/557 134/219/558 127/127/559
+f 127/127/559 134/219/558 128/128/560
+f 134/338/561 129/321/562 128/320/563
+f 128/320/563 129/321/562 123/319/564
+f 135/1315/565 136/1316/566 129/324/567
+f 129/324/567 136/1316/566 130/328/568
+f 136/329/569 137/330/570 130/325/571
+f 130/325/571 137/330/570 131/327/572
+f 137/1309/573 138/1310/574 131/526/575
+f 131/526/575 138/1310/574 132/540/576
+f 132/132/577 138/1317/578 133/173/579
+f 133/173/579 138/1317/578 139/1318/580
+f 133/146/581 139/176/582 134/160/583
+f 134/160/583 139/176/582 140/182/584
+f 134/338/585 140/1314/586 129/321/587
+f 129/321/587 140/1314/586 135/1313/588
+f 135/309/589 141/438/590 136/313/591
+f 136/329/592 141/331/593 137/330/594
+f 137/544/595 141/738/596 138/737/597
+f 138/272/598 141/280/599 139/274/600
+f 139/176/601 141/202/602 140/182/603
+f 140/1026/604 141/1027/605 135/1025/606
+f 142/461/607 148/1319/608 143/507/609
+f 143/507/609 148/1319/608 149/1320/610
+f 143/220/611 149/345/612 144/221/613
+f 144/221/613 149/345/612 150/349/614
+f 144/332/615 150/359/616 145/337/617
+f 145/337/617 150/359/616 151/1068/618
+f 151/1008/619 152/1009/620 145/227/621
+f 145/227/621 152/1009/620 146/1007/622
+f 152/238/623 153/244/624 146/229/625
+f 146/229/625 153/244/624 147/230/626
+f 153/1073/627 148/254/628 147/228/629
+f 147/228/629 148/254/628 142/214/630
+f 154/1321/631 155/1322/632 148/541/633
+f 148/541/633 155/1322/632 149/542/634
+f 155/360/635 156/361/636 149/345/637
+f 149/345/637 156/361/636 150/349/638
+f 156/1323/639 157/1324/640 150/318/641
+f 150/318/641 157/1324/640 151/333/642
+f 151/232/643 157/239/644 152/236/645
+f 152/236/645 157/239/644 158/240/646
+f 152/256/647 158/266/648 153/259/649
+f 153/259/649 158/266/648 159/276/650
+f 153/371/651 159/1326/652 148/368/653
+f 148/368/653 159/1326/652 154/1325/654
+f 154/543/655 160/1328/656 155/1327/657
+f 155/545/658 160/993/659 156/992/660
+f 156/339/661 160/341/662 157/340/663
+f 157/1010/664 160/1012/665 158/1011/666
+f 158/245/667 160/453/668 159/450/669
+f 159/384/670 160/386/671 154/381/672
+f 143/351/673 144/352/674 142/350/675
+f 144/352/674 145/354/676 142/350/675
+f 145/354/676 146/355/677 142/350/675
+f 146/355/677 147/356/678 142/350/675
+f 161/364/679 167/1329/680 162/367/681
+f 162/367/681 167/1329/680 168/1330/682
+f 162/546/683 168/1331/684 163/553/685
+f 163/553/685 168/1331/684 169/1332/686
+f 163/547/687 169/1334/688 164/548/689
+f 164/548/689 169/1334/688 170/1335/690
+f 170/1336/691 171/1337/692 164/285/693
+f 164/285/693 171/1337/692 165/293/694
+f 171/1338/695 172/1339/696 165/261/697
+f 165/261/697 172/1339/696 166/289/698
+f 172/1342/699 167/1341/700 166/267/701
+f 166/267/701 167/1341/700 161/248/702
+f 167/375/703 173/377/704 168/376/705
+f 168/1331/706 173/1333/707 169/1332/708
+f 169/575/709 173/577/710 170/576/711
+f 170/300/712 173/305/713 171/301/714
+f 171/1338/715 173/1340/716 172/1339/717
+f 172/292/718 173/312/719 167/284/720
+f 162/343/721 163/344/722 161/342/723
+f 163/344/722 164/346/724 161/342/723
+f 164/346/724 165/347/725 161/342/723
+f 165/347/725 166/365/726 161/342/723
+f 174/469/727 180/525/728 175/474/729
+f 175/379/730 180/388/731 176/385/732
+f 176/373/733 180/1044/734 177/1043/735
+f 177/383/736 180/391/737 178/390/738
+f 178/306/739 180/310/740 179/307/741
+f 179/402/742 180/409/743 174/387/744
+f 175/369/745 176/370/746 174/335/747
+f 176/370/746 177/380/748 174/335/747
+f 177/380/748 178/389/749 174/335/747
+f 178/389/749 179/395/750 174/335/747
+f 181/539/751 187/579/752 182/578/753
+f 182/578/753 187/579/752 188/580/754
+f 182/394/755 188/480/756 183/472/757
+f 183/472/757 188/480/756 189/1343/758
+f 183/398/759 189/478/760 184/423/761
+f 184/423/761 189/478/760 190/479/762
+f 190/440/763 191/441/764 184/399/765
+f 184/399/765 191/441/764 185/416/766
+f 191/1346/767 192/1347/768 185/317/769
+f 185/317/769 192/1347/768 186/1345/770
+f 192/1348/771 187/357/772 186/353/773
+f 186/353/773 187/357/772 181/311/774
+f 187/463/775 193/1072/776 188/1071/777
+f 188/480/778 193/1344/779 189/1343/780
+f 189/392/781 193/1350/782 190/1349/783
+f 190/393/784 193/397/785 191/396/786
+f 191/358/787 193/363/788 192/362/789
+f 192/464/790 193/468/791 187/443/792
+f 182/412/793 183/413/794 181/410/795
+f 183/413/794 184/414/796 181/410/795
+f 184/414/796 185/439/797 181/410/795
+f 185/439/797 186/442/798 181/410/795
+f 194/374/799 200/1352/800 195/1351/801
+f 195/1351/801 200/1352/800 201/1353/802
+f 195/465/803 201/470/804 196/466/805
+f 196/466/805 201/470/804 202/471/806
+f 196/484/807 202/1355/808 197/1354/809
+f 197/1354/809 202/1355/808 203/1356/810
+f 197/1357/811 203/1359/812 198/1358/813
+f 198/1358/813 203/1359/812 204/1360/814
+f 204/1361/815 205/1362/816 198/621/817
+f 198/621/817 205/1362/816 199/622/818
+f 205/1364/819 200/1363/820 199/378/821
+f 199/378/821 200/1363/820 194/372/822
+f 206/1366/823 207/1367/824 200/418/825
+f 200/418/825 207/1367/824 201/1365/826
+f 207/475/827 208/476/828 201/470/829
+f 201/470/829 208/476/828 202/471/830
+f 208/515/831 209/1368/832 202/490/833
+f 202/490/833 209/1368/832 203/501/834
+f 203/491/835 209/1373/836 204/492/837
+f 204/492/837 209/1373/836 210/1374/838
+f 204/400/839 210/403/840 205/401/841
+f 205/401/841 210/403/840 211/404/842
+f 205/419/843 211/433/844 200/382/845
+f 200/382/845 211/433/844 206/429/846
+f 212/431/847 213/432/848 206/427/849
+f 206/427/849 213/432/848 207/428/850
+f 207/497/851 213/502/852 208/500/853
+f 208/500/853 213/502/852 214/506/854
+f 208/515/855 214/1369/856 209/1368/857
+f 209/1368/857 214/1369/856 215/1370/858
+f 209/508/859 215/517/860 210/513/861
+f 210/513/861 215/517/860 216/520/862
+f 216/623/863 217/624/864 210/403/865
+f 210/403/865 217/624/864 211/404/866
+f 217/644/867 212/635/868 211/433/869
+f 211/433/869 212/635/868 206/429/870
+f 218/1377/871 219/1378/872 212/488/873
+f 212/488/873 219/1378/872 213/505/874
+f 219/510/875 220/511/876 213/493/877
+f 213/493/877 220/511/876 214/499/878
+f 220/1371/879 221/1372/880 214/1369/881
+f 214/1369/881 221/1372/880 215/1370/882
+f 215/646/883 221/1379/884 216/663/885
+f 216/663/885 221/1379/884 222/1380/886
+f 216/658/887 222/664/888 217/662/889
+f 217/662/889 222/664/888 223/690/890
+f 217/644/891 223/1376/892 212/635/893
+f 212/635/893 223/1376/892 218/1375/894
+f 218/435/895 224/1382/896 219/1381/897
+f 219/510/898 224/514/899 220/511/900
+f 220/522/901 224/1384/902 221/1383/903
+f 221/527/904 224/686/905 222/683/906
+f 222/664/907 224/691/908 223/690/909
+f 223/436/910 224/437/911 218/434/912
+f 225/512/913 231/538/914 226/523/915
+f 226/523/915 231/538/914 232/550/916
+f 226/518/917 232/549/918 227/519/919
+f 227/519/919 232/549/918 233/551/920
+f 227/521/921 233/1077/922 228/552/923
+f 228/552/923 233/1077/922 234/1078/924
+f 234/408/925 235/420/926 228/406/927
+f 228/406/927 235/420/926 229/407/928
+f 235/614/929 236/620/930 229/581/931
+f 229/581/931 236/620/930 230/582/932
+f 236/1084/933 231/1083/934 230/696/935
+f 230/696/935 231/1083/934 225/692/936
+f 237/1086/937 238/1087/938 231/516/939
+f 231/516/939 238/1087/938 232/534/940
+f 238/556/941 239/557/942 232/549/943
+f 232/549/943 239/557/942 233/551/944
+f 239/1386/945 240/1387/946 233/528/947
+f 233/528/947 240/1387/946 234/1385/948
+f 234/529/949 240/568/950 235/530/951
+f 235/530/951 240/568/950 241/1388/952
+f 235/708/953 241/1061/954 236/728/955
+f 236/728/955 241/1061/954 242/1062/956
+f 236/532/957 242/1390/958 231/509/959
+f 231/509/959 242/1390/958 237/1389/960
+f 237/554/961 243/1392/962 238/1391/963
+f 238/558/964 243/560/965 239/559/966
+f 239/531/967 243/569/968 240/567/969
+f 240/421/970 243/1394/971 241/1393/972
+f 241/422/973 243/425/974 242/424/975
+f 242/535/976 243/536/977 237/533/978
+f 226/449/979 227/459/980 225/447/981
+f 227/459/980 228/460/982 225/447/981
+f 228/460/982 229/473/983 225/447/981
+f 229/473/983 230/482/984 225/447/981
+f 244/561/985 250/1395/986 245/564/987
+f 245/564/987 250/1395/986 251/1396/988
+f 245/562/989 251/1397/990 246/596/991
+f 246/596/991 251/1397/990 252/1398/992
+f 246/565/993 252/1400/994 247/566/995
+f 247/566/995 252/1400/994 253/1401/996
+f 253/1402/997 254/1403/998 247/729/999
+f 247/729/999 254/1403/998 248/730/1000
+f 254/1404/1001 255/1405/1002 248/430/1003
+f 248/430/1003 255/1405/1002 249/446/1004
+f 255/1408/1005 250/1407/1006 249/444/1007
+f 249/444/1007 250/1407/1006 244/426/1008
+f 250/583/1009 256/626/1010 251/625/1011
+f 251/1397/1012 256/1399/1013 252/1398/1014
+f 252/599/1015 256/603/1016 253/600/1017
+f 253/731/1018 256/733/1019 254/732/1020
+f 254/1404/1021 256/1406/1022 255/1405/1023
+f 255/448/1024 256/451/1025 250/445/1026
+f 245/595/1027 246/609/1028 244/592/1029
+f 246/609/1028 247/615/1030 244/592/1029
+f 247/615/1030 248/616/1031 244/592/1029
+f 248/616/1031 249/617/1032 244/592/1029
+f 257/563/1033 263/1410/1034 258/1409/1035
+f 258/627/1036 263/630/1037 259/628/1038
+f 259/618/1039 263/1412/1040 260/1411/1041
+f 260/639/1042 263/643/1043 261/642/1044
+f 261/744/1045 263/747/1046 262/746/1047
+f 262/570/1048 263/571/1049 257/537/1050
+f 258/454/1051 259/455/1052 257/452/1053
+f 259/455/1052 260/456/1054 257/452/1053
+f 260/456/1054 261/457/1055 257/452/1053
+f 261/457/1055 262/458/1056 257/452/1053
+f 264/572/1057 270/1413/1058 265/573/1059
+f 265/573/1059 270/1413/1058 271/1414/1060
+f 265/631/1061 271/671/1062 266/668/1063
+f 266/668/1063 271/671/1062 272/1415/1064
+f 266/666/1065 272/669/1066 267/667/1067
+f 267/667/1067 272/669/1066 273/670/1068
+f 273/1417/1069 274/1418/1070 267/645/1071
+f 267/645/1071 274/1418/1070 268/649/1072
+f 274/1420/1073 275/1421/1074 268/749/1075
+f 268/749/1075 275/1421/1074 269/1419/1076
+f 275/1423/1077 270/1422/1078 269/750/1079
+f 269/750/1079 270/1422/1078 264/748/1080
+f 270/574/1081 276/602/1082 271/601/1083
+f 271/671/1084 276/1416/1085 272/1415/1086
+f 272/652/1087 276/1425/1088 273/1424/1089
+f 273/656/1090 276/682/1091 274/674/1092
+f 274/752/1093 276/1427/1094 275/1426/1095
+f 275/753/1096 276/754/1097 270/751/1098
+f 265/467/1099 266/494/1100 264/462/1101
+f 266/494/1100 267/498/1102 264/462/1101
+f 267/498/1102 268/503/1103 264/462/1101
+f 268/503/1103 269/504/1104 264/462/1101
+f 277/705/1105 283/1428/1106 278/938/1107
+f 278/938/1107 283/1428/1106 284/1429/1108
+f 278/673/1109 284/1430/1110 279/699/1111
+f 279/699/1111 284/1430/1110 285/1431/1112
+f 279/608/1113 285/1432/1114 280/619/1115
+f 280/619/1115 285/1432/1114 286/1433/1116
+f 280/610/1117 286/1063/1118 281/613/1119
+f 281/613/1119 286/1063/1118 287/1064/1120
+f 287/1434/1121 288/1435/1122 281/755/1123
+f 281/755/1123 288/1435/1122 282/771/1124
+f 288/1437/1125 283/1436/1126 282/1003/1127
+f 282/1003/1127 283/1436/1126 277/935/1128
+f 289/698/1129 290/703/1130 283/693/1131
+f 283/693/1131 290/703/1130 284/695/1132
+f 290/702/1133 291/709/1134 284/700/1135
+f 284/700/1135 291/709/1134 285/701/1136
+f 291/585/1137 292/586/1138 285/555/1139
+f 285/555/1139 292/586/1138 286/584/1140
+f 286/634/1141 292/641/1142 287/640/1143
+f 287/640/1143 292/641/1142 293/653/1144
+f 287/721/1145 293/735/1146 288/722/1147
+f 288/722/1147 293/735/1146 294/756/1148
+f 288/605/1149 294/607/1150 283/604/1151
+f 283/604/1151 294/607/1150 289/606/1152
+f 295/1053/1153 296/1054/1154 289/724/1155
+f 289/724/1155 296/1054/1154 290/743/1156
+f 290/702/1157 296/711/1158 291/709/1159
+f 291/709/1159 296/711/1158 297/713/1160
+f 291/585/1161 297/587/1162 292/586/1163
+f 292/586/1163 297/587/1162 298/588/1164
+f 292/654/1165 298/1055/1166 293/657/1167
+f 293/657/1167 298/1055/1166 299/1056/1168
+f 299/775/1169 300/778/1170 293/735/1171
+f 293/735/1171 300/778/1170 294/756/1172
+f 300/612/1173 295/611/1174 294/607/1175
+f 294/607/1175 295/611/1174 289/606/1176
+f 301/1059/1177 302/1060/1178 295/734/1179
+f 295/734/1179 302/1060/1178 296/759/1180
+f 302/760/1181 303/1041/1182 296/757/1183
+f 296/757/1183 303/1041/1182 297/758/1184
+f 303/1023/1185 304/1024/1186 297/587/1187
+f 297/587/1187 304/1024/1186 298/588/1188
+f 298/782/1189 304/1069/1190 299/800/1191
+f 299/800/1191 304/1069/1190 305/1070/1192
+f 299/792/1193 305/806/1194 300/799/1195
+f 300/799/1195 305/806/1194 306/1049/1196
+f 300/612/1197 306/632/1198 295/611/1199
+f 295/611/1199 306/632/1198 301/629/1200
+f 301/766/1201 307/1439/1202 302/1438/1203
+f 302/760/1204 307/1042/1205 303/1041/1206
+f 303/589/1207 307/591/1208 304/590/1209
+f 304/659/1210 307/661/1211 305/660/1212
+f 305/806/1213 307/1050/1214 306/1049/1215
+f 306/767/1216 307/768/1217 301/765/1218
+f 308/769/1219 314/1440/1220 309/770/1221
+f 309/770/1221 314/1440/1220 315/1441/1222
+f 309/593/1223 315/597/1224 310/594/1225
+f 310/594/1225 315/597/1224 316/598/1226
+f 310/761/1227 316/787/1228 311/784/1229
+f 311/784/1229 316/787/1228 317/788/1230
+f 317/818/1231 318/1074/1232 311/672/1233
+f 311/672/1233 318/1074/1232 312/688/1234
+f 318/783/1235 319/791/1236 312/780/1237
+f 312/780/1237 319/791/1236 313/781/1238
+f 319/1082/1239 314/1081/1240 313/814/1241
+f 313/814/1241 314/1081/1240 308/810/1242
+f 320/1442/1243 321/1443/1244 314/796/1245
+f 314/796/1245 321/1443/1244 315/797/1246
+f 321/785/1247 322/786/1248 315/597/1249
+f 315/597/1249 322/786/1248 316/598/1250
+f 322/675/1251 323/1067/1252 316/633/1253
+f 316/633/1253 323/1067/1252 317/637/1254
+f 317/689/1255 323/1444/1256 318/706/1257
+f 318/706/1257 323/1444/1256 324/1445/1258
+f 318/817/1259 324/1065/1260 319/820/1261
+f 319/820/1261 324/1065/1260 325/1066/1262
+f 319/678/1263 325/1447/1264 314/665/1265
+f 314/665/1265 325/1447/1264 320/1446/1266
+f 320/813/1267 326/1036/1268 321/1035/1269
+f 321/636/1270 326/1057/1271 322/676/1272
+f 322/725/1273 326/745/1274 323/726/1275
+f 323/727/1276 326/1022/1277 324/1021/1278
+f 324/680/1279 326/1085/1280 325/684/1281
+f 325/681/1282 326/801/1283 320/679/1284
+f 309/647/1285 310/648/1286 308/638/1287
+f 310/648/1286 311/650/1288 308/638/1287
+f 311/650/1288 312/651/1289 308/638/1287
+f 312/651/1289 313/655/1290 308/638/1287
+f 327/821/1291 333/1448/1292 328/827/1293
+f 328/827/1293 333/1448/1292 334/1449/1294
+f 328/811/1295 334/815/1296 329/812/1297
+f 329/812/1297 334/815/1296 335/816/1298
+f 329/677/1299 335/1450/1300 330/687/1301
+f 330/687/1301 335/1450/1300 336/1451/1302
+f 336/1452/1303 337/1453/1304 330/822/1305
+f 330/822/1305 337/1453/1304 331/833/1306
+f 337/828/1307 338/832/1308 331/824/1309
+f 331/824/1309 338/832/1308 332/825/1310
+f 338/1455/1311 333/1454/1312 332/707/1313
+f 332/707/1313 333/1454/1312 327/685/1314
+f 333/847/1315 339/1031/1316 334/1030/1317
+f 334/815/1318 339/823/1319 335/816/1320
+f 335/697/1321 339/710/1322 336/704/1323
+f 336/1015/1324 339/1017/1325 337/1016/1326
+f 337/828/1327 339/834/1328 338/832/1329
+f 338/716/1330 339/717/1331 333/715/1332
+f 328/773/1333 329/774/1334 327/772/1335
+f 329/774/1334 330/776/1336 327/772/1335
+f 330/776/1336 331/777/1337 327/772/1335
+f 331/777/1337 332/779/1338 327/772/1335
+f 340/900/1339 346/1046/1340 341/1045/1341
+f 341/848/1342 346/862/1343 342/849/1344
+f 342/712/1345 346/723/1346 343/714/1347
+f 343/802/1348 346/807/1349 344/805/1350
+f 344/861/1351 346/873/1352 345/872/1353
+f 345/845/1354 346/846/1355 340/844/1356
+f 341/719/1357 342/740/1358 340/718/1359
+f 342/740/1358 343/741/1360 340/718/1359
+f 343/741/1360 344/742/1361 340/718/1359
+f 344/742/1361 345/763/1362 340/718/1359
+f 347/903/1363 353/1456/1364 348/918/1365
+f 348/918/1365 353/1456/1364 354/1457/1366
+f 348/863/1367 354/1020/1368 349/879/1369
+f 349/879/1369 354/1020/1368 355/1458/1370
+f 349/864/1371 355/1018/1372 350/878/1373
+f 350/878/1373 355/1018/1372 356/1019/1374
+f 356/1460/1375 357/1461/1376 350/808/1377
+f 350/808/1377 357/1461/1376 351/809/1378
+f 357/1463/1379 358/1464/1380 351/875/1381
+f 351/875/1381 358/1464/1380 352/1462/1382
+f 358/1466/1383 353/1465/1384 352/876/1385
+f 352/876/1385 353/1465/1384 347/874/1386
+f 353/919/1387 359/921/1388 354/920/1389
+f 354/1020/1390 359/1459/1391 355/1458/1392
+f 355/854/1393 359/866/1394 356/855/1395
+f 356/842/1396 359/856/1397 357/843/1398
+f 357/883/1399 359/1468/1400 358/1467/1401
+f 358/887/1402 359/888/1403 353/877/1404
+f 348/794/1405 349/795/1406 347/764/1407
+f 349/795/1406 350/798/1408 347/764/1407
+f 350/798/1408 351/803/1409 347/764/1407
+f 351/803/1409 352/804/1410 347/764/1407
+f 360/857/1411 411/976/1412 361/858/1413
+f 361/868/1414 378/890/1415 360/867/1416
+f 360/867/1416 378/890/1415 379/899/1417
+f 363/930/1418 415/986/1419 382/945/1420
+f 7/45/1421 113/252/1422 114/1300/1423
+f 111/120/1424 365/871/1425 116/860/1426
+f 277/694/1427 13/15/1428 282/934/1429
+f 280/1142/1430 366/1143/1431 279/1141/1432
+f 367/1163/1433 14/720/1434 368/1164/1435
+f 368/1164/1435 14/720/1434 15/1005/1436
+f 368/1167/1437 15/994/1438 369/1168/1439
+f 369/1168/1439 15/994/1438 16/996/1440
+f 16/789/1441 17/995/1442 369/1169/1443
+f 369/1169/1443 17/995/1442 370/1170/1444
+f 17/886/1445 18/1171/1446 370/1173/1447
+f 370/1173/1447 18/1171/1446 371/1174/1448
+f 18/904/1449 19/987/1450 371/1175/1451
+f 371/1175/1451 19/987/1450 372/1176/1452
+f 19/39/1453 20/486/1454 372/1470/1455
+f 372/1470/1455 20/486/1454 194/1052/1456
+f 20/486/1454 199/1469/1457 194/1052/1456
+f 20/44/1458 21/47/1459 199/826/1460
+f 199/826/1460 21/47/1459 198/819/1461
+f 14/22/1462 367/1471/1463 21/487/1464
+f 197/489/1465 198/1004/1466 367/1471/1463
+f 198/1004/1466 21/487/1464 367/1471/1463
+f 374/1472/1467 375/1473/1468 22/33/1469
+f 22/33/1469 375/1473/1468 26/989/1470
+f 362/889/1471 413/974/1472 380/911/1473
+f 363/891/1474 382/912/1475 415/978/1476
+f 413/985/1477 362/929/1478 380/944/1479
+f 411/1475/1480 360/736/1481 379/1474/1482
+f 377/835/1483 384/1476/1484 373/830/1485
+f 373/830/1485 384/1476/1484 385/1477/1486
+f 389/1479/1487 390/1480/1488 383/837/1489
+f 383/837/1489 390/1480/1488 384/1478/1490
+f 390/916/1491 391/931/1492 384/850/1493
+f 384/850/1493 391/931/1492 385/901/1494
+f 391/897/1495 392/898/1496 385/865/1497
+f 385/865/1497 392/898/1496 386/896/1498
+f 386/839/1499 392/1487/1500 387/840/1501
+f 387/840/1501 392/1487/1500 393/1488/1502
+f 387/923/1503 393/928/1504 388/926/1505
+f 388/926/1505 393/928/1504 394/941/1506
+f 388/881/1507 394/894/1508 383/880/1509
+f 383/880/1509 394/894/1508 389/892/1510
+f 395/922/1511 396/924/1512 389/902/1513
+f 389/902/1513 396/924/1512 390/915/1514
+f 390/916/1515 396/1481/1516 391/931/1517
+f 391/931/1517 396/1481/1516 397/1482/1518
+f 391/897/1519 397/1483/1520 392/898/1521
+f 392/898/1521 397/1483/1520 398/1484/1522
+f 392/852/1523 398/882/1524 393/853/1525
+f 393/853/1525 398/882/1524 399/884/1526
+f 399/1075/1527 400/1076/1528 393/928/1529
+f 393/928/1529 400/1076/1528 394/941/1530
+f 400/1490/1531 395/1489/1532 394/894/1533
+f 394/894/1533 395/1489/1532 389/892/1534
+f 401/1493/1535 402/1494/1536 395/970/1537
+f 395/970/1537 402/1494/1536 396/975/1538
+f 405/1495/1539 399/966/1540 409/1496/1541
+f 409/1496/1541 399/966/1540 404/971/1542
+f 398/927/1543 404/971/1542 399/966/1540
+f 400/1490/1544 406/1492/1545 395/1489/1546
+f 395/1489/1546 406/1492/1545 401/1491/1547
+f 402/979/1548 407/981/1549 408/982/1550
+f 412/1034/1551 404/1033/1552 403/1032/1553
+f 414/1497/1554 405/933/1555 409/946/1556
+f 399/957/1557 405/968/1558 400/965/1559
+f 406/969/1560 400/965/1559 410/977/1561
+f 400/965/1559 405/968/1558 410/977/1561
+f 406/1013/1562 411/1014/1563 379/793/1564
+f 373/829/1565 385/838/1566 374/831/1567
+f 374/831/1567 385/838/1566 386/841/1568
+f 387/913/1569 388/914/1570 375/893/1571
+f 375/893/1571 388/914/1570 377/905/1572
+f 386/947/1573 387/948/1574 374/936/1575
+f 374/936/1575 387/948/1574 375/937/1576
+f 402/964/1577 401/963/1578 378/908/1579
+f 378/908/1579 401/963/1578 379/909/1580
+f 412/984/1581 403/980/1582 408/982/1583
+f 398/1484/1584 397/1483/1585 404/1486/1586
+f 404/1486/1586 397/1483/1585 403/1485/1587
+f 409/939/1588 404/932/1589 412/940/1590
+f 410/977/1591 405/968/1592 414/1040/1593
+f 15/20/1594 14/16/1595 376/1006/1596
+f 376/1006/1596 14/16/1595 23/46/1597
+f 377/1498/1598 17/111/1599 16/64/1600
+f 19/31/1601 373/1189/1602 22/988/1603
+f 373/1189/1602 374/1190/1604 22/988/1603
+f 24/113/1605 377/1000/1606 27/119/1607
+f 23/112/1608 27/119/1607 376/999/1609
+f 377/1000/1606 376/999/1609 27/119/1607
+f 361/917/1610 411/983/1611 378/943/1612
+f 375/990/1613 377/991/1614 26/36/1615
+f 26/36/1615 377/991/1614 25/35/1616
+f 377/906/1617 383/910/1618 384/925/1619
+f 377/790/1620 388/851/1621 383/836/1622
+f 402/979/1623 408/982/1624 396/972/1625
+f 408/982/1624 403/980/1626 396/972/1625
+f 403/980/1626 397/973/1627 396/972/1625
+f 410/977/1628 411/1039/1629 406/969/1630
+f 379/793/1631 401/895/1632 406/1013/1633
+f 378/907/1634 407/967/1635 402/942/1636

+ 1 - 2
examples/webgl_camera.html

@@ -123,8 +123,7 @@
 					y = THREE.Math.randFloatSpread( 2000 );
 					z = THREE.Math.randFloatSpread( 2000 );
 
-					var p = new THREE.Vector3( x, y, z );
-					geo.vertices.push( new THREE.Vertex( p ) );
+					geo.vertices.push( new THREE.Vertex( x, y, z ) );
 
 				}
 

+ 4 - 4
examples/webgl_custom_attributes_particles.html

@@ -138,10 +138,10 @@
 
 			for ( var i = 0; i < 100000; i++ ) {
 
-				vector = new THREE.Vector3( Math.random() * 2 - 1, Math.random() * 2 - 1, Math.random() * 2 - 1 );
-				vector.multiplyScalar( radius );
+				var vertex = new THREE.Vertex( Math.random() * 2 - 1, Math.random() * 2 - 1, Math.random() * 2 - 1 );
+				vertex.multiplyScalar( radius );
 
-				geometry.vertices.push( new THREE.Vertex( vector ) );
+				geometry.vertices.push( vertex );
 
 			}
 
@@ -160,7 +160,7 @@
 				values_size[ v ] = 10;
 				values_color[ v ] = new THREE.Color( 0xffaa00 );
 
-				if ( vertices[ v ].position.x < 0 )
+				if ( vertices[ v ].x < 0 )
 					values_color[ v ].setHSV( 0.5 + 0.1 * ( v / vertices.length ), 0.7, 0.9 );
 				else
 					values_color[ v ].setHSV( 0.0 + 0.1 * ( v / vertices.length ), 0.9, 0.9 );

+ 2 - 2
examples/webgl_custom_attributes_particles2.html

@@ -152,12 +152,12 @@
 
 				if ( v < vc1 ) {
 
-					values_color[ v ].setHSV( 0.01 + 0.1 * ( v / vc1 ), 0.99, ( vertices[ v ].position.y + radius ) / ( 2 *radius ) );
+					values_color[ v ].setHSV( 0.01 + 0.1 * ( v / vc1 ), 0.99, ( vertices[ v ].y + radius ) / ( 2 *radius ) );
 
 				} else {
 
 					values_size[ v ] = 40;
-					values_color[ v ].setHSV( 0.6, 0.75, 0.5 + vertices[ v ].position.y / ( 0.8 * radius ) );
+					values_color[ v ].setHSV( 0.6, 0.75, 0.5 + vertices[ v ].y / ( 0.8 * radius ) );
 
 				}
 

+ 6 - 6
examples/webgl_custom_attributes_particles3.html

@@ -140,15 +140,15 @@
 
 			for ( var i = 0; i < 100000; i ++ ) {
 
-				vector = new THREE.Vector3( Math.random() * 2 - 1, Math.random() * 2 - 1, Math.random() * 2 - 1 );
+				var vertex = new THREE.Vertex( Math.random() * 2 - 1, Math.random() * 2 - 1, Math.random() * 2 - 1 );
 
-				vector.multiplyScalar( radius );
+				vertex.multiplyScalar( radius );
 
-				if ( ( vector.x > inner || vector.x < -inner ) ||
-				     ( vector.y > inner || vector.y < -inner ) ||
-				     ( vector.z > inner || vector.z < -inner )  )
+				if ( ( vertex.x > inner || vertex.x < -inner ) ||
+				     ( vertex.y > inner || vertex.y < -inner ) ||
+				     ( vertex.z > inner || vertex.z < -inner )  )
 
-				geometry.vertices.push( new THREE.Vertex( vector ) );
+				geometry.vertices.push( vertex );
 
 			}
 

+ 1 - 1
examples/webgl_geometry_colors.html

@@ -110,7 +110,7 @@
 
 						vertexIndex = f[ faceIndices[ j ] ];
 
-						p = geometry.vertices[ vertexIndex ].position;
+						p = geometry.vertices[ vertexIndex ];
 
 						color = new THREE.Color( 0xffffff );
 						color.setHSV( ( p.y / radius + 1 ) / 2, 1.0, 1.0 );

+ 2 - 2
examples/webgl_geometry_dynamic.html

@@ -91,7 +91,7 @@
 
 				for ( i = 0, il = geometry.vertices.length; i < il; i ++ ) {
 
-					geometry.vertices[ i ].position.y = 35 * Math.sin( i/2 );
+					geometry.vertices[ i ].y = 35 * Math.sin( i/2 );
 
 				}
 
@@ -143,7 +143,7 @@
 
 				for ( var i = 0, l = geometry.vertices.length; i < l; i ++ ) {
 
-					geometry.vertices[ i ].position.y = 35 * Math.sin( i / 5 + ( time + i ) / 7 );
+					geometry.vertices[ i ].y = 35 * Math.sin( i / 5 + ( time + i ) / 7 );
 
 				}
 

+ 21 - 30
examples/webgl_geometry_extrude_shapes.html

@@ -114,21 +114,11 @@
           new THREE.Vector3( 10, 60, 49),
           new THREE.Vector3( 25, 80, 40)
 
-          // new THREE.Vector3( 0, 12, 83),
-          // new THREE.Vector3( 0, 20, 67),
-          // new THREE.Vector3( 0, 40, 99),
-          // new THREE.Vector3( 0, 60, 49),
-          // new THREE.Vector3( 0, 80, 40)
-
-          // new THREE.Vector3( 12, 83, 0 ),
-          // new THREE.Vector3( 20, 67, 0 ),
-          // new THREE.Vector3( 40, 99, 0 ),
-          // new THREE.Vector3( 60, 49, 0 ),
-          // new THREE.Vector3( 80, 40, 0 )
-          ]);
-
-            var pipeSpline = new THREE.SplineCurve3([
-        new THREE.Vector3(0, 10, -10), new THREE.Vector3(10, 0, -10), new THREE.Vector3(20, 0, 0), new THREE.Vector3(30, 0, 10), new THREE.Vector3(30, 0, 20), new THREE.Vector3(20, 0, 30), new THREE.Vector3(10, 0, 30), new THREE.Vector3(0, 0, 30), new THREE.Vector3(-10, 10, 30), new THREE.Vector3(-10, 20, 30), new THREE.Vector3(0, 30, 30), new THREE.Vector3(10, 30, 30), new THREE.Vector3(20, 30, 15), new THREE.Vector3(10, 30, 10), new THREE.Vector3(0, 30, 10), new THREE.Vector3(-10, 20, 10), new THREE.Vector3(-10, 10, 10), new THREE.Vector3(0, 0, 10), new THREE.Vector3(10, -10, 10), new THREE.Vector3(20, -15, 10), new THREE.Vector3(30, -15, 10), new THREE.Vector3(40, -15, 10), new THREE.Vector3(50, -15, 10), new THREE.Vector3(60, 0, 10), new THREE.Vector3(70, 0, 0), new THREE.Vector3(80, 0, 0), new THREE.Vector3(90, 0, 0), new THREE.Vector3(100, 0, 0)]);
+        ]);
+
+        var pipeSpline = new THREE.SplineCurve3([
+        
+          new THREE.Vector3(0, 10, -10), new THREE.Vector3(10, 0, -10), new THREE.Vector3(20, 0, 0), new THREE.Vector3(30, 0, 10), new THREE.Vector3(30, 0, 20), new THREE.Vector3(20, 0, 30), new THREE.Vector3(10, 0, 30), new THREE.Vector3(0, 0, 30), new THREE.Vector3(-10, 10, 30), new THREE.Vector3(-10, 20, 30), new THREE.Vector3(0, 30, 30), new THREE.Vector3(10, 30, 30), new THREE.Vector3(20, 30, 15), new THREE.Vector3(10, 30, 10), new THREE.Vector3(0, 30, 10), new THREE.Vector3(-10, 20, 10), new THREE.Vector3(-10, 10, 10), new THREE.Vector3(0, 0, 10), new THREE.Vector3(10, -10, 10), new THREE.Vector3(20, -15, 10), new THREE.Vector3(30, -15, 10), new THREE.Vector3(40, -15, 10), new THREE.Vector3(50, -15, 10), new THREE.Vector3(60, 0, 10), new THREE.Vector3(70, 0, 0), new THREE.Vector3(80, 0, 0), new THREE.Vector3(90, 0, 0), new THREE.Vector3(100, 0, 0)]);
 
         var sampleClosedSpline = new THREE.ClosedSplineCurve3([
           new THREE.Vector3(0, -40, -40),
@@ -163,11 +153,6 @@
         var rectLength = 12, rectWidth = 4;
 
         var rectShape = new THREE.Shape();
-        // rectShape.moveTo( 0,0 );
-        // rectShape.lineTo( 0, rectWidth );
-        // rectShape.lineTo( rectLength, rectWidth );
-        // rectShape.lineTo( rectLength, 0 );
-        // rectShape.lineTo( 0, 0 );
 
         rectShape.moveTo( -rectLength/2, -rectWidth/2 );
         rectShape.lineTo( -rectLength/2, rectWidth/2 );
@@ -176,6 +161,21 @@
         rectShape.lineTo( -rectLength/2, -rectLength/2 );
 
 
+       
+        
+        var pts = [], starPoints = 5, l;
+        for (i=0; i<starPoints*2;i++) {
+          if (i%2==1) {
+            l = 5;
+          } else {
+            l = 10;
+          }
+
+          var a = i / starPoints * Math.PI;
+          pts.push(new THREE.Vector2(Math.cos(a) * l,Math.sin(a) * l ));
+        }
+      var starShape = new THREE.Shape(pts);
+
         // Smiley
 
         var smileyShape = new THREE.Shape();
@@ -193,12 +193,6 @@
         smileyShape.holes.push( smileyEye2Path );
 
         var smileyMouthPath = new THREE.Path();
-        // ugly box mouth
-        // smileyMouthPath.moveTo( 20, 40 );
-        // smileyMouthPath.lineTo( 60, 40 );
-        // smileyMouthPath.lineTo( 60, 60 );
-        // smileyMouthPath.lineTo( 20, 60 );
-        // smileyMouthPath.lineTo( 20, 40 );
 
         smileyMouthPath.moveTo( 20, 40 );
         smileyMouthPath.quadraticCurveTo( 40, 60, 60, 40 );
@@ -208,10 +202,7 @@
 
         smileyShape.holes.push( smileyMouthPath );
 
-
-
-
-        var circle3d = rectShape.extrude( extrudeSettings ); //circleShape rectShape smileyShape
+        var circle3d = starShape.extrude( extrudeSettings ); //circleShape rectShape smileyShape starShape
         // var circle3d = new THREE.ExtrudeGeometry(circleShape, extrudeBend, extrudeSettings );
         
         var tube = new THREE.TubeGeometry(extrudeSettings.extrudePath, 150, 4, 5, false, true);

+ 29 - 343
examples/webgl_geometry_extrude_splines.html

@@ -20,336 +20,17 @@
     <script src="../src/extras/core/Curve.js"></script>
     <script src="../src/extras/geometries/TubeGeometry.js"></script>
     <script src="../src/extras/helpers/CameraHelper.js"></script>
-    <script src="js/Stats.js"></script>
-
-
-    <script>
-
-    // Lets define some curves
-    THREE.Curves = {};
-
-    // Formula from http://mathworld.wolfram.com/HeartCurve.html
-
-    THREE.Curves.HeartCurve = THREE.Curve.create(
-
-      function ( s ) {
-
-        this.scale = (s === undefined) ? 5 : s;
-
-      },
-
-      function ( t ) {
-
-          t *= 2 * Math.PI;
-
-          var tx = 16 * Math.pow(Math.sin(t), 3);
-              ty = 13 * Math.cos(t)
-                - 5 * Math.cos(2 * t)
-                - 2 * Math.cos(3 * t)
-                - Math.cos(4 * t ),
-              tz = 0;
-
-          return new THREE.Vector3(tx, ty, tz).multiplyScalar(this.scale);
-
-      }
-
-    );
-
-
-
-    // Viviani's Curve
-    // http://en.wikipedia.org/wiki/Viviani%27s_curve
-
-    THREE.Curves.VivianiCurve = THREE.Curve.create(
-
-      function( radius ) {
-
-          this.radius = radius;
-      },
-
-      function( t ) {
-
-          t = t * 4 * Math.PI; // Normalized to 0..1
-          var a = this.radius / 2;
-          var tx = a * (1 + Math.cos(t)),
-              ty = a * Math.sin(t),
-              tz = 2 * a * Math.sin(t / 2);
-
-          return new THREE.Vector3(tx, ty, tz);
-
-      }
-
-    );
-
-
-    THREE.Curves.KnotCurve = THREE.Curve.create(
-
-    function() {
-
-    },
-
-    function(t) {
-
-        t *= 2 * Math.PI;
-
-        var R = 10;
-        var s = 50;
-        var tx = s * Math.sin(t),
-            ty = Math.cos(t) * (R + s * Math.cos(t)),
-            tz = Math.sin(t) * (R + s * Math.cos(t));
-
-        return new THREE.Vector3(tx, ty, tz);
-
-    }
-
-    );
-
-    THREE.Curves.HelixCurve = THREE.Curve.create(
-
-    function() {
-
-    },
-
-    function(t) {
-
-        var a = 30; // radius
-        var b = 150; //height
-        var t2 = 2 * Math.PI * t * b / 30;
-        var tx = Math.cos(t2) * a,
-            ty = Math.sin(t2) * a,
-            tz = b * t;
-
-        return new THREE.Vector3(tx, ty, tz);
-
-    }
-
-    );
-
-    // Replacement for TorusKnotGeometry?
-
-    THREE.Curves.TrefoilKnot = THREE.Curve.create(
-
-    function(s) {
-
-      this.scale = (s === undefined) ? 10 : s;
-
-    },
-
-    function(t) {
-
-        t *= Math.PI * 2;
-        var tx = (2 + Math.cos(3 * t)) * Math.cos(2 * t),
-        ty = (2 + Math.cos(3* t)) * Math.sin(2 * t),
-        tz = Math.sin(3 * t);
-
-        return new THREE.Vector3(tx, ty, tz).multiplyScalar(this.scale);
-
-    }
-
-    );
-
-    // Formulas from http://mathdl.maa.org/images/upload_library/23/stemkoski/knots/page6.html
-
-    THREE.Curves.TorusKnot = THREE.Curve.create(
-
-    function(s) {
-
-      this.scale = (s === undefined) ? 10 : s;
-
-    },
-
-    function(t) {
-
-      var p = 3, q = 4;
-        t *= Math.PI * 2;
-        var tx = (2 + Math.cos(q * t)) * Math.cos(p * t),
-        ty = (2 + Math.cos(q* t)) * Math.sin(p * t),
-        tz = Math.sin(q * t);
-
-        return new THREE.Vector3(tx, ty, tz).multiplyScalar(this.scale);
-
-    }
-
-    );
-
-
-    THREE.Curves.CinquefoilKnot = THREE.Curve.create(
-
-    function(s) {
-
-      this.scale = (s === undefined) ? 10 : s;
-
-    },
-
-    function(t) {
-
-      var p = 2, q = 5;
-        t *= Math.PI * 2;
-        var tx = (2 + Math.cos(q * t)) * Math.cos(p * t),
-        ty = (2 + Math.cos(q* t)) * Math.sin(p * t),
-        tz = Math.sin(q * t);
-
-        return new THREE.Vector3(tx, ty, tz).multiplyScalar(this.scale);
-
-    }
-
-    );
-
-
-    THREE.Curves.TrefoilPolynomialKnot = THREE.Curve.create(
-
-    function(s) {
-
-      this.scale = (s === undefined) ? 10 : s;
-
-    },
-
-    function(t) {
-
-        t = t * 4 - 2;
-        var tx = Math.pow(t, 3) - 3 * t,
-        ty = Math.pow(t, 4) - 4 * t * t,
-        tz = 1/ 5 * Math.pow(t, 5) - 2 * t;
-
-        return new THREE.Vector3(tx, ty, tz).multiplyScalar(this.scale);
-
-    }
-
-    );
-
-    var sin = Math.sin, pow = Math.pow, cos = Math.cos;
-    // var scaleTo = function(x, y) {
-    //   var r = y - x;
-    //   return function(t) {
-    //     t * r + x;
-    //   };
-    // }
-
-    var scaleTo = function(x, y, t) {
-
-      var r = y - x;
-      return t * r + x;
-
-    }
-
-    THREE.Curves.FigureEightPolynomialKnot = THREE.Curve.create(
-
-    function(s) {
-
-      this.scale = (s === undefined) ? 1 : s;
-
-    },
-
-    function(t) {
-
-        t = scaleTo(-4,4, t);
-        var tx = 2 / 5 * t * (t * t - 7) * (t * t - 10),
-        ty = pow(t, 4) - 13 * t * t,
-        tz = 1/10 * t * (t * t - 4) * (t * t - 9) * (t * t - 12);
-
-        return new THREE.Vector3(tx, ty, tz).multiplyScalar(this.scale);
-
-    }
-
-    );
-
-    // When there's time, try more formulas at http://mathdl.maa.org/images/upload_library/23/stemkoski/knots/page4.html
-
-
-    //http://www.mi.sanu.ac.rs/vismath/taylorapril2011/Taylor.pdf
-
-    THREE.Curves.DecoratedTorusKnot4a = THREE.Curve.create(
-
-    function(s) {
-
-      this.scale = (s === undefined) ? 40 : s;
-
-    },
-
-    function(t) {
-
-        t *= Math.PI * 2;
-        var
-        x = cos(2*t) * (1+0.6*(cos(5*t) + 0.75*cos(10*t))),
-         y = sin(2*t) * (1+0.6*(cos(5*t) + 0.75*cos(10*t))),
-          z = 0.35*sin(5*t);
-
-        return new THREE.Vector3(x, y, z).multiplyScalar(this.scale);
-
-    }
-
-    );
-
-
-    THREE.Curves.DecoratedTorusKnot4b = THREE.Curve.create(
-
-    function(s) {
-
-      this.scale = (s === undefined) ? 40 : s;
-
-    },
-
-    function(t) {
-        var fi = t  * Math.PI * 2;
-        var	x = cos(2*fi) * (1 + 0.45*cos(3*fi) + 0.4*cos(9*fi)),
-			y = sin(2*fi) * (1 + 0.45*cos(3*fi) + 0.4*cos(9*fi)),
-			z = 0.2*sin(9*fi);
-
-        return new THREE.Vector3(x, y, z).multiplyScalar(this.scale);
-
-    }
-
-    );
-
-
-    THREE.Curves.DecoratedTorusKnot5a = THREE.Curve.create(
-
-    function(s) {
-
-      this.scale = (s === undefined) ? 40 : s;
-
-    },
-
-    function(t) {
-
-        var fi = t  * Math.PI * 2;
-        var x = cos(3*fi) * (1 + 0.3*cos(5*fi) + 0.5*cos(10*fi)),
-			y = sin(3*fi) * (1 + 0.3*cos(5*fi) + 0.5*cos(10*fi)),
-			z = 0.2*sin(20*fi);
-
-        return new THREE.Vector3(x, y, z).multiplyScalar(this.scale);
-
-    }
-
-    );
-
-    THREE.Curves.DecoratedTorusKnot5c = THREE.Curve.create(
-
-    function(s) {
-
-      this.scale = (s === undefined) ? 40 : s;
-
-    },
-
-    function(t) {
-
-        var fi = t  * Math.PI * 2;
-        var x = cos(4*fi) * (1 + 0.5*(cos(5*fi) + 0.4*cos(20*fi))),
-			y = sin(4*fi) * (1 + 0.5*(cos(5*fi) + 0.4*cos(20*fi))),
-			z = 0.35*sin(15*fi);
-
-        return new THREE.Vector3(x, y, z).multiplyScalar(this.scale);
-
-    }
-
-    );
 
+    <!-- where curves formulas are defined -->
+    <script src="js/CurveExtras.js"></script>
 
+    <script src="js/Stats.js"></script>
 
 
+    <script>
     var container, stats;
 
-    var camera, scene, renderer, splineCamera, cameraHelper, cameraPos;
+    var camera, scene, renderer, splineCamera, cameraHelper, cameraEye;
 
     var text, plane;
 
@@ -377,6 +58,7 @@
       new THREE.Vector3(0, -40, 40),
     ]);
 
+    // Keep a diction of Curve instances
     var splines = {
       HeartCurve: new THREE.Curves.HeartCurve(3.5),
       VivianiCurve: new THREE.Curves.VivianiCurve(70),
@@ -405,22 +87,18 @@
     var s;
     for ( s in splines ) {
       dropdown += '<option value="' + s + '"';
-
-      // dropdown += (geometryIndex == i)  ? ' selected' : '';
-
       dropdown += '>' + s + '</option>';
     }
 
     dropdown += '</select>';
 
-
-
     var closed2 = true;
     var debug = true;
     var parent;
     var tube, tubeMesh;
     var animation = false, lookAhead = false;
     var scale;
+    var showCameraHelper = true;
 
     function addTube() {
 
@@ -469,16 +147,24 @@
 
         if (geometry.debug) tubeMesh.add(geometry.debug);
 
-        // tubeMesh.position.set(x, y, z);
-        // tubeMesh.rotation.set(rx, ry, rz);
         //mesh.children[0].doubleSided = true;
         parent.add(tubeMesh);
 
     }
 
-    function animateCamera() {
-      animation = document.getElementById('animation').checked;
+    function animateCamera(toggle) {
+
+      if (toggle) {
+        animation = !animation;
+        document.getElementById('animation').value = 'Camera Spline Animation View: ' + (animation? 'ON': 'OFF');
+      }
+      
       lookAhead = document.getElementById('lookAhead').checked;
+
+      showCameraHelper = document.getElementById('cameraHelper').checked;
+
+      cameraHelper.children[0].visible = showCameraHelper;
+      cameraEye.visible = showCameraHelper;
     }
 
 
@@ -501,11 +187,10 @@
 
       info.innerHTML += '<br/>Scale: <select id="scale" onchange="setScale()"><option>1</option><option>2</option><option selected>4</option><option>6</option><option>10</option></select>';
       info.innerHTML += '<br/>Extrusion Segments: <select onchange="addTube()" id="segments"><option>50</option><option selected>100</option><option>200</option><option>400</option></select>';
-      info.innerHTML += '<br/>Debug: <input id="debug" type="checkbox" onchange="addTube()" checked /> Closed:<input id="closed" onchange="addTube()" type="checkbox" checked />';
-
       info.innerHTML += '<br/>Radius Segments: <select id="radiusSegments" onchange="addTube()"><option>1</option><option>2</option><option selected>3</option><option>4</option><option>5</option><option>6</option><option>8</option><option>12</option></select>';
+      info.innerHTML += '<br/>Debug normals: <input id="debug" type="checkbox" onchange="addTube()" checked /> Closed:<input id="closed" onchange="addTube()" type="checkbox" checked />';
 
-      info.innerHTML += '<br/>Camera Spline Animation: <input id="animation" type="checkbox" onchange="animateCamera()" /> Look Ahead <input id="lookAhead" type="checkbox" onchange="animateCamera()" />'; //checkbox button
+      info.innerHTML += '<br/><br/><input id="animation" type="button" onclick="animateCamera(true)" value="Camera Spline Animation View: OFF"/><br/> Look Ahead <input id="lookAhead" type="checkbox" onchange="animateCamera()" /> Camera Helper <input id="cameraHelper" type="checkbox" onchange="animateCamera()" checked />';
 
       container.appendChild(info);
 
@@ -532,11 +217,14 @@
       addTube();
 
       // Debug point
-      cameraPos = new THREE.Mesh(new THREE.SphereGeometry(5), new THREE.MeshBasicMaterial({
-            color: 0xdddddd
-        }));
+      cameraEye = new THREE.Mesh(new THREE.SphereGeometry(5), new THREE.MeshBasicMaterial({
+          color: 0xdddddd
+      }));
+
+      cameraHelper.children[0].visible = showCameraHelper;
+      cameraEye.visible = showCameraHelper;
 
-      parent.add(cameraPos);
+      parent.add(cameraEye);
 
       cameraHelper.scale.multiplyScalar(0.1);
       splineCamera.add(cameraHelper);
@@ -647,8 +335,6 @@
       var pos = tube.path.getPointAt(t);
       pos.multiplyScalar(scale);
 
-
-
       // interpolation
       var segments = tube.tangents.length;
       var pickt = t * segments;
@@ -669,7 +355,7 @@
       pos.addSelf(normal.clone().multiplyScalar(offset));
 
       splineCamera.position = pos;
-      cameraPos.position = pos;
+      cameraEye.position = pos;
 
 
       // Camera Orientation 1 - default look at

+ 5 - 15
examples/webgl_geometry_shapes.html

@@ -342,22 +342,12 @@
 				//splineShape.debug( document.getElementById("debug") );
 
 				// TODO 3d path?
-				var extrudePath = new THREE.Path();
-
-				extrudePath.moveTo( 0, 0 );
-				extrudePath.lineTo( 10, 10 );
-				extrudePath.quadraticCurveTo( 80, 60, 160, 10 );
-				extrudePath.quadraticCurveTo( 240, -40, 320, 10 );
-
-				// QUICK HACK, conversion from 2d to 3d spline
-				// Still broken and need fixes.
+				
 				var apath = new THREE.SplineCurve3();
-				var tmpPoints = extrudePath.getPoints();
-				for (t in tmpPoints) {
-					var tmpPt = tmpPoints[t];
-					apath.points.push(new THREE.Vector3(tmpPt.x, tmpPt.y,0 ));
-				}
-
+				apath.points.push(new THREE.Vector3(-50, 150, 10));
+				apath.points.push(new THREE.Vector3(-20, 180, 20));
+				apath.points.push(new THREE.Vector3(40, 220, 50));
+				apath.points.push(new THREE.Vector3(200, 290, 100));
 
 				extrudeSettings.extrudePath = apath;
 				extrudeSettings.bevelEnabled = false;

+ 9 - 5
examples/webgl_geometry_subdivison.html

@@ -23,6 +23,7 @@
 		<script src="../src/extras/geometries/CubeGeometry.js"></script>
 		<script src="../src/extras/geometries/CylinderGeometry.js"></script>
 		<script src="../src/extras/geometries/TorusGeometry.js"></script>
+		<script src="../src/extras/geometries/LatheGeometry.js"></script>
 		<script src="../src/extras/modifiers/SubdivisionModifier.js"></script>
 
 		<script src="fonts/helvetiker_regular.typeface.js"></script>
@@ -223,8 +224,11 @@
 				smooth = THREE.GeometryUtils.clone( geometry );
 
 				// mergeVertices(); is run in case of duplicated vertices
-				smooth.mergeVertices();
-				smooth.computeCentroids();
+				if (! (geometry instanceof THREE.LatheGeometry) ) {
+					smooth.mergeVertices();
+				}
+				
+				// smooth.computeCentroids();
 				// smooth.computeFaceNormals();
 				// smooth.computeVertexNormals();
 				modifier.modify( smooth );
@@ -245,7 +249,7 @@
 
 						vertexIndex = f[ faceABCD.charAt( j ) ];
 
-						p = smooth.vertices[ vertexIndex ].position;
+						p = smooth.vertices[ vertexIndex ];
 
 						color = new THREE.Color( 0xffffff );
 						color.setHSV( ( p.y ) / 200 + 0.5, 1.0, 1.0 );
@@ -281,7 +285,7 @@
 					for ( var i = 0; i < smooth.vertices.length; i++ ) {
 
 						particle = new THREE.Particle( new THREE.ParticleCanvasMaterial( { color: Math.random() * 0x808008 + 0x808080, program: program } ) );
-						particle.position = smooth.vertices[i].position;
+						particle.position = smooth.vertices[ i ];
 						var pos = smooth.vertices.position
 						particle.scale.x = particle.scale.y = 5;
 						group.add( particle );
@@ -310,7 +314,7 @@
 					for ( var i = 0; i < geometry.vertices.length; i++ ) {
 
 						particle = new THREE.Particle( new THREE.ParticleCanvasMaterial( { color: Math.random() * 0x808008 + 0x808080, program: drawText(i) } ) );
-						particle.position = smooth.vertices[i].position;
+						particle.position = smooth.vertices[ i ];
 						var pos = geometry.vertices.position
 						particle.scale.x = particle.scale.y = 30;
 						group.add( particle );

+ 1 - 1
examples/webgl_geometry_terrain.html

@@ -84,7 +84,7 @@
 
 				for ( var i = 0, l = geometry.vertices.length; i < l; i ++ ) {
 
-					geometry.vertices[ i ].position.y = data[ i ] * 10;
+					geometry.vertices[ i ].y = data[ i ] * 10;
 
 				}
 

+ 1 - 1
examples/webgl_geometry_terrain_fog.html

@@ -87,7 +87,7 @@
 
 				for ( var i = 0, l = geometry.vertices.length; i < l; i ++ ) {
 
-					geometry.vertices[ i ].position.y = data[ i ] * 10;
+					geometry.vertices[ i ].y = data[ i ] * 10;
 
 				}
 

+ 3 - 3
examples/webgl_geometry_text.html

@@ -471,9 +471,9 @@
 
 							}
 
-							var va = textGeo.vertices[ face.a ].position;
-							var vb = textGeo.vertices[ face.b ].position;
-							var vc = textGeo.vertices[ face.c ].position;
+							var va = textGeo.vertices[ face.a ];
+							var vb = textGeo.vertices[ face.b ];
+							var vc = textGeo.vertices[ face.c ];
 
 							var s = THREE.GeometryUtils.triangleArea( va, vb, vc );
 

+ 4 - 4
examples/webgl_kinect.html

@@ -155,11 +155,11 @@
 
 					for ( var i = 0, l = width * height; i < l; i ++ ) {
  
-						var position = new THREE.Vector3();
-						position.x = ( i % width );
-						position.y = Math.floor( i / width );
+						var vertex = new THREE.Vertex();
+						vertex.x = ( i % width );
+						vertex.y = Math.floor( i / width );
 
-						geometry.vertices.push( new THREE.Vertex( position ) );
+						geometry.vertices.push( vertex );
 
 					}
 

+ 1 - 1
examples/webgl_lines_colors.html

@@ -98,7 +98,7 @@
 
 				for ( i = 0; i < points.length; i ++ ) {
 
-					geometry.vertices.push( new THREE.Vertex( points[ i ] ) );
+					geometry.vertices.push( new THREE.Vertex().copy( points[ i ] ) );
 
 					colors[ i ] = new THREE.Color( 0xffffff );
 					colors[ i ].setHSV( 0.6, ( 200 + points[ i ].x ) / 400, 1.0 );

+ 1 - 1
examples/webgl_lines_cubes.html

@@ -85,7 +85,7 @@
 
 				for ( i = 0; i < points.length; i ++ ) {
 
-					geometry.vertices.push( new THREE.Vertex( points[i] ) );
+					geometry.vertices.push( new THREE.Vertex().copy( points[i] ) );
 
 				}
 

+ 8 - 8
examples/webgl_lines_sphere.html

@@ -80,7 +80,7 @@
 				camera.position.z = 1000;
 				scene.add( camera );
 
-				var i, line, vector1, vector2, material, p,
+				var i, line, vertex1, vertex2, material, p,
 					parameters = [ [ 0.25, 0xff7700, 1, 2 ], [ 0.5, 0xff9900, 1, 1 ], [ 0.75, 0xffaa00, 0.75, 1 ], [ 1, 0xffaa00, 0.5, 1 ], [ 1.25, 0x000833, 0.8, 1 ],
 							       [ 3.0, 0xaaaaaa, 0.75, 2 ], [ 3.5, 0xffffff, 0.5, 1 ], [ 4.5, 0xffffff, 0.25, 1 ], [ 5.5, 0xffffff, 0.125, 1 ] ],
 
@@ -89,15 +89,15 @@
 
 				for ( i = 0; i < 1500; i ++ ) {
 
-					vector1 = new THREE.Vector3( Math.random() * 2 - 1, Math.random() * 2 - 1, Math.random() * 2 - 1 );
-					vector1.normalize();
-					vector1.multiplyScalar( r );
+					var vertex1 = new THREE.Vertex( Math.random() * 2 - 1, Math.random() * 2 - 1, Math.random() * 2 - 1 );
+					vertex1.normalize();
+					vertex1.multiplyScalar( r );
 
-					vector2 = vector1.clone();
-					vector2.multiplyScalar( Math.random() * 0.09 + 1 );
+					vertex2 = vertex1.clone();
+					vertex2.multiplyScalar( Math.random() * 0.09 + 1 );
 
-					geometry.vertices.push( new THREE.Vertex( vector1 ) );
-					geometry.vertices.push( new THREE.Vertex( vector2 ) );
+					geometry.vertices.push( vertex1 );
+					geometry.vertices.push( vertex2 );
 
 				}
 

+ 1 - 1
examples/webgl_lines_splines.html

@@ -98,7 +98,7 @@
 					index = i / ( points.length * n_sub );
 					position = spline.getPoint( index );
 
-					geometry.vertices[ i ] = new THREE.Vertex( new THREE.Vector3( position.x, position.y, position.z ) );
+					geometry.vertices[ i ] = new THREE.Vertex( position.x, position.y, position.z );
 
 					colors[ i ] = new THREE.Color( 0xffffff );
 					colors[ i ].setHSV( 0.6, ( 200 + position.x ) / 400, 1.0 );

+ 5 - 5
examples/webgl_loader_collada.html

@@ -49,7 +49,7 @@
 
 			var loader = new THREE.ColladaLoader();
 			loader.options.convertUpAxis = true;
-			loader.load( './models/monster.dae', function colladaReady( collada ) {
+			loader.load( './models/collada/monster/monster.dae', function colladaReady( collada ) {
 
 				dae = collada.scene;
 				skin = collada.skins[ 0 ];
@@ -81,11 +81,11 @@
 
 				for ( var i = 0; i <= size / step * 2; i ++ ) {
 
-					geometry.vertices.push( new THREE.Vertex( new THREE.Vector3( - size, floor, i * step - size ) ) );
-					geometry.vertices.push( new THREE.Vertex( new THREE.Vector3(   size, floor, i * step - size ) ) );
+					geometry.vertices.push( new THREE.Vertex( - size, floor, i * step - size ) );
+					geometry.vertices.push( new THREE.Vertex(   size, floor, i * step - size ) );
 
-					geometry.vertices.push( new THREE.Vertex( new THREE.Vector3( i * step - size, floor, -size ) ) );
-					geometry.vertices.push( new THREE.Vertex( new THREE.Vector3( i * step - size, floor,  size ) ) );
+					geometry.vertices.push( new THREE.Vertex( i * step - size, floor, -size ) );
+					geometry.vertices.push( new THREE.Vertex( i * step - size, floor,  size ) );
 
 				}
 

+ 228 - 0
examples/webgl_loader_collada_keyframe.html

@@ -0,0 +1,228 @@
+<!doctype html>
+<html lang="en">
+	<head>
+		<title>three.js webgl - collada</title>
+		<meta charset="utf-8">
+		<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
+		<style>
+
+			body {
+				font-family: Monospace;
+				background-color: #000000;
+				margin: 0px;
+				overflow: hidden;
+			}
+
+			#info {
+				color: #fff;
+				position: absolute;
+				top: 10px;
+				width: 100%;
+				text-align: center;
+				z-index: 100;
+				display:block;
+
+			}
+
+			a { color: skyblue }
+
+		</style>
+	</head>
+	<body>
+		<div id="info">
+			<a href="http://github.com/mrdoob/three.js" target="_blank">three.js</a> -
+			pump by <a href="http://code.google.com/p/kuda" target="_blank">Kuda</a>
+		</div>
+
+		<script src="../build/Three.js"></script>
+
+		<script src="js/Detector.js"></script>
+
+		<script src="js/Stats.js"></script>
+
+		<script>
+
+			if ( ! Detector.webgl ) Detector.addGetWebGLMessage();
+
+			var stats;
+			var scene;
+			var camera;
+			var renderer;
+			var model;
+			var animations;
+			var kfAnimations = [ ];
+			var kfAnimationsLength = 0;
+			var loader = new THREE.ColladaLoader();
+			var lastTimestamp;
+			var progress = 0;
+
+			loader.load( './models/collada/pump/pump.dae', function ( collada ) {
+
+				model = collada.scene;
+				animations = collada.animations;
+				kfAnimationsLength = animations.length;
+				model.scale.x = model.scale.y = model.scale.z = 0.125; // 1/8 scale, modeled in cm
+
+				init();
+				start();
+				animate( lastTimestamp );
+
+			} );
+
+			function init() {
+
+				var container = document.createElement( 'div' );
+				document.body.appendChild( container );
+
+				// Scene
+
+				scene = new THREE.Scene();
+
+				// Camera
+
+				camera = new THREE.PerspectiveCamera( 40, window.innerWidth / window.innerHeight, 0.01, 1000 );
+				camera.position.set( -5.00181875, 3.42631375, 11.3102925 );
+				camera.lookAt( new THREE.Vector3( -1.224774125, 2.18410625, 4.57969125 ) );
+
+				scene.add( camera );
+
+				// KeyFrame Animations
+
+				var animHandler = THREE.AnimationHandler;
+
+				for ( var i = 0; i < kfAnimationsLength; ++i ) {
+
+					var animation = animations[ i ];
+					animHandler.add( animation );
+
+					var kfAnimation = new THREE.KeyFrameAnimation( animation.node, animation.name );
+					kfAnimation.timeScale = 1;
+					kfAnimations.push( kfAnimation );
+
+				}
+
+				// Grid
+
+				var material = new THREE.LineBasicMaterial( { color: 0xcccccc, opacity: 0.2 } );
+				var geometry = new THREE.Geometry();
+				var floor = -0.04, step = 1, size = 14;
+
+				for ( var i = 0; i <= size / step * 2; i ++ ) {
+
+					geometry.vertices.push( new THREE.Vertex( - size, floor, i * step - size ) );
+					geometry.vertices.push( new THREE.Vertex(   size, floor, i * step - size ) );
+					geometry.vertices.push( new THREE.Vertex( i * step - size, floor, -size ) );
+					geometry.vertices.push( new THREE.Vertex( i * step - size, floor,  size ) );
+
+				}
+
+				var line = new THREE.Line( geometry, material, THREE.LinePieces );
+				scene.add( line );
+
+				// Add the COLLADA
+
+				model.getChildByName( 'camEye_camera', true ).visible = false;
+				model.getChildByName( 'camTarget_camera', true ).visible = false;
+
+				scene.add( model );
+
+				// Lights
+
+				pointLight = new THREE.PointLight( 0xffffff, 1.75 );
+				pointLight.position = camera.position;
+				pointLight.rotation = camera.rotation;
+				pointLight.scale = camera.scale;
+
+				scene.add( pointLight );
+
+				// Renderer
+
+				renderer = new THREE.WebGLRenderer( { antialias: true } );
+				renderer.setSize( window.innerWidth, window.innerHeight );
+
+				container.appendChild( renderer.domElement );
+
+				// Stats
+
+				stats = new Stats();
+				stats.domElement.style.position = 'absolute';
+				stats.domElement.style.top = '0px';
+
+				container.appendChild( stats.domElement );
+
+			}
+
+			function start() {
+
+				for ( var i = 0; i < kfAnimationsLength; ++i ) {
+
+					var animation = kfAnimations[i];
+
+					for ( var h = 0, hl = animation.hierarchy.length; h < hl; h++ ) {
+
+						var keys = animation.data.hierarchy[ h ].keys;
+						var sids = animation.data.hierarchy[ h ].sids;
+						var obj = animation.hierarchy[ h ];
+
+						if ( keys.length && sids ) {
+
+							for ( var s = 0; s < sids.length; s++ ) {
+
+								var sid = sids[ s ];
+								var next = animation.getNextKeyWith( sid, h, 0 );
+
+								if ( next ) next.apply( sid );
+
+							}
+
+							obj.matrixAutoUpdate = false;
+							animation.data.hierarchy[ h ].node.updateMatrix();
+							obj.matrixWorldNeedsUpdate = true;
+
+						}
+
+					}
+
+					animation.play( false, 0 );
+					lastTimestamp = Date.now();
+
+				}
+
+			}
+
+			function animate( timestamp ) {
+
+				var frameTime = ( timestamp - lastTimestamp ) * 0.001; // seconds
+
+				if ( progress >= 0 && progress < 48 ) {
+
+					for ( var i = 0; i < kfAnimationsLength; ++i ) {
+
+						kfAnimations[ i ].update( frameTime );
+
+					}
+
+				} else if ( progress >= 48 ) {
+
+					for ( var i = 0; i < kfAnimationsLength; ++i ) {
+
+						kfAnimations[ i ].stop();
+
+					}
+
+					progress = 0;
+					start();
+
+				}
+
+				progress += frameTime;
+				lastTimestamp = timestamp;
+				renderer.render( scene, camera );
+				stats.update();
+				requestAnimationFrame( animate );
+
+			}
+
+		</script>
+	</body>
+</html>

+ 3 - 3
examples/webgl_loader_ctm.html

@@ -146,7 +146,7 @@
 
 				var loader = new THREE.CTMLoader( renderer.context );
 
-				loader.load( "ctm/ben.ctm",   function( geometry ) {
+				loader.load( "models/ctm/ben.ctm",   function( geometry ) {
 
 					var material = new THREE.MeshLambertMaterial( { color: 0xffaa00, map: THREE.ImageUtils.loadTexture( "textures/ash_uvgrid01.jpg" ), envMap: reflectionCube, combine: THREE.MixOperation, reflectivity: 0.3 } );
 					callbackModel( geometry, 450, material, 0, -200, 0, 0, 0 );
@@ -154,7 +154,7 @@
 
 				}, useWorker, useBuffers );
 
-				loader.load( "ctm/WaltHead.ctm",  function( geometry ) {
+				loader.load( "models/ctm/WaltHead.ctm",  function( geometry ) {
 
 					//geometry.computeVertexNormals();
 
@@ -164,7 +164,7 @@
 
 				}, useWorker, useBuffers );
 
-				loader.load( "ctm/LeePerry.ctm",  function( geometry ) {
+				loader.load( "models/ctm/LeePerry.ctm",  function( geometry ) {
 
 					var material = new THREE.MeshPhongMaterial( { color: 0xffffff, specular: 0x444444, shininess: 30, map: THREE.ImageUtils.loadTexture( "obj/leeperrysmith/Map-COL.jpg" ), envMaps: reflectionCube, combine: THREE.MixOperation, reflectivity: 0.3 } );
 					callbackModel( geometry, 1300, material, 200, 50, 0, 0, 0 );

+ 1 - 1
examples/webgl_loader_ctm_materials.html

@@ -207,7 +207,7 @@
 				var position = new THREE.Vector3( -105, -78, -40 );
 				var scale = new THREE.Vector3( 30, 30, 30 );
 
-				loaderCTM.loadParts( "ctm/camaro/camaro.js", function( geometries, materials ) {
+				loaderCTM.loadParts( "models/ctm/camaro/camaro.js", function( geometries, materials ) {
 
 					hackMaterials( materials );
 

+ 1 - 1
examples/webgl_loader_json_blender.html

@@ -54,7 +54,7 @@
 
 			var loader = new THREE.ColladaLoader();
 			loader.options.convertUpAxis = true;
-			loader.load( 'models/monster.dae', function colladaReady( collada ) {
+			loader.load( 'models/collada/monster/monster.dae', function colladaReady( collada ) {
 
 				dae = collada.scene;
 				skin = collada.skins[ 0 ];

+ 17 - 5
examples/webgl_loader_utf8.html

@@ -112,17 +112,29 @@
 
 				var loader = new THREE.UTF8Loader();
 
-				loader.load( "utf8/hand.utf8", function( geometry ) { callbackModel( geometry, 400, 0xffffff, 125, FLOOR, 0 ); },
-							 { scale: 0.815141, offsetX: -0.371823, offsetY: -0.011920, offsetZ: -0.416061 } );
+				loader.load( "models/utf8/hand.utf8", function ( geometry ) {
 
-				loader.load( "utf8/ben.utf8", function( geometry ) { callbackModel( geometry, 400, 0xffaa00, -125, FLOOR, 0 ); },
-							  { scale: 0.707192, offsetX: -0.109362, offsetY: -0.006435, offsetZ: -0.268751 } );
+					callbackModel( geometry, 400, 0xffffff, 125, FLOOR, 0 );
+
+				}, { scale: 0.815141, offsetX: -0.371823, offsetY: -0.011920, offsetZ: -0.416061 } );
+
+				loader.load( "models/utf8/ben.utf8", function ( geometry ) {
+
+					callbackModel( geometry, 400, 0xffaa00, -125, FLOOR, 0 );
+
+				}, { scale: 0.707192, offsetX: -0.109362, offsetY: -0.006435, offsetZ: -0.268751 } );
 
 			}
 
 			function callbackModel( geometry, s, color, x, y, z ) {
 
-				var material = new THREE.MeshLambertMaterial( { color: color, map: THREE.ImageUtils.loadTexture( "textures/ash_uvgrid01.jpg" ), envMap: reflectionCube, combine: THREE.MixOperation, reflectivity: 0.3 } );
+				var material = new THREE.MeshLambertMaterial( {
+					color: color,
+					map: THREE.ImageUtils.loadTexture( "textures/ash_uvgrid01.jpg" ),
+					envMap: reflectionCube,
+					combine: THREE.MixOperation,
+					reflectivity: 0.3
+				} );
 				//material.shading =  THREE.FlatShading;
 
 				var mesh = new THREE.Mesh( geometry, material );

+ 4 - 4
examples/webgl_materials.html

@@ -54,11 +54,11 @@
 
 				for ( var i = 0; i <= 40; i ++ ) {
 
-					geometry.vertices.push( new THREE.Vertex( new THREE.Vector3( - 500, floor, i * step - 500 ) ) );
-					geometry.vertices.push( new THREE.Vertex( new THREE.Vector3(   500, floor, i * step - 500 ) ) );
+					geometry.vertices.push( new THREE.Vertex( - 500, floor, i * step - 500 ) );
+					geometry.vertices.push( new THREE.Vertex(   500, floor, i * step - 500 ) );
 
-					geometry.vertices.push( new THREE.Vertex( new THREE.Vector3( i * step - 500, floor, -500 ) ) );
-					geometry.vertices.push( new THREE.Vertex( new THREE.Vector3( i * step - 500, floor,  500 ) ) );
+					geometry.vertices.push( new THREE.Vertex( i * step - 500, floor, -500 ) );
+					geometry.vertices.push( new THREE.Vertex( i * step - 500, floor,  500 ) );
 
 				}
 

+ 42 - 44
examples/webgl_materials_cubemap_dynamic.html

@@ -216,6 +216,7 @@
 				// CUBE CAMERA
 
 				cubeCamera = new THREE.CubeCamera( 1, 100000, 128 );
+				scene.add( cubeCamera );
 
 				// MATERIALS
 
@@ -225,31 +226,31 @@
 
 					body: [],
 
-					"Chrome": 		new THREE.MeshLambertMaterial( { color: 0xffffff, ambient: 0xffffff, envMap: cubeTarget  } ),
-					"ChromeN": 		new THREE.MeshLambertMaterial( { color: 0xffffff, ambient: 0xffffff, envMap: cubeTarget, combine: THREE.MixOperation, reflectivity: 0.75  } ),
-					"Dark chrome": 	new THREE.MeshLambertMaterial( { color: 0x444444, ambient: 0x444444, envMap: cubeTarget } ),
+					"Chrome": new THREE.MeshLambertMaterial( { color: 0xffffff, ambient: 0xffffff, envMap: cubeTarget  } ),
+					"ChromeN": new THREE.MeshLambertMaterial( { color: 0xffffff, ambient: 0xffffff, envMap: cubeTarget, combine: THREE.MixOperation, reflectivity: 0.75  } ),
+					"Dark chrome": new THREE.MeshLambertMaterial( { color: 0x444444, ambient: 0x444444, envMap: cubeTarget } ),
 
-					"Black rough":	new THREE.MeshLambertMaterial( { color: 0x050505, ambient: 0x050505 } ),
+					"Black rough": new THREE.MeshLambertMaterial( { color: 0x050505, ambient: 0x050505 } ),
 
-					"Dark glass":	new THREE.MeshLambertMaterial( { color: 0x101020, ambient: 0x101020, envMap: cubeTarget, opacity: 0.5, transparent: true } ),
-					"Orange glass":	new THREE.MeshLambertMaterial( { color: 0xffbb00, ambient: 0xffbb00, opacity: 0.5, transparent: true } ),
-					"Red glass": 	new THREE.MeshLambertMaterial( { color: 0xff0000, ambient: 0xff0000, opacity: 0.5, transparent: true } ),
+					"Dark glass": new THREE.MeshLambertMaterial( { color: 0x101020, ambient: 0x101020, envMap: cubeTarget, opacity: 0.5, transparent: true } ),
+					"Orange glass": new THREE.MeshLambertMaterial( { color: 0xffbb00, ambient: 0xffbb00, opacity: 0.5, transparent: true } ),
+					"Red glass": new THREE.MeshLambertMaterial( { color: 0xff0000, ambient: 0xff0000, opacity: 0.5, transparent: true } ),
 
-					"Black metal":	new THREE.MeshLambertMaterial( { color: 0x222222, ambient: 0x222222, envMap: cubeTarget, combine: THREE.MultiplyOperation } ),
+					"Black metal": new THREE.MeshLambertMaterial( { color: 0x222222, ambient: 0x222222, envMap: cubeTarget, combine: THREE.MultiplyOperation } ),
 					"Orange metal": new THREE.MeshLambertMaterial( { color: 0xff6600, ambient: 0xff6600, envMap: cubeTarget, combine: THREE.MultiplyOperation } )
 
 				}
 
 				mlib.body.push( [ "Orange", new THREE.MeshLambertMaterial( { color: 0x883300, ambient: 0x883300, envMap: cubeTarget, combine: THREE.MixOperation, reflectivity: 0.1 } ) ] );
-				mlib.body.push( [ "Blue", 	new THREE.MeshLambertMaterial( { color: 0x113355, envMap: cubeTarget, combine: THREE.MixOperation, reflectivity: 0.1 } ) ] );
-				mlib.body.push( [ "Red", 	new THREE.MeshLambertMaterial( { color: 0x660000, envMap: cubeTarget, combine: THREE.MixOperation, reflectivity: 0.1 } ) ] );
-				mlib.body.push( [ "Black", 	new THREE.MeshLambertMaterial( { color: 0x000000, envMap: cubeTarget, combine: THREE.MixOperation, reflectivity: 0.2 } ) ] );
-				mlib.body.push( [ "White", 	new THREE.MeshLambertMaterial( { color: 0xffffff, envMap: cubeTarget, combine: THREE.MixOperation, reflectivity: 0.2 } ) ] );
+				mlib.body.push( [ "Blue", new THREE.MeshLambertMaterial( { color: 0x113355, envMap: cubeTarget, combine: THREE.MixOperation, reflectivity: 0.1 } ) ] );
+				mlib.body.push( [ "Red", new THREE.MeshLambertMaterial( { color: 0x660000, envMap: cubeTarget, combine: THREE.MixOperation, reflectivity: 0.1 } ) ] );
+				mlib.body.push( [ "Black", new THREE.MeshLambertMaterial( { color: 0x000000, envMap: cubeTarget, combine: THREE.MixOperation, reflectivity: 0.2 } ) ] );
+				mlib.body.push( [ "White", new THREE.MeshLambertMaterial( { color: 0xffffff, envMap: cubeTarget, combine: THREE.MixOperation, reflectivity: 0.2 } ) ] );
 
 				mlib.body.push( [ "Carmine", new THREE.MeshPhongMaterial( { color: 0x770000, specular: 0xffaaaa, envMap: cubeTarget, combine: THREE.MultiplyOperation } ) ] );
-				mlib.body.push( [ "Gold", 	 new THREE.MeshPhongMaterial( { color: 0xaa9944, specular: 0xbbaa99, shininess: 50, envMap: cubeTarget, combine: THREE.MultiplyOperation } ) ] );
-				mlib.body.push( [ "Bronze",  new THREE.MeshPhongMaterial( { color: 0x150505, specular: 0xee6600, shininess: 10, envMap: cubeTarget, combine: THREE.MixOperation, reflectivity: 0.2 } ) ] );
-				mlib.body.push( [ "Chrome",  new THREE.MeshPhongMaterial( { color: 0xffffff, specular: 0xffffff, envMap: cubeTarget, combine: THREE.MultiplyOperation } ) ] );
+				mlib.body.push( [ "Gold", new THREE.MeshPhongMaterial( { color: 0xaa9944, specular: 0xbbaa99, shininess: 50, envMap: cubeTarget, combine: THREE.MultiplyOperation } ) ] );
+				mlib.body.push( [ "Bronze", new THREE.MeshPhongMaterial( { color: 0x150505, specular: 0xee6600, shininess: 10, envMap: cubeTarget, combine: THREE.MixOperation, reflectivity: 0.2 } ) ] );
+				mlib.body.push( [ "Chrome", new THREE.MeshPhongMaterial( { color: 0xffffff, specular: 0xffffff, envMap: cubeTarget, combine: THREE.MultiplyOperation } ) ] );
 
 				// FLARES
 
@@ -280,21 +281,18 @@
 
 					};
 
-					var flares = [ // front
-								   [ "a", sa, [ 47, 38, 120 ] ], [ "a", sa, [ 40, 38, 120 ] ], [ "a", sa, [ 32, 38, 122 ] ],
-								   [ "b", sb, [ 47, 38, 120 ] ], [ "b", sb, [ 40, 38, 120 ] ], [ "b", sb, [ 32, 38, 122 ] ],
-
-								   [ "a", sa, [ -47, 38, 120 ] ], [ "a", sa, [ -40, 38, 120 ] ], [ "a", sa, [ -32, 38, 122 ] ],
-								   [ "b", sb, [ -47, 38, 120 ] ], [ "b", sb, [ -40, 38, 120 ] ], [ "b", sb, [ -32, 38, 122 ] ],
-
-								   // back
-								   [ "ar", sa, [ 22, 50, -123 ] ], [ "ar", sa, [ 32, 49, -123 ] ],
-								   [ "br", sb, [ 22, 50, -123 ] ], [ "br", sb, [ 32, 49, -123 ] ],
-
-								   [ "ar", sa, [ -22, 50, -123 ] ], [ "ar", sa, [ -32, 49, -123 ] ],
-								   [ "br", sb, [ -22, 50, -123 ] ], [ "br", sb, [ -32, 49, -123 ] ],
-
-								 ];
+					var flares = [
+						// front
+						[ "a", sa, [ 47, 38, 120 ] ], [ "a", sa, [ 40, 38, 120 ] ], [ "a", sa, [ 32, 38, 122 ] ],
+						[ "b", sb, [ 47, 38, 120 ] ], [ "b", sb, [ 40, 38, 120 ] ], [ "b", sb, [ 32, 38, 122 ] ],
+						[ "a", sa, [ -47, 38, 120 ] ], [ "a", sa, [ -40, 38, 120 ] ], [ "a", sa, [ -32, 38, 122 ] ],
+						[ "b", sb, [ -47, 38, 120 ] ], [ "b", sb, [ -40, 38, 120 ] ], [ "b", sb, [ -32, 38, 122 ] ],
+						// back
+						[ "ar", sa, [ 22, 50, -123 ] ], [ "ar", sa, [ 32, 49, -123 ] ],
+						[ "br", sb, [ 22, 50, -123 ] ], [ "br", sb, [ 32, 49, -123 ] ],
+						[ "ar", sa, [ -22, 50, -123 ] ], [ "ar", sa, [ -32, 49, -123 ] ],
+						[ "br", sb, [ -22, 50, -123 ] ], [ "br", sb, [ -32, 49, -123 ] ],
+					];
 
 					for ( var i = 0; i < flares.length; i ++ ) {
 
@@ -347,20 +345,18 @@
 
 					};
 
-					var flares = [ // front
-								   [ "a", sa, [ 70, 10, 160 ] ], [ "a", sa, [ 66, -1, 175 ] ], [ "a", sa, [ 66, -1, 165 ] ],
-								   [ "b", sb, [ 70, 10, 160 ] ], [ "b", sb, [ 66, -1, 175 ] ], [ "b", sb, [ 66, -1, 165 ] ],
-
-								   [ "a", sa, [ -70, 10, 160 ] ], [ "a", sa, [ -66, -1, 175 ] ], [ "a", sa, [ -66, -1, 165 ] ],
-								   [ "b", sb, [ -70, 10, 160 ] ], [ "b", sb, [ -66, -1, 175 ] ], [ "b", sb, [ -66, -1, 165 ] ],
-
-								   // back
-								   [ "ar", sa, [ 61, 19, -185 ] ], [ "ar", sa, [ 55, 19, -185 ] ],
-								   [ "br", sb, [ 61, 19, -185 ] ], [ "br", sb, [ 55, 19, -185 ] ],
-
-								   [ "ar", sa, [ -61, 19, -185 ] ], [ "ar", sa, [ -55, 19, -185 ] ],
-								   [ "br", sb, [ -61, 19, -185 ] ], [ "br", sb, [ -55, 19, -185 ] ],
-								 ];
+					var flares = [
+						// front
+						[ "a", sa, [ 70, 10, 160 ] ], [ "a", sa, [ 66, -1, 175 ] ], [ "a", sa, [ 66, -1, 165 ] ],
+						[ "b", sb, [ 70, 10, 160 ] ], [ "b", sb, [ 66, -1, 175 ] ], [ "b", sb, [ 66, -1, 165 ] ],
+						[ "a", sa, [ -70, 10, 160 ] ], [ "a", sa, [ -66, -1, 175 ] ], [ "a", sa, [ -66, -1, 165 ] ],
+						[ "b", sb, [ -70, 10, 160 ] ], [ "b", sb, [ -66, -1, 175 ] ], [ "b", sb, [ -66, -1, 165 ] ],
+						// back
+						[ "ar", sa, [ 61, 19, -185 ] ], [ "ar", sa, [ 55, 19, -185 ] ],
+						[ "br", sb, [ 61, 19, -185 ] ], [ "br", sb, [ 55, 19, -185 ] ],
+						[ "ar", sa, [ -61, 19, -185 ] ], [ "ar", sa, [ -55, 19, -185 ] ],
+						[ "br", sb, [ -61, 19, -185 ] ], [ "br", sb, [ -55, 19, -185 ] ],
+					];
 
 
 					for ( var i = 0; i < flares.length; i ++ ) {
@@ -561,8 +557,10 @@
 
 				var shadowPlane = new THREE.PlaneGeometry( 400, 400 );
 				var shadowMaterial = new THREE.MeshBasicMaterial( {
+
 					color: 0xff0000, opacity: 0.35, transparent: true, map: shadowTexture,
 					polygonOffset: false, polygonOffsetFactor: -0.5, polygonOffsetUnits: 1
+
 				} );
 
 				var shadow = new THREE.Mesh( shadowPlane, shadowMaterial );

+ 1 - 0
examples/webgl_materials_cubemap_dynamic2.html

@@ -69,6 +69,7 @@
 
 				cubeCamera = new THREE.CubeCamera( 1, 1000, 256 );
 				cubeCamera.renderTarget.minFilter = THREE.LinearMipMapLinearFilter;
+				scene.add( cubeCamera );
 
 				document.body.appendChild( renderer.domElement );
 

+ 4 - 4
examples/webgl_morphtargets.html

@@ -119,13 +119,13 @@
 
 					for ( var v = 0; v < geometry.vertices.length; v ++ ) {
 
-						vertices.push( new THREE.Vertex( geometry.vertices[ v ].position.clone() ) )
+						vertices.push( new THREE.Vertex().copy( geometry.vertices[ v ] ) );
 
 						if ( v === i ) {
 
-							vertices[ vertices.length - 1 ].position.x *= 2;
-							vertices[ vertices.length - 1 ].position.y *= 2;
-							vertices[ vertices.length - 1 ].position.z *= 2;
+							vertices[ vertices.length - 1 ].x *= 2;
+							vertices[ vertices.length - 1 ].y *= 2;
+							vertices[ vertices.length - 1 ].z *= 2;
 
 						}
 

+ 1 - 1
examples/webgl_multiple_canvases_circle.html

@@ -251,7 +251,7 @@
 
 							vertexIndex = f1[ faceIndices[ j ] ];
 
-							p = geometry1.vertices[ vertexIndex ].position;
+							p = geometry1.vertices[ vertexIndex ];
 
 							color = new THREE.Color( 0xffffff );
 							color.setHSV( ( p.y / radius + 1 ) / 2, 1.0, 1.0 );

+ 1 - 1
examples/webgl_multiple_canvases_complex.html

@@ -170,7 +170,7 @@
 
 							vertexIndex = f1[ faceIndices[ j ] ];
 
-							p = geometry1.vertices[ vertexIndex ].position;
+							p = geometry1.vertices[ vertexIndex ];
 
 							color = new THREE.Color( 0xffffff );
 							color.setHSV( ( p.y / radius + 1 ) / 2, 1.0, 1.0 );

+ 1 - 1
examples/webgl_multiple_canvases_grid.html

@@ -186,7 +186,7 @@
 
 							vertexIndex = f1[ faceIndices[ j ] ];
 
-							p = geometry1.vertices[ vertexIndex ].position;
+							p = geometry1.vertices[ vertexIndex ];
 
 							color = new THREE.Color( 0xffffff );
 							color.setHSV( ( p.y / radius + 1 ) / 2, 1.0, 1.0 );

+ 1 - 1
examples/webgl_multiple_views.html

@@ -167,7 +167,7 @@
 
 						vertexIndex = f[ faceIndices[ j ] ];
 
-						p = geometry.vertices[ vertexIndex ].position;
+						p = geometry.vertices[ vertexIndex ];
 
 						color = new THREE.Color( 0xffffff );
 						color.setHSV( ( p.y / radius + 1 ) / 2, 1.0, 1.0 );

+ 6 - 6
examples/webgl_particles_billboards.html

@@ -46,7 +46,7 @@
 			if ( ! Detector.webgl ) Detector.addGetWebGLMessage();
 
 			var container, stats;
-			var camera, scene, renderer, particles, geometry, material, i, h, color, sprite, size, x, y, z;
+			var camera, scene, renderer, particles, geometry, material, i, h, color, sprite, size;
 			var mouseX = 0, mouseY = 0;
 
 			var windowHalfX = window.innerWidth / 2;
@@ -73,12 +73,12 @@
 
 				for ( i = 0; i < 10000; i ++ ) {
 
-					x = 2000 * Math.random() - 1000;
-					y = 2000 * Math.random() - 1000;
-					z = 2000 * Math.random() - 1000;
+					var vertex = new THREE.Vertex();
+					vertex.x = 2000 * Math.random() - 1000;
+					vertex.y = 2000 * Math.random() - 1000;
+					vertex.z = 2000 * Math.random() - 1000;
 
-					vector = new THREE.Vector3( x, y, z );
-					geometry.vertices.push( new THREE.Vertex( vector ) );
+					geometry.vertices.push( vertex );
 
 				}
 

+ 7 - 7
examples/webgl_particles_billboards_colors.html

@@ -46,7 +46,7 @@
 			if ( ! Detector.webgl ) Detector.addGetWebGLMessage();
 
 			var container, stats;
-			var camera, scene, renderer, particles, geometry, material, i, h, color, colors = [], sprite, size, x, y, z;
+			var camera, scene, renderer, particles, geometry, material, i, h, color, colors = [], sprite, size;
 			var mouseX = 0, mouseY = 0;
 
 			var windowHalfX = window.innerWidth / 2;
@@ -73,15 +73,15 @@
 
 				for ( i = 0; i < 5000; i ++ ) {
 
-					x = 2000 * Math.random() - 1000;
-					y = 2000 * Math.random() - 1000;
-					z = 2000 * Math.random() - 1000;
+					var vertex = new THREE.Vertex();
+					vertex.x = 2000 * Math.random() - 1000;
+					vertex.y = 2000 * Math.random() - 1000;
+					vertex.z = 2000 * Math.random() - 1000;
 
-					vector = new THREE.Vector3( x, y, z );
-					geometry.vertices.push( new THREE.Vertex( vector ) );
+					geometry.vertices.push( vertex );
 
 					colors[ i ] = new THREE.Color( 0xffffff );
-					colors[ i ].setHSV( (x+1000)/2000, 1.0, 1.0 );
+					colors[ i ].setHSV( ( vertex.x + 1000 ) / 2000, 1, 1 );
 
 				}
 

+ 3 - 3
examples/webgl_particles_dynamic.html

@@ -212,9 +212,9 @@
 
 				for ( i = 0; i < vl; i ++ ) {
 
-					p = vertices[ i ].position;
+					p = vertices[ i ];
 
-					geometry.vertices[ i ] = new THREE.Vertex( p.clone() );
+					geometry.vertices[ i ] = new THREE.Vertex().copy( p );
 					vertices_tmp[ i ] = [ p.x, p.y, p.z, 0, 0 ];
 
 				}
@@ -334,7 +334,7 @@
 
 					for ( i = 0; i < vl; i ++ ) {
 
-						p = vertices[ i ].position;
+						p = vertices[ i ];
 						vt = vertices_tmp[ i ];
 
 						// falling down

+ 7 - 3
examples/webgl_particles_random.html

@@ -32,7 +32,7 @@
 	</head>
 	<body>
 
-        <div id="info">
+		<div id="info">
 			<a href="http://github.com/mrdoob/three.js" target="_blank">three.js</a> - webgl particles example
 		</div>
 
@@ -71,8 +71,12 @@
 
 				for ( i = 0; i < 20000; i ++ ) {
 
-					vector = new THREE.Vector3( Math.random() * 2000 - 1000, Math.random() * 2000 - 1000, Math.random() * 2000 - 1000 );
-					geometry.vertices.push( new THREE.Vertex( vector ) );
+					var vertex = new THREE.Vertex();
+					vertex.x = Math.random() * 2000 - 1000;
+					vertex.y = Math.random() * 2000 - 1000;
+					vertex.z = Math.random() * 2000 - 1000;
+
+					geometry.vertices.push( vertex );
 
 				}
 

+ 15 - 15
examples/webgl_particles_shapes.html

@@ -113,7 +113,7 @@
 				info.style.top = '10px';
 				info.style.width = '100%';
 				info.style.textAlign = 'center';
-				info.innerHTML = 'Three.js - simple particle systems with shapes by <a href="http://www.lab4games.net/zz85/blog">zz85</a><br/>Move your mouse. Click to pause/resume.';
+				info.innerHTML = 'Three.js - simple particle systems with shapes by <a href="http://www.lab4games.net/zz85/blog">zz85</a><br>Move your mouse. Click to pause/resume.';
 				container.appendChild( info );
 
 				// SCENE
@@ -151,8 +151,8 @@
 
 				}
 
-                var textMaterialFront = new THREE.MeshLambertMaterial( { color: 0xffffff, shading: THREE.FlatShading, opacity: 0.95 } );
-                var textMaterialSide = new THREE.MeshLambertMaterial( { color: 0xffffff } );
+				var textMaterialFront = new THREE.MeshLambertMaterial( { color: 0xffffff, shading: THREE.FlatShading, opacity: 0.95 } );
+				var textMaterialSide = new THREE.MeshLambertMaterial( { color: 0xffffff } );
 
 				var text3d = new THREE.TextGeometry( theText, {
 
@@ -182,15 +182,15 @@
 				// Potentially, we can extract the vertices or faces of the text to generate particles too.
 				// Geo > Vertices > Position
 
-                text.position.x = centerOffset;
-                text.position.y = 130;
-                text.position.z = -50;
+				text.position.x = centerOffset;
+				text.position.y = 130;
+				text.position.z = -50;
 
-                text.rotation.x = 0;
-                text.rotation.y = Math.PI * 2;
+				text.rotation.x = 0;
+				text.rotation.y = Math.PI * 2;
 
-				parent = new THREE.Object3D();
-                parent.add( text );
+						parent = new THREE.Object3D();
+				parent.add( text );
 				scene.add( parent );
 
 				///// Create particle objects for Three.js
@@ -201,7 +201,7 @@
 
 				function newpos( x, y, z ) {
 
-					return new THREE.Vertex( new THREE.Vector3( x, y, z ) );
+					return new THREE.Vertex( x, y, z );
 
 				}
 
@@ -353,7 +353,7 @@
 					values_color[ v ] = new THREE.Color( 0xffffff );
 					values_color[ v ].setHSV( 0, 0, 0 );
 
-					particles.vertices[ v ].position.set( Number.POSITIVE_INFINITY, Number.POSITIVE_INFINITY, Number.POSITIVE_INFINITY );
+					particles.vertices[ v ].set( Number.POSITIVE_INFINITY, Number.POSITIVE_INFINITY, Number.POSITIVE_INFINITY );
 
 				}
 
@@ -422,7 +422,7 @@
 						pointLight.position.y = emitterpos.y;
 						pointLight.position.z = 100;
 
-						particles.vertices[ target ].position = p.position;
+						particles.vertices[ target ] = p.position;
 
 						values_color[ target ].setHSV( hue, 0.8, 0.15 );
 
@@ -442,7 +442,7 @@
 						// Hide the particle
 
 						values_color[ target ].setHSV( 0, 0, 0 );
-						particles.vertices[ target ].position.set( Number.POSITIVE_INFINITY, Number.POSITIVE_INFINITY, Number.POSITIVE_INFINITY );
+						particles.vertices[ target ].set( Number.POSITIVE_INFINITY, Number.POSITIVE_INFINITY, Number.POSITIVE_INFINITY );
 
 						// Mark particle system as available by returning to pool
 
@@ -493,7 +493,7 @@
 
 
 				renderer = new THREE.WebGLRenderer();
-                renderer.setSize( window.innerWidth, window.innerHeight );
+				renderer.setSize( window.innerWidth, window.innerHeight );
 				renderer.setClearColorHex( 0x000000, 1 );
 
 				container.appendChild( renderer.domElement );

+ 6 - 2
examples/webgl_particles_sprites.html

@@ -78,8 +78,12 @@
 
 				for ( i = 0; i < 10000; i ++ ) {
 
-					vector = new THREE.Vector3( Math.random() * 2000 - 1000, Math.random() * 2000 - 1000, Math.random() * 2000 - 1000 );
-					geometry.vertices.push( new THREE.Vertex( vector ) );
+					var vertex = new THREE.Vertex();
+					vertex.x = Math.random() * 2000 - 1000;
+					vertex.y = Math.random() * 2000 - 1000;
+					vertex.z = Math.random() * 2000 - 1000;
+
+					geometry.vertices.push( vertex );
 
 				}
 

+ 422 - 0
examples/webgl_postprocessing_godrays.html

@@ -0,0 +1,422 @@
+<!doctype html>
+<html lang="en">
+	<head>
+		<title>three.js webgl - postprocessing - godrays</title>
+		<meta charset="utf-8">
+		<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
+		<style>
+			body {
+				background-color: #000000;
+				margin: 0px;
+				overflow: hidden;
+				font-family:Monospace;
+				font-size:13px;
+				text-align:center;
+				font-weight: bold;
+				text-align:center;
+			}
+
+			a {
+				color:#0078ff;
+			}
+
+			#info {
+				color:#fff;
+				position: absolute;
+				top: 0px; width: 100%;
+				padding: 5px;
+				z-index:100;
+			}
+		</style>
+	</head>
+
+	<body>
+		<script src="../build/Three.js"></script>
+		<script src="js/ShaderGodRays.js"></script>
+
+		<script src="js/Detector.js"></script>
+		<script src="js/Stats.js"></script>
+
+		<div id="info">
+			<a href="http://github.com/mrdoob/three.js" target="_blank">three.js</a> - webgl god-rays example - tree by <a href="http://www.turbosquid.com/3d-models/free-tree-3d-model/592617" target="_blank">stanloshka</a>
+		</div>
+
+
+		<script>
+
+			if ( ! Detector.webgl ) Detector.addGetWebGLMessage();
+
+			var container, stats;
+			var camera, scene, renderer, materialDepth;
+
+			var treeMesh, sphereMesh;
+
+			var projector = new THREE.Projector();
+
+			var sunPosition = new THREE.Vector3( 0, 1000, -1000 );
+			var screenSpacePosition = new THREE.Vector3();
+
+			var mouseX = 0, mouseY = 0;
+
+			var windowHalfX = window.innerWidth / 2;
+			var windowHalfY = window.innerHeight / 2;
+
+			var margin = 100;
+			var height = window.innerHeight - 2 * margin;
+
+			var postprocessing = { enabled : true };
+
+			var orbitRadius = 200;
+
+			var bgColor = 0x000511;
+			var sunColor = 0xffee00;
+
+			init();
+			animate();
+
+			function init() {
+
+				container = document.createElement( 'div' );
+				document.body.appendChild( container );
+
+				//
+
+				scene = new THREE.Scene();
+
+				camera = new THREE.PerspectiveCamera( 70, window.innerWidth / height, 1, 3000 );
+				camera.position.z = 200;
+				scene.add( camera );
+
+				//
+
+				// todo - try with fog
+				//scene.fog = new THREE.Fog( 0xffaa55, 1000, FAR );
+				//THREE.ColorUtils.adjustHSV( scene.fog.color, 0.02, -0.15, -0.65 );
+
+				materialDepth = new THREE.MeshDepthMaterial();
+
+				var materialScene = new THREE.MeshBasicMaterial( { color: 0x000000, shading: THREE.FlatShading } );
+
+				// tree
+
+				var loader = new THREE.JSONLoader();
+
+				loader.load( "obj/tree/tree.js", function( geometry ) {
+
+					treeMesh = new THREE.Mesh( geometry, materialScene );
+					treeMesh.position.set( 0, -150, -150 );
+
+					var sc = 400;
+					treeMesh.scale.set( sc, sc, sc );
+
+					treeMesh.matrixAutoUpdate = false;
+					treeMesh.updateMatrix();
+
+					scene.add( treeMesh );
+
+				} );
+
+				// sphere
+
+				var geo = new THREE.SphereGeometry( 1, 20, 10 );
+				sphereMesh = new THREE.Mesh( geo, materialScene );
+
+				var sc = 20;
+				sphereMesh.scale.set( sc, sc, sc );
+
+				scene.add( sphereMesh );
+
+				//
+
+				renderer = new THREE.WebGLRenderer( { antialias: false } );
+				renderer.setSize( window.innerWidth, height );
+				container.appendChild( renderer.domElement );
+
+				renderer.sortObjects = false;
+
+				renderer.autoClear = false;
+				renderer.setClearColorHex( bgColor, 1 );
+
+				renderer.domElement.style.position = 'absolute';
+				renderer.domElement.style.top = margin + "px";
+				renderer.domElement.style.left = "0px";
+
+				//
+
+				stats = new Stats();
+				stats.domElement.style.position = 'absolute';
+				stats.domElement.style.top = '0px';
+				container.appendChild( stats.domElement );
+
+				stats.domElement.children[ 0 ].children[ 0 ].style.color = "#888";
+				stats.domElement.children[ 0 ].style.background = "transparent";
+				stats.domElement.children[ 0 ].children[ 1 ].style.display = "none";
+
+				//
+
+				document.addEventListener( 'mousemove', onDocumentMouseMove, false );
+				document.addEventListener( 'touchstart', onDocumentTouchStart, false );
+				document.addEventListener( 'touchmove', onDocumentTouchMove, false );
+
+				//
+
+				initPostprocessing();
+
+			}
+
+			//
+
+			function onDocumentMouseMove( event ) {
+
+				mouseX = event.clientX - windowHalfX;
+				mouseY = event.clientY - windowHalfY;
+
+			}
+
+			function onDocumentTouchStart( event ) {
+
+				if ( event.touches.length === 1 ) {
+
+					event.preventDefault();
+
+					mouseX = event.touches[ 0 ].pageX - windowHalfX;
+					mouseY = event.touches[ 0 ].pageY - windowHalfY;
+
+				}
+
+			}
+
+			function onDocumentTouchMove( event ) {
+
+				if ( event.touches.length === 1 ) {
+
+					event.preventDefault();
+
+					mouseX = event.touches[ 0 ].pageX - windowHalfX;
+					mouseY = event.touches[ 0 ].pageY - windowHalfY;
+
+				}
+
+			}
+
+			//
+
+			function initPostprocessing() {
+
+				postprocessing.scene = new THREE.Scene();
+
+				postprocessing.camera = new THREE.OrthographicCamera( window.innerWidth / - 2, window.innerWidth / 2,  height / 2, height / - 2, -10000, 10000 );
+				postprocessing.camera.position.z = 100;
+
+				postprocessing.scene.add( postprocessing.camera );
+
+				var pars = { minFilter: THREE.LinearFilter, magFilter: THREE.LinearFilter, format: THREE.RGBFormat };
+				postprocessing.rtTextureColors = new THREE.WebGLRenderTarget( window.innerWidth, height, pars );
+
+				// Switching the depth formats to luminance from rgb doesn't seem to work. I didn't
+				// investigate further for now.
+				// pars.format = THREE.LuminanceFormat;
+
+				// I would have this quarter size and use it as one of the ping-pong render
+				// targets but the aliasing causes some temporal flickering
+
+				postprocessing.rtTextureDepth = new THREE.WebGLRenderTarget( window.innerWidth, height, pars );
+
+				// Aggressive downsize god-ray ping-pong render targets to minimize cost
+
+				var w = window.innerWidth / 4.0;
+				var h = height / 4.0;
+				postprocessing.rtTextureGodRays1 = new THREE.WebGLRenderTarget( w, h, pars );
+				postprocessing.rtTextureGodRays2 = new THREE.WebGLRenderTarget( w, h, pars );
+
+				// god-ray shaders
+
+				var godraysGenShader = THREE.ShaderGodRays[ "godrays_generate" ];
+				postprocessing.godrayGenUniforms = THREE.UniformsUtils.clone( godraysGenShader.uniforms );
+				postprocessing.materialGodraysGenerate = new THREE.ShaderMaterial( {
+
+					uniforms: postprocessing.godrayGenUniforms,
+					vertexShader: godraysGenShader.vertexShader,
+					fragmentShader: godraysGenShader.fragmentShader
+
+				} );
+
+				var godraysCombineShader = THREE.ShaderGodRays[ "godrays_combine" ];
+				postprocessing.godrayCombineUniforms = THREE.UniformsUtils.clone( godraysCombineShader.uniforms );
+				postprocessing.materialGodraysCombine = new THREE.ShaderMaterial( {
+
+					uniforms: postprocessing.godrayCombineUniforms,
+					vertexShader: godraysCombineShader.vertexShader,
+					fragmentShader: godraysCombineShader.fragmentShader
+
+				} );
+
+				var godraysFakeSunShader = THREE.ShaderGodRays[ "godrays_fake_sun" ];
+				postprocessing.godraysFakeSunUniforms = THREE.UniformsUtils.clone( godraysFakeSunShader.uniforms );
+				postprocessing.materialGodraysFakeSun = new THREE.ShaderMaterial( {
+
+					uniforms: postprocessing.godraysFakeSunUniforms,
+					vertexShader: godraysFakeSunShader.vertexShader,
+					fragmentShader: godraysFakeSunShader.fragmentShader
+
+				} );
+
+				postprocessing.godraysFakeSunUniforms.bgColor.value.setHex( bgColor );
+				postprocessing.godraysFakeSunUniforms.sunColor.value.setHex( sunColor );
+
+				postprocessing.godrayCombineUniforms.fGodRayIntensity.value = 0.75;
+
+				postprocessing.quad = new THREE.Mesh( new THREE.PlaneGeometry( window.innerWidth, height ), postprocessing.materialGodraysGenerate );
+				postprocessing.quad.position.z = -9900;
+				postprocessing.quad.rotation.x = Math.PI / 2;
+				postprocessing.scene.add( postprocessing.quad );
+
+			}
+
+			function animate() {
+
+				requestAnimationFrame( animate, renderer.domElement );
+
+				render();
+				stats.update();
+
+			}
+
+			function render() {
+
+				var time = Date.now() / 4000;
+
+				sphereMesh.position.x = orbitRadius * Math.cos( time );
+				sphereMesh.position.z = orbitRadius * Math.sin( time ) - 100;
+
+
+				camera.position.x += ( mouseX - camera.position.x ) * 0.036;
+				camera.position.y += ( - ( mouseY ) - camera.position.y ) * 0.036;
+
+				camera.lookAt( scene.position );
+
+				if ( postprocessing.enabled ) {
+
+					// Find the screenspace position of the sun
+
+					screenSpacePosition.copy( sunPosition );
+					projector.projectVector( screenSpacePosition, camera );
+
+					screenSpacePosition.x = ( screenSpacePosition.x + 1 ) / 2;
+					screenSpacePosition.y = ( screenSpacePosition.y + 1 ) / 2;
+
+					// Give it to the god-ray and sun shaders
+
+					postprocessing.godrayGenUniforms[ "vSunPositionScreenSpace" ].value.x = screenSpacePosition.x;
+					postprocessing.godrayGenUniforms[ "vSunPositionScreenSpace" ].value.y = screenSpacePosition.y;
+
+					postprocessing.godraysFakeSunUniforms[ "vSunPositionScreenSpace" ].value.x = screenSpacePosition.x;
+					postprocessing.godraysFakeSunUniforms[ "vSunPositionScreenSpace" ].value.y = screenSpacePosition.y;
+
+					// -- Draw sky and sun --
+
+					// Clear colors and depths, will clear to sky color
+
+					renderer.clearTarget( postprocessing.rtTextureColors, true, true, false );
+
+					// Sun render. Runs a shader that gives a brightness based on the screen
+					// space distance to the sun. Not very efficient, so i make a scissor
+					// rectangle around the suns position to avoid rendering surrounding pixels.
+
+					var sunsqH = 0.74 * height; // 0.74 depends on extent of sun from shader
+					var sunsqW = 0.74 * height; // both depend on height because sun is aspect-corrected
+
+					screenSpacePosition.x *= window.innerWidth;
+					screenSpacePosition.y *= height;
+
+					renderer.setScissor( screenSpacePosition.x - sunsqW / 2, screenSpacePosition.y - sunsqH / 2, sunsqW, sunsqH );
+					renderer.enableScissorTest( true );
+
+					postprocessing.godraysFakeSunUniforms[ "fAspect" ].value = window.innerWidth / height;
+
+					postprocessing.scene.overrideMaterial = postprocessing.materialGodraysFakeSun;
+					renderer.render( postprocessing.scene, postprocessing.camera, postprocessing.rtTextureColors );
+
+					renderer.enableScissorTest( false );
+
+					// -- Draw scene objects --
+
+					// Colors
+
+					scene.overrideMaterial = null;
+					renderer.render( scene, camera, postprocessing.rtTextureColors );
+
+					// Depth
+
+					scene.overrideMaterial = materialDepth;
+					renderer.render( scene, camera, postprocessing.rtTextureDepth, true );
+
+					// -- Render god-rays --
+
+					// Maximum length of god-rays (in texture space [0,1]X[0,1])
+
+					var filterLen = 1.0;
+
+					// Samples taken by filter
+
+					var TAPS_PER_PASS = 6.0;
+
+					// Pass order could equivalently be 3,2,1 (instead of 1,2,3), which
+					// would start with a small filter support and grow to large. however
+					// the large-to-small order produces less objectionable aliasing artifacts that
+					// appear as a glimmer along the length of the beams
+
+					// pass 1 - render into first ping-pong target
+
+					var pass = 1.0;
+					var stepLen = filterLen * Math.pow( TAPS_PER_PASS, -pass );
+
+					postprocessing.godrayGenUniforms[ "fStepSize" ].value = stepLen;
+					postprocessing.godrayGenUniforms[ "tInput" ].texture = postprocessing.rtTextureDepth;
+
+					postprocessing.scene.overrideMaterial = postprocessing.materialGodraysGenerate;
+
+					renderer.render( postprocessing.scene, postprocessing.camera, postprocessing.rtTextureGodRays2 );
+
+					// pass 2 - render into second ping-pong target
+
+					pass = 2.0;
+					stepLen = filterLen * Math.pow( TAPS_PER_PASS, -pass );
+
+					postprocessing.godrayGenUniforms[ "fStepSize" ].value = stepLen;
+					postprocessing.godrayGenUniforms[ "tInput" ].texture = postprocessing.rtTextureGodRays2;
+
+					renderer.render( postprocessing.scene, postprocessing.camera, postprocessing.rtTextureGodRays1  );
+
+					// pass 3 - 1st RT
+
+					pass = 3.0;
+					stepLen = filterLen * Math.pow( TAPS_PER_PASS, -pass );
+
+					postprocessing.godrayGenUniforms[ "fStepSize" ].value = stepLen;
+					postprocessing.godrayGenUniforms[ "tInput" ].texture = postprocessing.rtTextureGodRays1;
+
+					renderer.render( postprocessing.scene, postprocessing.camera , postprocessing.rtTextureGodRays2  );
+
+					// final pass - composite god-rays onto colors
+
+					postprocessing.godrayCombineUniforms["tColors"].texture = postprocessing.rtTextureColors;
+					postprocessing.godrayCombineUniforms["tGodRays"].texture = postprocessing.rtTextureGodRays2;
+
+					postprocessing.scene.overrideMaterial = postprocessing.materialGodraysCombine;
+
+					renderer.render( postprocessing.scene, postprocessing.camera );
+					postprocessing.scene.overrideMaterial = null;
+
+				} else {
+
+					renderer.clear();
+					renderer.render( scene, camera );
+
+				}
+
+			}
+
+		</script>
+	</body>
+</html>

+ 5 - 8
examples/webgl_ribbons.html

@@ -101,11 +101,8 @@
 
 					}
 
-					vector = new THREE.Vector3( x, y, z );
-					geometry.vertices.push( new THREE.Vertex( vector ) );
-
-					vector = new THREE.Vector3( x, y, z );
-					geometry2.vertices.push( new THREE.Vertex( vector ) );
+					geometry.vertices.push( new THREE.Vertex( x, y, z ) );
+					geometry2.vertices.push( new THREE.Vertex( x, y, z ) );
 
 					h = i2 % 2 ? 1 : 0.15;
 					if( i2 % 4 <= 2 ) h -= 0.15;
@@ -118,7 +115,7 @@
 				}
 
 				var tmpRot = new THREE.Matrix4();
-				tmpRot.setRotationAxis( new THREE.Vector3( 1, 0, 0 ), Math.PI/2 );
+				tmpRot.makeRotationAxis( new THREE.Vector3( 1, 0, 0 ), Math.PI/2 );
 
 				xgrid = 34;
 				ygrid = 15;
@@ -273,8 +270,8 @@
 					z  =  10 * Math.sin( i2 * 0.1 + time*30 );
 					z2 =  20 * Math.cos( Math.sin( i2 * 0.1 + time * 20 ) );
 
-					geometry.vertices[ i2 ].position.z = z;
-					geometry2.vertices[ i2 ].position.z = z2;
+					geometry.vertices[ i2 ].z = z;
+					geometry2.vertices[ i2 ].z = z2;
 
 				}
 

+ 18 - 13
examples/webgl_shading_physical.html

@@ -72,6 +72,8 @@
 
 			var mesh, geometry;
 
+			var cubeCamera;
+
 			var sunLight, pointLight, ambientLight;
 
 			var morph;
@@ -136,7 +138,7 @@
 				// CUBE CAMERA
 
 				cubeCamera = new THREE.CubeCamera( 1, FAR, 128 );
-				var cubeTarget = cubeCamera.renderTarget;
+				scene.add( cubeCamera );
 
 				// TEXTURES
 
@@ -205,7 +207,7 @@
 				// MATERIALS
 
 				var shader = THREE.ShaderUtils.lib[ "cube" ];
-				shader.uniforms[ "tCube" ].texture = cubeTarget;
+				shader.uniforms[ "tCube" ].texture = cubeCamera.renderTarget;
 				shader.uniforms[ "tFlip" ].value = 1;
 
 				var materialCube = new THREE.ShaderMaterial( {
@@ -218,7 +220,7 @@
 
 				var materialLambert = new THREE.MeshPhongMaterial( { shininess: 50, ambient: 0x444444, color: 0xffffff, map: textureNoiseColor } );
 				var materialPhong = new THREE.MeshPhongMaterial( { shininess: 50, ambient: 0x444444, color: 0xffffff, specular: 0x999999, map: textureLava } );
-				var materialPhongCube = new THREE.MeshPhongMaterial( { shininess: 50, ambient: 0x444444, color: 0xffffff, specular: 0x999999, envMap: cubeTarget } );
+				var materialPhongCube = new THREE.MeshPhongMaterial( { shininess: 50, ambient: 0x444444, color: 0xffffff, specular: 0x999999, envMap: cubeCamera.renderTarget } );
 
 				// OBJECTS
 
@@ -511,23 +513,26 @@
 
 			function onKeyDown ( event ) {
 
-				switch( event.keyCode ) {
+				switch ( event.keyCode ) {
+
+					case 78: /*N*/
+
+						if ( tweenDirection == 1 ) {
 
-					case 78: /*N*/   if ( tweenDirection == 1 ) {
+							tweenDay.stop();
+							tweenNight.start();
 
-										tweenDay.stop();
-										tweenNight.start();
+							tweenDirection = -1;
 
-										tweenDirection = -1;
+						} else {
 
-									} else {
+							tweenNight.stop();
+							tweenDay.start();
 
-										tweenNight.stop();
-										tweenDay.start();
+							tweenDirection = 1;
 
-										tweenDirection = 1;
+						}
 
-									}
 					break;
 
 				}

+ 5 - 7
examples/webgl_trackballcamera_earth.html

@@ -194,16 +194,14 @@
 
 				// stars
 
-				var i,
-				vector,
-				starsGeometry = new THREE.Geometry();
+				var starsGeometry = new THREE.Geometry();
 
-				for ( i = 0; i < 1500; i ++ ) {
+				for ( var i = 0; i < 1500; i ++ ) {
 
-					vector = new THREE.Vector3( Math.random() * 2 - 1, Math.random() * 2 - 1, Math.random() * 2 - 1 );
-					vector.multiplyScalar( radius );
+					var vertex = new THREE.Vertex( Math.random() * 2 - 1, Math.random() * 2 - 1, Math.random() * 2 - 1 );
+					vertex.multiplyScalar( radius );
 
-					starsGeometry.vertices.push( new THREE.Vertex( vector ) );
+					starsGeometry.vertices.push( vertex );
 
 				}
 

+ 3 - 3
examples/webgl_trails.html

@@ -56,9 +56,9 @@
 				for ( var i = 0; i < 2000; i ++ ) {
 
 					var vertex = new THREE.Vertex();
-					vertex.position.x = Math.random() * 4000 - 2000;
-					vertex.position.y = Math.random() * 4000 - 2000;
-					vertex.position.z = Math.random() * 4000 - 2000;
+					vertex.x = Math.random() * 4000 - 2000;
+					vertex.y = Math.random() * 4000 - 2000;
+					vertex.z = Math.random() * 4000 - 2000;
 					geometry.vertices.push( vertex );
 
 					geometry.colors.push( new THREE.Color( colors[ Math.floor( Math.random() * colors.length ) ] ) );

+ 0 - 1
gui/js/UI.Viewport.js

@@ -35,7 +35,6 @@ UI.Viewport = function () {
 	var _sceneHelpers = new THREE.Scene();
 
 	var _grid = new THREE.Mesh( new THREE.PlaneGeometry( 1000, 1000, 20, 20 ), new THREE.MeshBasicMaterial( { color: 0x606060, wireframe: true, transparent: true } ) );
-	_grid.rotation.x = Math.PI / 2;
 	_sceneHelpers.add( _grid );
 
 	//

+ 33 - 24
src/Three.js

@@ -17,27 +17,36 @@ if ( ! self.Int32Array ) {
 // requestAnimationFrame polyfill by Erik Möller
 // fixes from Paul Irish and Tino Zijdel
 
-(function() {
-    var lastTime = 0;
-    var vendors = ['ms', 'moz', 'webkit', 'o'];
-    for(var x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) {
-        window.requestAnimationFrame = window[vendors[x]+'RequestAnimationFrame'];
-        window.cancelAnimationFrame = window[vendors[x]+'CancelAnimationFrame'] 
-                                   || window[vendors[x]+'CancelRequestAnimationFrame'];
-    }
- 
-    if (!window.requestAnimationFrame)
-        window.requestAnimationFrame = function(callback, element) {
-            var currTime = new Date().getTime();
-            var timeToCall = Math.max(0, 16 - (currTime - lastTime));
-            var id = window.setTimeout(function() { callback(currTime + timeToCall); }, 
-              timeToCall);
-            lastTime = currTime + timeToCall;
-            return id;
-        };
- 
-    if (!window.cancelAnimationFrame)
-        window.cancelAnimationFrame = function(id) {
-            clearTimeout(id);
-        };
-}());
+( function () {
+
+	var lastTime = 0;
+	var vendors = [ 'ms', 'moz', 'webkit', 'o' ];
+
+	for ( var x = 0; x < vendors.length && !window.requestAnimationFrame; ++ x ) {
+
+		window.requestAnimationFrame = window[ vendors[ x ] + 'RequestAnimationFrame' ];
+		window.cancelAnimationFrame = window[ vendors[ x ] + 'CancelAnimationFrame' ] || window[ vendors[ x ] + 'CancelRequestAnimationFrame' ];
+
+	}
+
+	if ( !window.requestAnimationFrame ) {
+
+		window.requestAnimationFrame = function ( callback, element ) {
+
+			var currTime = Date.now(), timeToCall = Math.max( 0, 16 - ( currTime - lastTime ) );
+			var id = window.setTimeout( function() { callback( currTime + timeToCall ); }, timeToCall );
+			lastTime = currTime + timeToCall;
+			return id;
+
+		};
+
+	}
+
+
+	if ( !window.cancelAnimationFrame ) {
+
+		window.cancelAnimationFrame = function ( id ) { clearTimeout( id ); };
+
+	}
+
+}() );

+ 17 - 17
src/core/Geometry.js

@@ -49,7 +49,7 @@ THREE.Geometry.prototype = {
 
 			var vertex = this.vertices[ i ];
 
-			matrix.multiplyVector3( vertex.position );
+			matrix.multiplyVector3( vertex );
 
 		}
 
@@ -82,17 +82,17 @@ THREE.Geometry.prototype = {
 
 			if ( face instanceof THREE.Face3 ) {
 
-				face.centroid.addSelf( this.vertices[ face.a ].position );
-				face.centroid.addSelf( this.vertices[ face.b ].position );
-				face.centroid.addSelf( this.vertices[ face.c ].position );
+				face.centroid.addSelf( this.vertices[ face.a ] );
+				face.centroid.addSelf( this.vertices[ face.b ] );
+				face.centroid.addSelf( this.vertices[ face.c ] );
 				face.centroid.divideScalar( 3 );
 
 			} else if ( face instanceof THREE.Face4 ) {
 
-				face.centroid.addSelf( this.vertices[ face.a ].position );
-				face.centroid.addSelf( this.vertices[ face.b ].position );
-				face.centroid.addSelf( this.vertices[ face.c ].position );
-				face.centroid.addSelf( this.vertices[ face.d ].position );
+				face.centroid.addSelf( this.vertices[ face.a ] );
+				face.centroid.addSelf( this.vertices[ face.b ] );
+				face.centroid.addSelf( this.vertices[ face.c ] );
+				face.centroid.addSelf( this.vertices[ face.d ] );
 				face.centroid.divideScalar( 4 );
 
 			}
@@ -114,8 +114,8 @@ THREE.Geometry.prototype = {
 			vB = this.vertices[ face.b ];
 			vC = this.vertices[ face.c ];
 
-			cb.sub( vC.position, vB.position );
-			ab.sub( vA.position, vB.position );
+			cb.sub( vC, vB );
+			ab.sub( vA, vB );
 			cb.crossSelf( ab );
 
 			if ( !cb.isZero() ) {
@@ -388,9 +388,9 @@ THREE.Geometry.prototype = {
 
 		function handleTriangle( context, a, b, c, ua, ub, uc ) {
 
-			vA = context.vertices[ a ].position;
-			vB = context.vertices[ b ].position;
-			vC = context.vertices[ c ].position;
+			vA = context.vertices[ a ];
+			vB = context.vertices[ b ];
+			vC = context.vertices[ c ];
 
 			uvA = uv[ ua ];
 			uvB = uv[ ub ];
@@ -489,7 +489,7 @@ THREE.Geometry.prototype = {
 
 		if ( this.vertices.length > 0 ) {
 
-			var position, firstPosition = this.vertices[ 0 ].position;
+			var position, firstPosition = this.vertices[ 0 ];
 
 			this.boundingBox.min.copy( firstPosition );
 			this.boundingBox.max.copy( firstPosition );
@@ -499,7 +499,7 @@ THREE.Geometry.prototype = {
 
 			for ( var v = 1, vl = this.vertices.length; v < vl; v ++ ) {
 
-				position = this.vertices[ v ].position;
+				position = this.vertices[ v ];
 
 				if ( position.x < min.x ) {
 
@@ -550,7 +550,7 @@ THREE.Geometry.prototype = {
 
 		for ( var v = 0, vl = this.vertices.length; v < vl; v ++ ) {
 
-			radius = this.vertices[ v ].position.length();
+			radius = this.vertices[ v ].length();
 			if ( radius > maxRadius ) maxRadius = radius;
 
 		}
@@ -577,7 +577,7 @@ THREE.Geometry.prototype = {
 
 		for ( i = 0, il = this.vertices.length; i < il; i ++ ) {
 
-			v = this.vertices[ i ].position;
+			v = this.vertices[ i ];
 			key = [ Math.round( v.x * precision ), Math.round( v.y * precision ), Math.round( v.z * precision ) ].join( '_' );
 
 			if ( verticesMap[ key ] === undefined ) {

+ 1 - 1
src/core/Object3D.js

@@ -114,7 +114,7 @@ THREE.Object3D.prototype = {
 
 		}
 
-		if ( this.children.indexOf( object ) === - 1 ) {
+		if ( object instanceof THREE.Object3D ) { // && this.children.indexOf( object ) === - 1
 
 			if ( object.parent !== undefined ) {
 

+ 3 - 3
src/core/Projector.js

@@ -178,7 +178,7 @@ THREE.Projector = function() {
 				for ( v = 0, vl = vertices.length; v < vl; v ++ ) {
 
 					_vertex = getNextVertexInPool();
-					_vertex.positionWorld.copy( vertices[ v ].position );
+					_vertex.positionWorld.copy( vertices[ v ] );
 
 					objectMatrixWorld.multiplyVector3( _vertex.positionWorld );
 
@@ -316,7 +316,7 @@ THREE.Projector = function() {
 				vertices = object.geometry.vertices;
 				
 				v1 = getNextVertexInPool();
-				v1.positionScreen.copy( vertices[ 0 ].position );
+				v1.positionScreen.copy( vertices[ 0 ] );
 				_projScreenobjectMatrixWorld.multiplyVector4( v1.positionScreen );
 
 				// Handle LineStrip and LinePieces
@@ -325,7 +325,7 @@ THREE.Projector = function() {
 				for ( v = 1, vl = vertices.length; v < vl; v ++ ) {
 
 					v1 = getNextVertexInPool();
-					v1.positionScreen.copy( vertices[ v ].position );
+					v1.positionScreen.copy( vertices[ v ] );
 					_projScreenobjectMatrixWorld.multiplyVector4( v1.positionScreen );
 
 					if ( ( v + 1 ) % step > 0 ) continue;

+ 8 - 8
src/core/Ray.js

@@ -108,9 +108,9 @@ THREE.Ray = function ( origin, direction ) {
 
 					if ( face instanceof THREE.Face3 ) {
 
-						a = objMatrix.multiplyVector3( a.copy( vertices[ face.a ].position ) );
-						b = objMatrix.multiplyVector3( b.copy( vertices[ face.b ].position ) );
-						c = objMatrix.multiplyVector3( c.copy( vertices[ face.c ].position ) );
+						a = objMatrix.multiplyVector3( a.copy( vertices[ face.a ] ) );
+						b = objMatrix.multiplyVector3( b.copy( vertices[ face.b ] ) );
+						c = objMatrix.multiplyVector3( c.copy( vertices[ face.c ] ) );
 
 						if ( pointInFace3( intersectPoint, a, b, c ) ) {
 
@@ -129,10 +129,10 @@ THREE.Ray = function ( origin, direction ) {
 
 					} else if ( face instanceof THREE.Face4 ) {
 
-						a = objMatrix.multiplyVector3( a.copy( vertices[ face.a ].position ) );
-						b = objMatrix.multiplyVector3( b.copy( vertices[ face.b ].position ) );
-						c = objMatrix.multiplyVector3( c.copy( vertices[ face.c ].position ) );
-						d = objMatrix.multiplyVector3( d.copy( vertices[ face.d ].position ) );
+						a = objMatrix.multiplyVector3( a.copy( vertices[ face.a ] ) );
+						b = objMatrix.multiplyVector3( b.copy( vertices[ face.b ] ) );
+						c = objMatrix.multiplyVector3( c.copy( vertices[ face.c ] ) );
+						d = objMatrix.multiplyVector3( d.copy( vertices[ face.d ] ) );
 
 						if ( pointInFace3( intersectPoint, a, b, d ) || pointInFace3( intersectPoint, b, c, d ) ) {
 
@@ -216,4 +216,4 @@ THREE.Ray = function ( origin, direction ) {
 
 	}
 
-};
+};

+ 1 - 17
src/core/Vertex.js

@@ -2,20 +2,4 @@
  * @author mr.doob / http://mrdoob.com/
  */
 
-THREE.Vertex = function ( position ) {
-
-	this.position = position || new THREE.Vector3();
-
-};
-
-THREE.Vertex.prototype = {
-
-	constructor: THREE.Vertex,
-
-	clone: function () {
-
-		return new THREE.Vertex( this.position.clone() );
-
-	}
-
-};
+THREE.Vertex = THREE.Vector3;

+ 31 - 31
src/extras/GeometryUtils.js

@@ -48,7 +48,7 @@ THREE.GeometryUtils = {
 
 			var vertexCopy = vertex.clone();
 
-			if ( matrix ) matrix.multiplyVector3( vertexCopy.position );
+			if ( matrix ) matrix.multiplyVector3( vertexCopy );
 
 			vertices1.push( vertexCopy );
 
@@ -246,18 +246,18 @@ THREE.GeometryUtils = {
 
 		if ( face instanceof THREE.Face3 ) {
 
-			vA = geometry.vertices[ face.a ].position;
-			vB = geometry.vertices[ face.b ].position;
-			vC = geometry.vertices[ face.c ].position;
+			vA = geometry.vertices[ face.a ];
+			vB = geometry.vertices[ face.b ];
+			vC = geometry.vertices[ face.c ];
 
 			return THREE.GeometryUtils.randomPointInTriangle( vA, vB, vC );
 
 		} else if ( face instanceof THREE.Face4 ) {
 
-			vA = geometry.vertices[ face.a ].position;
-			vB = geometry.vertices[ face.b ].position;
-			vC = geometry.vertices[ face.c ].position;
-			vD = geometry.vertices[ face.d ].position;
+			vA = geometry.vertices[ face.a ];
+			vB = geometry.vertices[ face.b ];
+			vC = geometry.vertices[ face.c ];
+			vD = geometry.vertices[ face.d ];
 
 			var area1, area2;
 
@@ -325,18 +325,18 @@ THREE.GeometryUtils = {
 
 			if ( face instanceof THREE.Face3 ) {
 
-				vA = vertices[ face.a ].position;
-				vB = vertices[ face.b ].position;
-				vC = vertices[ face.c ].position;
+				vA = vertices[ face.a ];
+				vB = vertices[ face.b ];
+				vC = vertices[ face.c ];
 
 				face._area = THREE.GeometryUtils.triangleArea( vA, vB, vC );
 
 			} else if ( face instanceof THREE.Face4 ) {
 
-				vA = vertices[ face.a ].position;
-				vB = vertices[ face.b ].position;
-				vC = vertices[ face.c ].position;
-				vD = vertices[ face.d ].position;
+				vA = vertices[ face.a ];
+				vB = vertices[ face.b ];
+				vC = vertices[ face.c ];
+				vD = vertices[ face.d ];
 
 				face._area1 = THREE.GeometryUtils.triangleArea( vA, vB, vD );
 				face._area2 = THREE.GeometryUtils.triangleArea( vB, vC, vD );
@@ -712,9 +712,9 @@ THREE.GeometryUtils = {
 				vb = geometry.vertices[ b ];
 				vc = geometry.vertices[ c ];
 
-				dab = va.position.distanceTo( vb.position );
-				dbc = vb.position.distanceTo( vc.position );
-				dac = va.position.distanceTo( vc.position );
+				dab = va.distanceTo( vb );
+				dbc = vb.distanceTo( vc );
+				dac = va.distanceTo( vc );
 
 				if ( dab > maxEdgeLength || dbc > maxEdgeLength || dac > maxEdgeLength ) {
 
@@ -726,7 +726,7 @@ THREE.GeometryUtils = {
 					if ( dab >= dbc && dab >= dac ) {
 
 						vm = va.clone();
-						vm.position.lerpSelf( vb.position, 0.5 );
+						vm.lerpSelf( vb, 0.5 );
 
 						triA.a = a;
 						triA.b = m;
@@ -761,7 +761,7 @@ THREE.GeometryUtils = {
 					} else if ( dbc >= dab && dbc >= dac ) {
 
 						vm = vb.clone();
-						vm.position.lerpSelf( vc.position, 0.5 );
+						vm.lerpSelf( vc, 0.5 );
 
 						triA.a = a;
 						triA.b = b;
@@ -802,7 +802,7 @@ THREE.GeometryUtils = {
 					} else {
 
 						vm = va.clone();
-						vm.position.lerpSelf( vc.position, 0.5 );
+						vm.lerpSelf( vc, 0.5 );
 
 						triA.a = a;
 						triA.b = b;
@@ -895,7 +895,7 @@ THREE.GeometryUtils = {
 
 					for ( j = 0, jl = geometry.faceVertexUvs.length; j < jl; j ++ ) {
 
-						faceVertexUvs[ j ].push( geometry.faceVertexUvs[ j ] );
+						faceVertexUvs[ j ].push( geometry.faceVertexUvs[ j ][ i ] );
 
 					}
 
@@ -913,10 +913,10 @@ THREE.GeometryUtils = {
 				vc = geometry.vertices[ c ];
 				vd = geometry.vertices[ d ];
 
-				dab = va.position.distanceTo( vb.position );
-				dbc = vb.position.distanceTo( vc.position );
-				dcd = vc.position.distanceTo( vd.position );
-				dad = va.position.distanceTo( vd.position );
+				dab = va.distanceTo( vb );
+				dbc = vb.distanceTo( vc );
+				dcd = vc.distanceTo( vd );
+				dad = va.distanceTo( vd );
 
 				if ( dab > maxEdgeLength || dbc > maxEdgeLength || dcd > maxEdgeLength || dad > maxEdgeLength ) {
 
@@ -929,10 +929,10 @@ THREE.GeometryUtils = {
 					if ( ( dab >= dbc && dab >= dcd && dab >= dad ) || ( dcd >= dbc && dcd >= dab && dcd >= dad ) ) {
 
 						vm1 = va.clone();
-						vm1.position.lerpSelf( vb.position, 0.5 );
+						vm1.lerpSelf( vb, 0.5 );
 
 						vm2 = vc.clone();
-						vm2.position.lerpSelf( vd.position, 0.5 );
+						vm2.lerpSelf( vd, 0.5 );
 
 						quadA.a = a;
 						quadA.b = m1;
@@ -981,10 +981,10 @@ THREE.GeometryUtils = {
 					} else {
 
 						vm1 = vb.clone();
-						vm1.position.lerpSelf( vc.position, 0.5 );
+						vm1.lerpSelf( vc, 0.5 );
 
 						vm2 = vd.clone();
-						vm2.position.lerpSelf( va.position, 0.5 );
+						vm2.lerpSelf( va, 0.5 );
 
 						quadA.a = a;
 						quadA.b = b;
@@ -1088,7 +1088,7 @@ THREE.GeometryUtils = {
 
 					for ( j = 0, jl = geometry.faceVertexUvs.length; j < jl; j ++ ) {
 
-						faceVertexUvs[ j ].push( geometry.faceVertexUvs[ j ] );
+						faceVertexUvs[ j ].push( geometry.faceVertexUvs[ j ][ i ] );
 
 					}
 

+ 30 - 6
src/extras/cameras/CombinedCamera.js

@@ -1,8 +1,10 @@
 /*
  *	@author zz85 / http://twitter.com/blurspline / http://www.lab4games.net/zz85/blog 
  * 
- *	A handy general perpose camera, for setting FOV, Lens Focal Length,  
+ *	A general perpose camera, for setting FOV, Lens Focal Length,  
  *		and switching between perspective and orthographic views easily.
+ *		Use this only if you do not wish to manage 
+ *		both a Orthographic and Perspective Camera
  *
  */
 
@@ -35,9 +37,10 @@ THREE.CombinedCamera = function ( width, height, fov, near, far, orthonear, orth
 };
 
 THREE.CombinedCamera.prototype = new THREE.Camera();
-THREE.CombinedCamera.prototype.constructor = THREE.CoolCamera;
+THREE.CombinedCamera.prototype.constructor = THREE.CombinedCamera;
 
 THREE.CombinedCamera.prototype.toPerspective = function () {
+	// Switches to the Perspective Camera
 
 	this.near = this.cameraP.near;
 	this.far = this.cameraP.far;
@@ -52,14 +55,14 @@ THREE.CombinedCamera.prototype.toPerspective = function () {
 
 THREE.CombinedCamera.prototype.toOrthographic = function () {
 
-	// Orthographic from Perspective
+	// Switches to the Orthographic camera estimating viewport from Perspective
 	var fov = this.fov;
 	var aspect = this.cameraP.aspect;
 	var near = this.cameraP.near;
 	var far = this.cameraP.far;
 	
 	
-	// Just pretend we want the mid plane of the viewing frustum
+	// The size that we set is the mid plane of the viewing frustum
 	var hyperfocus = ( near + far ) / 2; 
 	
 	var halfHeight = Math.tan( fov / 2 ) * hyperfocus;
@@ -96,6 +99,18 @@ THREE.CombinedCamera.prototype.toOrthographic = function () {
 
 };
 
+	
+THREE.CombinedCamera.prototype.setSize = function(width, height) {
+
+	this.cameraP.aspect = width / height;
+	this.left = -width / 2;
+	this.right = width / 2
+	this.top = height / 2;
+	this.bottom = -height / 2;
+
+}
+
+
 THREE.CombinedCamera.prototype.setFov = function(fov) {	
 	this.fov = fov;
 	
@@ -107,6 +122,16 @@ THREE.CombinedCamera.prototype.setFov = function(fov) {
 
 };
 
+// For mantaining similar API with PerspectiveCamera
+THREE.CombinedCamera.prototype.updateProjectionMatrix = function() {
+	if (this.inPersepectiveMode) {
+		this.toPerspective();
+	} else {
+		this.toPerspective();
+		this.toOrthographic();
+	}
+};
+
 /*
 * Uses Focal Length (in mm) to estimate and set FOV
 * 35mm (fullframe) camera is used if frame size is not specified;
@@ -141,8 +166,7 @@ THREE.CombinedCamera.prototype.toFrontView = function() {
 	this.rotation.x = 0;
 	this.rotation.y = 0;
 	this.rotation.z = 0;
-	
-	//TODO: Better way to disable camera.lookAt()?
+	// should we be modifing the matrix instead?
 	this.rotationAutoUpdate = false;
 };
 

部分文件因为文件数量过多而无法显示