1"use strict";(self.webpackChunkgrpc_web_client=self.webpackChunkgrpc_web_client||[]).push([[736],{9736(t,e,s){s.r(e),s.d(e,{RoundedBoxGeometry:()=>r});var a=s(7226);const i=new a.Pq0;function n(t,e,s,a,n,r){const h=2*Math.PI*n/4,o=Math.max(r-2*n,0),c=Math.PI/4;i.copy(e),i[a]=0,i.normalize();const u=.5*h/(h+o),l=1-i.angleTo(t)/c;if(1===Math.sign(i[s]))return l*u;return o/(h+o)+u+u*(1-l)}class r extends a.iNn{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:2,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.1;const h=2*i+1;if(r=Math.min(t/2,e/2,s/2,r),super(1,1,1,h,h,h),this.type="RoundedBoxGeometry",this.parameters={width:t,height:e,depth:s,segments:i,radius:r},1===h)return;const o=this.toNonIndexed();this.index=null,this.attributes.position=o.attributes.position,this.attributes.normal=o.attributes.normal,this.attributes.uv=o.attributes.uv;const c=new a.Pq0,u=new a.Pq0,l=new a.Pq0(t,e,s).divideScalar(2).subScalar(r),y=this.attributes.position.array,d=this.attributes.normal.array,g=this.attributes.uv.array,x=y.length/6,b=new a.Pq0,z=.5/h;for(let a=0,p=0;a<y.length;a+=3,p+=2){c.fromArray(y,a),u.copy(c),u.x-=Math.sign(u.x)*z,u.y-=Math.sign(u.y)*z,u.z-=Math.sign(u.z)*z,u.normalize(),y[a+0]=l.x*Math.sign(c.x)+u.x*r,y[a+1]=l.y*Math.sign(c.y)+u.y*r,y[a+2]=l.z*Math.sign(c.z)+u.z*r,d[a+0]=u.x,d[a+1]=u.y,d[a+2]=u.z;switch(Math.floor(a/x)){case 0:b.set(1,0,0),g[p+0]=n(b,u,"z","y",r,s),g[p+1]=1-n(b,u,"y","z",r,e);break;case 1:b.set(-1,0,0),g[p+0]=1-n(b,u,"z","y",r,s),g[p+1]=1-n(b,u,"y","z",r,e);break;case 2:b.set(0,1,0),g[p+0]=1-n(b,u,"x","z",r,t),g[p+1]=n(b,u,"z","x",r,s);break;case 3:b.set(0,-1,0),g[p+0]=1-n(b,u,"x","z",r,t),g[p+1]=1-n(b,u,"z","x",r,s);break;case 4:b.set(0,0,1),g[p+0]=1-n(b,u,"x","y",r,t),g[p+1]=1-n(b,u,"y","x",r,e);break;case 5:b.set(0,0,-1),g[p+0]=n(b,u,"x","y",r,t),g[p+1]=1-n(b,u,"y","x",r,e)}}}static fromJSON(t){return new r(t.width,t.height,t.depth,t.segments,t.radius)}}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.