/** * @license * Cesium - https://github.com/CesiumGS/cesium * Version 1.124 * * 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 S}from"./chunk-MWSGYAUE.js";import{a as j}from"./chunk-5CC3QRYS.js";import{a as D}from"./chunk-34ULWVZF.js";import{a as V}from"./chunk-24JYWT5N.js";import{b as T,c as B,d as L}from"./chunk-LH3SUUXG.js";import{d as O}from"./chunk-K2M3OJ7Z.js";import{a as x}from"./chunk-D5HNP2LB.js";import{a as c,d as l}from"./chunk-S4VBGY2U.js";import{a as E}from"./chunk-UCTPWOTZ.js";import{a as m}from"./chunk-N3A5CZ2S.js";import{a as _}from"./chunk-G75U3WZT.js";import{e as d}from"./chunk-3THTQ4QB.js";var q=new c,M=new c;function U(e){let t=e.center;M=c.multiplyByScalar(e.ellipsoid.geodeticSurfaceNormal(t,M),e.height,M),M=c.add(t,M,M);let i=new O(M,e.semiMajorAxis),f=S.computeEllipsePositions(e,!1,!0).outerPositions,o=new V({position:new L({componentDatatype:x.DOUBLE,componentsPerAttribute:3,values:S.raisePositionsToHeight(f,e,!1)})}),r=f.length/3,u=D.createTypedArray(r,r*2),h=0;for(let n=0;n0){let g=Math.min(p,n);k=Math.round(n/g);let H=Math.min(k*p,n);for(s=0;s