/** * @license * Cesium - https://github.com/CesiumGS/cesium * Version 1.115 * * Copyright 2011-2022 Cesium Contributors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * Columbus View (Pat. Pend.) * * Portions licensed separately. * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details. */ import{a as Gt,b as Xt}from"./chunk-S2FMFP7G.js";import{a as kt}from"./chunk-ESSWH6Y6.js";import{a as lt}from"./chunk-GEHJZPOQ.js";import{a as Dt}from"./chunk-QLLBTCJW.js";import"./chunk-CV3CPKDV.js";import"./chunk-I7Q6CKJV.js";import{a as qt}from"./chunk-PM6NEW3Y.js";import"./chunk-AT6LKTZH.js";import"./chunk-ASPQMVDG.js";import{d as zt,h as Lt}from"./chunk-LCPJ46PJ.js";import"./chunk-IADNIOZ2.js";import"./chunk-QK5WKMSE.js";import{b as $,c as Ot}from"./chunk-DCQPNKAH.js";import"./chunk-HVT5SA4Z.js";import{a as P,b as N,c as wt,d as Ht}from"./chunk-QHMHXQHC.js";import{a as r}from"./chunk-GGFNGKXD.js";import"./chunk-BPPZBFNC.js";import{a as Vt}from"./chunk-6DW2D3WX.js";import{a as Ut}from"./chunk-A7LPWAU6.js";import"./chunk-UNVMUIJM.js";import{e as ht}from"./chunk-WVB7XP3Q.js";var te=Uint16Array.BYTES_PER_ELEMENT,mt=Int32Array.BYTES_PER_ELEMENT,Pt=Uint32Array.BYTES_PER_ELEMENT,ee=Float32Array.BYTES_PER_ELEMENT,H=Float64Array.BYTES_PER_ELEMENT;function tt(n,l,e){e=Ut(e,r);let i=n.length;for(let c=0;c0&&W.length>0){let t=k[0].index,d=Mt,Y=W[W.length-1].index,B=g.length-1;v.push(Y,B,d,d,t,Y)}S=g.length;let Qt=zt.fromPoints(g),Rt;ht(i)&&(Rt=Dt.fromRectangle(i,z,J,e));let Jt=new Gt(e).computeHorizonCullingPointPossiblyUnderEllipsoid(l,g,z),Kt=new qt(b,M,l),It=new Xt(l,Kt,K.hMin,J,V,!1,T,y,et,m),_t=new Float32Array(S*It.stride),Ct=0;for(let t=0;t0&&i.push(i[x]),c.length>0&&c.push(c[x]),$.multiplyByPoint(m.toENU,j,G);let O=m.minimum,Q=m.maximum;P.minimumByComponent(G,O,O),P.maximumByComponent(G,Q,Q);let ft=m.lastBorderPoint;if(ht(ft)){let y=ft.index;et.push(y,p-1,p,p,x,y)}m.lastBorderPoint=E}}var Ae=kt(oe);export{Ae as default};