|
@@ -257,11 +257,11 @@ b){Ba.call(this,a,b);this.animationsMap={};this.animationsList=[];var c=this.geo
|
|
|
b);ha.call(this,c,new ja({color:a,linewidth:d}));this.matrixAutoUpdate=!1;this.update()}function kc(a){v.call(this);this.light=a;this.light.updateMatrixWorld();this.matrix=a.matrixWorld;this.matrixAutoUpdate=!1;a=new H;for(var b=[0,0,0,0,0,1,0,0,0,1,0,1,0,0,0,-1,0,1,0,0,0,0,1,1,0,0,0,0,-1,1],c=0,d=1;32>c;c++,d++){var e=c/32*Math.PI*2,f=d/32*Math.PI*2;b.push(Math.cos(e),Math.sin(e),1,Math.cos(f),Math.sin(f),1)}a.addAttribute("position",new y(b,3));b=new ja({fog:!1});this.cone=new ha(a,b);this.add(this.cone);
|
|
|
this.update()}function lc(a){this.bones=this.getBoneList(a);for(var b=new H,c=[],d=[],e=new I(0,0,1),f=new I(0,1,0),g=0;g<this.bones.length;g++){var h=this.bones[g];h.parent&&h.parent.isBone&&(c.push(0,0,0),c.push(0,0,0),d.push(e.r,e.g,e.b),d.push(f.r,f.g,f.b))}b.addAttribute("position",new y(c,3));b.addAttribute("color",new y(d,3));c=new ja({vertexColors:2,depthTest:!1,depthWrite:!1,transparent:!0});ha.call(this,b,c);this.root=a;this.matrix=a.matrixWorld;this.matrixAutoUpdate=!1;this.update()}function mc(a,
|
|
|
b){this.light=a;this.light.updateMatrixWorld();var c=new nb(b,4,2),d=new La({wireframe:!0,fog:!1});d.color.copy(this.light.color).multiplyScalar(this.light.intensity);Ba.call(this,c,d);this.matrix=this.light.matrixWorld;this.matrixAutoUpdate=!1}function nc(a){v.call(this);this.light=a;this.light.updateMatrixWorld();var b=new La({color:a.color,fog:!1});a=new La({color:a.color,fog:!1,wireframe:!0});var c=new H;c.addAttribute("position",new N(new Float32Array(18),3));this.add(new Ba(c,b));this.add(new Ba(c,
|
|
|
-a));this.update()}function oc(a,b){v.call(this);this.light=a;this.light.updateMatrixWorld();this.matrix=a.matrixWorld;this.matrixAutoUpdate=!1;var c=new mb(b);c.rotateY(.5*Math.PI);var d=new La({vertexColors:2,wireframe:!0}),e=c.getAttribute("position"),e=new Float32Array(3*e.count);c.addAttribute("color",new N(e,3));this.add(new Ba(c,d));this.update()}function ed(a,b,c,d){a=a||10;b=b||10;c=new I(void 0!==c?c:4473924);d=new I(void 0!==d?d:8947848);for(var e=b/2,f=2*a/b,g=[],h=[],m=0,k=0,l=-a;m<=b;m++,
|
|
|
-l+=f){g.push(-a,0,l,a,0,l);g.push(l,0,-a,l,0,a);var p=m===e?c:d;p.toArray(h,k);k+=3;p.toArray(h,k);k+=3;p.toArray(h,k);k+=3;p.toArray(h,k);k+=3}a=new H;a.addAttribute("position",new y(g,3));a.addAttribute("color",new y(h,3));g=new ja({vertexColors:2});ha.call(this,a,g)}function Kd(a,b,c,d,e,f){a=a||10;b=b||16;c=c||8;d=d||64;e=new I(void 0!==e?e:4473924);f=new I(void 0!==f?f:8947848);var g=[],h=[],m,k,l,p,n;for(l=0;l<=b;l++)k=l/b*2*Math.PI,m=Math.sin(k)*a,k=Math.cos(k)*a,g.push(0,0,0),g.push(m,0,k),
|
|
|
-n=l&1?e:f,h.push(n.r,n.g,n.b),h.push(n.r,n.g,n.b);for(l=0;l<=c;l++)for(n=l&1?e:f,p=a-a/c*l,b=0;b<d;b++)k=b/d*2*Math.PI,m=Math.sin(k)*p,k=Math.cos(k)*p,g.push(m,0,k),h.push(n.r,n.g,n.b),k=(b+1)/d*2*Math.PI,m=Math.sin(k)*p,k=Math.cos(k)*p,g.push(m,0,k),h.push(n.r,n.g,n.b);a=new H;a.addAttribute("position",new y(g,3));a.addAttribute("color",new y(h,3));g=new ja({vertexColors:2});ha.call(this,a,g)}function fd(a,b,c,d){this.object=a;this.size=void 0!==b?b:1;a=void 0!==c?c:16776960;d=void 0!==d?d:1;b=0;
|
|
|
-(c=this.object.geometry)&&c.isGeometry?b=c.faces.length:console.warn("THREE.FaceNormalsHelper: only THREE.Geometry is supported. Use THREE.VertexNormalsHelper, instead.");c=new H;b=new y(6*b,3);c.addAttribute("position",b);ha.call(this,c,new ja({color:a,linewidth:d}));this.matrixAutoUpdate=!1;this.update()}function pc(a,b){v.call(this);this.light=a;this.light.updateMatrixWorld();this.matrix=a.matrixWorld;this.matrixAutoUpdate=!1;void 0===b&&(b=1);var c=new H;c.addAttribute("position",new y([-b,b,
|
|
|
-0,b,b,0,b,-b,0,-b,-b,0,-b,b,0],3));var d=new ja({fog:!1});this.add(new Va(c,d));c=new H;c.addAttribute("position",new y([0,0,0,0,0,1],3));this.add(new Va(c,d));this.update()}function gd(a){function b(a,b,d){c(a,d);c(b,d)}function c(a,b){f.push(0,0,0);g.push(b.r,b.g,b.b);void 0===h[a]&&(h[a]=[]);h[a].push(f.length/3-1)}var d=new H,e=new ja({color:16777215,vertexColors:1}),f=[],g=[],h={},m=new I(16755200),k=new I(16711680),l=new I(43775),p=new I(16777215),n=new I(3355443);b("n1","n2",m);b("n2","n4",
|
|
|
+a));this.update()}function oc(a,b){v.call(this);this.light=a;this.light.updateMatrixWorld();this.matrix=a.matrixWorld;this.matrixAutoUpdate=!1;var c=new mb(b);c.rotateY(.5*Math.PI);var d=new La({vertexColors:2,wireframe:!0}),e=c.getAttribute("position"),e=new Float32Array(3*e.count);c.addAttribute("color",new N(e,3));this.add(new Ba(c,d));this.update()}function ed(a,b,c,d){a=a||10;b=b||10;c=new I(void 0!==c?c:4473924);d=new I(void 0!==d?d:8947848);var e=b/2,f=a/b,g=a/2;a=[];for(var h=[],m=0,k=0,l=
|
|
|
+-g;m<=b;m++,l+=f){a.push(-g,0,l,g,0,l);a.push(l,0,-g,l,0,g);var p=m===e?c:d;p.toArray(h,k);k+=3;p.toArray(h,k);k+=3;p.toArray(h,k);k+=3;p.toArray(h,k);k+=3}b=new H;b.addAttribute("position",new y(a,3));b.addAttribute("color",new y(h,3));c=new ja({vertexColors:2});ha.call(this,b,c)}function Kd(a,b,c,d,e,f){a=a||10;b=b||16;c=c||8;d=d||64;e=new I(void 0!==e?e:4473924);f=new I(void 0!==f?f:8947848);var g=[],h=[],m,k,l,p,n;for(l=0;l<=b;l++)k=l/b*2*Math.PI,m=Math.sin(k)*a,k=Math.cos(k)*a,g.push(0,0,0),
|
|
|
+g.push(m,0,k),n=l&1?e:f,h.push(n.r,n.g,n.b),h.push(n.r,n.g,n.b);for(l=0;l<=c;l++)for(n=l&1?e:f,p=a-a/c*l,b=0;b<d;b++)k=b/d*2*Math.PI,m=Math.sin(k)*p,k=Math.cos(k)*p,g.push(m,0,k),h.push(n.r,n.g,n.b),k=(b+1)/d*2*Math.PI,m=Math.sin(k)*p,k=Math.cos(k)*p,g.push(m,0,k),h.push(n.r,n.g,n.b);a=new H;a.addAttribute("position",new y(g,3));a.addAttribute("color",new y(h,3));g=new ja({vertexColors:2});ha.call(this,a,g)}function fd(a,b,c,d){this.object=a;this.size=void 0!==b?b:1;a=void 0!==c?c:16776960;d=void 0!==
|
|
|
+d?d:1;b=0;(c=this.object.geometry)&&c.isGeometry?b=c.faces.length:console.warn("THREE.FaceNormalsHelper: only THREE.Geometry is supported. Use THREE.VertexNormalsHelper, instead.");c=new H;b=new y(6*b,3);c.addAttribute("position",b);ha.call(this,c,new ja({color:a,linewidth:d}));this.matrixAutoUpdate=!1;this.update()}function pc(a,b){v.call(this);this.light=a;this.light.updateMatrixWorld();this.matrix=a.matrixWorld;this.matrixAutoUpdate=!1;void 0===b&&(b=1);var c=new H;c.addAttribute("position",new y([-b,
|
|
|
+b,0,b,b,0,b,-b,0,-b,-b,0,-b,b,0],3));var d=new ja({fog:!1});this.add(new Va(c,d));c=new H;c.addAttribute("position",new y([0,0,0,0,0,1],3));this.add(new Va(c,d));this.update()}function gd(a){function b(a,b,d){c(a,d);c(b,d)}function c(a,b){f.push(0,0,0);g.push(b.r,b.g,b.b);void 0===h[a]&&(h[a]=[]);h[a].push(f.length/3-1)}var d=new H,e=new ja({color:16777215,vertexColors:1}),f=[],g=[],h={},m=new I(16755200),k=new I(16711680),l=new I(43775),p=new I(16777215),n=new I(3355443);b("n1","n2",m);b("n2","n4",
|
|
|
m);b("n4","n3",m);b("n3","n1",m);b("f1","f2",m);b("f2","f4",m);b("f4","f3",m);b("f3","f1",m);b("n1","f1",m);b("n2","f2",m);b("n3","f3",m);b("n4","f4",m);b("p","n1",k);b("p","n2",k);b("p","n3",k);b("p","n4",k);b("u1","u2",l);b("u2","u3",l);b("u3","u1",l);b("c","t",p);b("p","c",n);b("cn1","cn2",n);b("cn3","cn4",n);b("cf1","cf2",n);b("cf3","cf4",n);d.addAttribute("position",new y(f,3));d.addAttribute("color",new y(g,3));ha.call(this,d,e);this.camera=a;this.camera.updateProjectionMatrix&&this.camera.updateProjectionMatrix();
|
|
|
this.matrix=a.matrixWorld;this.matrixAutoUpdate=!1;this.pointMap=h;this.update()}function qc(a,b){void 0===b&&(b=16776960);var c=new Uint16Array([0,1,1,2,2,3,3,0,4,5,5,6,6,7,7,4,0,4,1,5,2,6,3,7]),d=new Float32Array(24),e=new H;e.setIndex(new N(c,1));e.addAttribute("position",new N(d,3));ha.call(this,e,new ja({color:b}));void 0!==a&&this.update(a)}function Db(a,b,c,d,e,f){v.call(this);void 0===d&&(d=16776960);void 0===c&&(c=1);void 0===e&&(e=.2*c);void 0===f&&(f=.2*e);this.position.copy(b);this.line=
|
|
|
new Va(Te,new ja({color:d}));this.line.matrixAutoUpdate=!1;this.add(this.line);this.cone=new Ba(Ue,new La({color:d}));this.cone.matrixAutoUpdate=!1;this.add(this.cone);this.setDirection(a);this.setLength(c,e,f)}function Ld(a){a=a||1;var b=[0,0,0,a,0,0,0,0,0,0,a,0,0,0,0,0,0,a];a=new H;a.addAttribute("position",new y(b,3));a.addAttribute("color",new y([1,0,0,1,.6,0,0,1,0,.6,1,0,0,0,1,0,.6,1],3));b=new ja({vertexColors:2});ha.call(this,a,b)}function re(){var a=0,b=0,c=0,d=0;return{initCatmullRom:function(e,
|