define(["./AxisAlignedBoundingBox-7a3018c0","./Transforms-3ac41eb6","./Matrix2-fc7e9822","./defaultValue-94c3e563","./TerrainEncoding-229275c2","./ComponentDatatype-4a60b8d6","./OrientedBoundingBox-1e0d2855","./RuntimeError-c581ca93","./WebMercatorProjection-843df830","./createTaskProcessorWorker","./_commonjsHelpers-3aae1032-f55dc0c4","./combine-761d9c3f","./AttributeCompression-4d18cc04","./WebGLConstants-7dccdc96","./EllipsoidTangentPlane-53e32153","./IntersectionTests-68fbc42d","./Plane-e20fba8c"],(function(t,e,n,i,o,a,r,s,c,u,h,d,l,g,m,p,I){"use strict";const f=Uint16Array.BYTES_PER_ELEMENT,E=Int32Array.BYTES_PER_ELEMENT,T=Uint32Array.BYTES_PER_ELEMENT,C=Float32Array.BYTES_PER_ELEMENT,M=Float64Array.BYTES_PER_ELEMENT;function x(t,e,n){n=i.defaultValue(n,a.CesiumMath);const o=t.length;for(let i=0;i0&>.length>0){const t=ht[0].index,e=It,n=gt[gt.length-1].index,i=ot.length-1;ut.push(n,i,e,e,t,n)}tt=ot.length;const Ct=e.BoundingSphere.fromPoints(ot);let Mt;i.defined(l)&&(Mt=r.OrientedBoundingBox.fromRectangle(l,q,J,d));const xt=new o.EllipsoidalOccluder(d),Nt=xt.computeHorizonCullingPointPossiblyUnderEllipsoid(h,ot,q),bt=new t.AxisAlignedBoundingBox(K,Q,h),St=new o.TerrainEncoding(h,bt,Et.hMin,J,U,!1,N,G,m,p),wt=new Float32Array(tt*St.stride);let Bt=0;for(let t=0;t0&&r.push(r[E]),s.length>0&&s.push(s[E]),n.Matrix4.multiplyByPoint(u.toENU,N,S);const w=u.minimum,B=u.maximum;n.Cartesian3.minimumByComponent(S,w,w),n.Cartesian3.maximumByComponent(S,B,B);const P=u.lastBorderPoint;if(i.defined(P)){const t=P.index;c.push(t,T-1,T,T,E,t)}u.lastBorderPoint=I}}var R=u(N);return R}));