,f,d,p,v,new Ve)),s&&(y.uv1=ea.getInterpolatedAttribute(s,f,d,p,v,new Ve)),c&&(y.normal=ea.getInterpolatedAttribute(c,f,d,p,v,new K),y.normal.dot(n.direction)>0&&y.normal.multiplyScalar(-1));const _={a:f,b:d,c:p,normal:new K,materialIndex:0};ea.getNormal(xv,Av,bv,_.normal),y.face=_,y.barycoord=v}return y}class zf extends sn{constructor(e=1,t=1,n=1,i=1,s=1,c=1){super(),this.type="BoxGeometry",this.parameters={width:e,height:t,depth:n,widthSegments:i,heightSegments:s,depthSegments:c};const f=this;i=Math.floor(i),s=Math.floor(s),c=Math.floor(c);const d=[],p=[],y=[],v=[];let _=0,A=0;S("z","y","x",-1,-1,n,t,e,c,s,0),S("z","y","x",1,-1,n,t,-e,c,s,1),S("x","z","y",1,1,e,n,t,i,c,2),S("x","z","y",1,-1,e,n,-t,i,c,3),S("x","y","z",1,-1,e,t,n,i,s,4),S("x","y","z",-1,-1,e,t,-n,i,s,5),this.setIndex(d),this.setAttribute("position",new Ft(p,3)),this.setAttribute("normal",new Ft(y,3)),this.setAttribute("uv",new Ft(v,2));function S(w,T,E,B,D,I,F,O,G,H,L){const N=I/G,j=F/H,ne=I/2,ee=F/2,oe=O/2,pe=G+1,q=H