/** * @license * Cesium - https://github.com/CesiumGS/cesium * Version 1.142.0 * * 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 Dt,c as Gt}from"./chunk-R5DFAOJG.js";import{a as Lt}from"./chunk-FCRW2AGG.js";import{a as lt}from"./chunk-RI3TXBVT.js";import{a as qt}from"./chunk-GS4ZGDWD.js";import"./chunk-FYQCPFNB.js";import"./chunk-C4NHPSO2.js";import{a as kt}from"./chunk-WTIPXHS3.js";import"./chunk-H6AHPUMX.js";import"./chunk-FMWRN5G2.js";import{c as zt}from"./chunk-XEBZTQHW.js";import"./chunk-6LZUEMFX.js";import{i as Ot,j as Vt}from"./chunk-AZCCS55A.js";import{b as $}from"./chunk-V74K6IQF.js";import"./chunk-5HZ2G332.js";import"./chunk-LKQXJXNV.js";import{a as Ht}from"./chunk-VXS2FTO4.js";import{a as N,b as wt,c as Ut}from"./chunk-ZQTDDQLY.js";import{a as P}from"./chunk-U4VWQPTS.js";import{a as r}from"./chunk-GZABERXA.js";import"./chunk-WM6AKY6B.js";import{f as ht}from"./chunk-6K4BWAPV.js";var $t=Uint16Array.BYTES_PER_ELEMENT,mt=Int32Array.BYTES_PER_ELEMENT,Pt=Uint32Array.BYTES_PER_ELEMENT,te=Float32Array.BYTES_PER_ELEMENT,H=Float64Array.BYTES_PER_ELEMENT;function tt(n,l,e){e=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 jt=zt.fromPoints(g),Rt;ht(i)&&(Rt=qt.fromRectangle(i,z,J,e));let Qt=new Dt(e).computeHorizonCullingPointPossiblyUnderEllipsoid(l,g,z),Jt=new kt(b,M,l),It=new Gt(l,Jt,K.hMin,J,O,!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 V=m.minimum,Q=m.maximum;P.minimumByComponent(G,V,V),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 we=Lt(ee);export{we as default};