/** * @license * Cesium - https://github.com/CesiumGS/cesium * Version 1.128 * * 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,b as Gt}from"./chunk-C3TBGSK2.js";import{a as Lt}from"./chunk-CRNKVPOJ.js";import{a as lt}from"./chunk-RESAW4MS.js";import{a as qt}from"./chunk-MFFRMED2.js";import"./chunk-IO56Q3JU.js";import"./chunk-KOFJJPMR.js";import{a as kt}from"./chunk-CCGHELB6.js";import"./chunk-YTKWBMG6.js";import"./chunk-OIUXC5BJ.js";import{d as zt}from"./chunk-LS5UR5C2.js";import{b as $,g as Ot,h as Vt}from"./chunk-GSQ5TTBU.js";import"./chunk-MCJA36VG.js";import{a as P,b as N,c as wt,d as Ut}from"./chunk-KLDIEE7M.js";import{a as r}from"./chunk-BF7B4FIR.js";import"./chunk-7SDYTY36.js";import{a as Ht}from"./chunk-JBTCQLOL.js";import"./chunk-IQDUXDOM.js";import{e as ht}from"./chunk-GDY26PU3.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};