/** * @license * Cesium - https://github.com/CesiumGS/cesium * Version 1.137.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 L}from"./chunk-MLG2LQS6.js";import{a as S}from"./chunk-IBQZCWHF.js";import{a as D}from"./chunk-KSX6TRAS.js";import{a as H}from"./chunk-GMTHOMGW.js";import{b as T,c as B,d as x}from"./chunk-BELR52CD.js";import{c as E}from"./chunk-BNHFHP3L.js";import{a as O}from"./chunk-N6BI774S.js";import{c as d}from"./chunk-ICY67TC6.js";import{a as c,c as V}from"./chunk-G2EMNOST.js";import{a as w}from"./chunk-4VFKVGYI.js";import{a as A}from"./chunk-3WJNS2B6.js";import{e as a}from"./chunk-XCN226AA.js";var q=new c,g=new c;function U(e){let t=e.center;g=c.multiplyByScalar(e.ellipsoid.geodeticSurfaceNormal(t,g),e.height,g),g=c.add(t,g,g);let i=new E(g,e.semiMajorAxis),f=L.computeEllipsePositions(e,!1,!0).outerPositions,o=new H({position:new x({componentDatatype:O.DOUBLE,componentsPerAttribute:3,values:L.raisePositionsToHeight(f,e,!1)})}),r=f.length/3,u=D.createTypedArray(r,r*2),m=0;for(let n=0;n0){let b=Math.min(l,n);P=Math.round(n/b);let k=Math.min(P*l,n);for(s=0;s