|
@@ -606,7 +606,7 @@ c.addAttribute("lineDistance",new THREE.Float32BufferAttribute(e,1))}else consol
|
|
|
Ga;Ga.prototype.isPointsMaterial=!0;Ga.prototype.copy=function(a){L.prototype.copy.call(this,a);this.color.copy(a.color);this.map=a.map;this.size=a.size;this.sizeAttenuation=a.sizeAttenuation;return this};Pb.prototype=Object.assign(Object.create(A.prototype),{constructor:Pb,isPoints:!0,raycast:function(){var a=new Q,b=new ob,c=new Ba;return function(d,e){function f(a,c){var f=b.distanceSqToPoint(a);if(f<k){a=b.closestPointToPoint(a);a.applyMatrix4(l);var h=d.ray.origin.distanceTo(a);h<d.near||h>d.far||
|
|
|
e.push({distance:h,distanceToRay:Math.sqrt(f),point:a.clone(),index:c,face:null,object:g})}}var g=this,h=this.geometry,l=this.matrixWorld,m=d.params.Points.threshold;null===h.boundingSphere&&h.computeBoundingSphere();c.copy(h.boundingSphere);c.applyMatrix4(l);c.radius+=m;if(!1!==d.ray.intersectsSphere(c)){a.getInverse(l);b.copy(d.ray).applyMatrix4(a);m/=(this.scale.x+this.scale.y+this.scale.z)/3;var k=m*m;m=new p;if(h.isBufferGeometry){var n=h.index;h=h.attributes.position.array;if(null!==n){var u=
|
|
|
n.array;n=0;for(var r=u.length;n<r;n++){var q=u[n];m.fromArray(h,3*q);f(m,q)}}else for(n=0,u=h.length/3;n<u;n++)m.fromArray(h,3*n),f(m,n)}else for(m=h.vertices,n=0,u=m.length;n<u;n++)f(m[n],n)}}}(),clone:function(){return(new this.constructor(this.geometry,this.material)).copy(this)}});ud.prototype=Object.assign(Object.create(A.prototype),{constructor:ud,isGroup:!0});$d.prototype=Object.assign(Object.create(aa.prototype),{constructor:$d,isVideoTexture:!0,update:function(){var a=0;return function(){var b=
|
|
|
-this.image;b.readyState>=b.HAVE_CURRENT_DATA&&(b=performance.now(),a+1/this.frameRate<b&&(this.needsUpdate=!0,a=b))}}()});Qb.prototype=Object.create(aa.prototype);Qb.prototype.constructor=Qb;Qb.prototype.isCompressedTexture=!0;Dc.prototype=Object.create(aa.prototype);Dc.prototype.constructor=Dc;Dc.prototype.isDepthTexture=!0;Rb.prototype=Object.create(D.prototype);Rb.prototype.constructor=Rb;Ec.prototype=Object.create(M.prototype);Ec.prototype.constructor=Ec;Sb.prototype=Object.create(D.prototype);
|
|
|
+this.image;b.readyState>=b.HAVE_CURRENT_DATA&&(b=performance.now(),a+1E3/this.frameRate<=b&&(this.needsUpdate=!0,a=b))}}()});Qb.prototype=Object.create(aa.prototype);Qb.prototype.constructor=Qb;Qb.prototype.isCompressedTexture=!0;Dc.prototype=Object.create(aa.prototype);Dc.prototype.constructor=Dc;Dc.prototype.isDepthTexture=!0;Rb.prototype=Object.create(D.prototype);Rb.prototype.constructor=Rb;Ec.prototype=Object.create(M.prototype);Ec.prototype.constructor=Ec;Sb.prototype=Object.create(D.prototype);
|
|
|
Sb.prototype.constructor=Sb;Fc.prototype=Object.create(M.prototype);Fc.prototype.constructor=Fc;va.prototype=Object.create(D.prototype);va.prototype.constructor=va;Gc.prototype=Object.create(M.prototype);Gc.prototype.constructor=Gc;Tb.prototype=Object.create(va.prototype);Tb.prototype.constructor=Tb;Hc.prototype=Object.create(M.prototype);Hc.prototype.constructor=Hc;qb.prototype=Object.create(va.prototype);qb.prototype.constructor=qb;Ic.prototype=Object.create(M.prototype);Ic.prototype.constructor=
|
|
|
Ic;Ub.prototype=Object.create(va.prototype);Ub.prototype.constructor=Ub;Jc.prototype=Object.create(M.prototype);Jc.prototype.constructor=Jc;Vb.prototype=Object.create(va.prototype);Vb.prototype.constructor=Vb;Kc.prototype=Object.create(M.prototype);Kc.prototype.constructor=Kc;Wb.prototype=Object.create(D.prototype);Wb.prototype.constructor=Wb;Lc.prototype=Object.create(M.prototype);Lc.prototype.constructor=Lc;Xb.prototype=Object.create(D.prototype);Xb.prototype.constructor=Xb;Mc.prototype=Object.create(M.prototype);
|
|
|
Mc.prototype.constructor=Mc;Yb.prototype=Object.create(D.prototype);Yb.prototype.constructor=Yb;var Lg={triangulate:function(a,b,c){c=c||2;var d=b&&b.length,e=d?b[0]*c:a.length,f=Xe(a,0,e,c,!0),g=[];if(!f)return g;var h;if(d){var l=c;d=[];var m;var k=0;for(m=b.length;k<m;k++){var n=b[k]*l;var p=k<m-1?b[k+1]*l:a.length;n=Xe(a,n,p,l,!1);n===n.next&&(n.steiner=!0);d.push(Jg(n))}d.sort(Hg);for(k=0;k<d.length;k++){b=d[k];l=f;if(l=Ig(b,l))b=$e(l,b),Oc(b,b.next);f=Oc(f,f.next)}}if(a.length>80*c){var r=h=
|