/** * @license * Cesium - https://github.com/CesiumGS/cesium * Version 1.98 * * 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. */ define(["./defaultValue-50f7432c","./Matrix2-cf4c6e69","./Transforms-c9e418cb","./ComponentDatatype-9b23164a","./GeometryAttribute-b84ffce6","./GeometryAttributes-8bab1b25","./GeometryOffsetAttribute-490bc2c9","./IndexDatatype-ceed713e","./PolygonPipeline-13f0bfa4","./RectangleGeometryLibrary-9f12e096","./RuntimeError-48e1f06d","./combine-8462e002","./WebGLConstants-58abc51a","./EllipsoidRhumbLine-0cc30625"],(function(e,t,i,n,o,a,r,l,s,u,c,p,f,d){"use strict";const g=new i.BoundingSphere,h=new i.BoundingSphere,y=new t.Cartesian3,b=new t.Rectangle;function m(e,t){const i=e._ellipsoid,r=t.height,s=t.width,c=t.northCap,p=t.southCap;let f=r,d=2,g=0,h=4;c&&(d-=1,f-=1,g+=1,h-=2),p&&(d-=1,f-=1,g+=1,h-=2),g+=d*s+2*f-h;const b=new Float64Array(3*g);let m,_=0,E=0;const A=y;if(c)u.RectangleGeometryLibrary.computePosition(t,i,!1,E,0,A),b[_++]=A.x,b[_++]=A.y,b[_++]=A.z;else for(m=0;m=0;m--)u.RectangleGeometryLibrary.computePosition(t,i,!1,E,m,A),b[_++]=A.x,b[_++]=A.y,b[_++]=A.z;for(m=0,E=r-2;E>0;E--)u.RectangleGeometryLibrary.computePosition(t,i,!1,E,m,A),b[_++]=A.x,b[_++]=A.y,b[_++]=A.z;const G=b.length/3*2,R=l.IndexDatatype.createTypedArray(b.length/3,G);let P=0;for(let e=0;e