define(["./when-4bbc8319","./Matrix2-860854d4","./GeometryOffsetAttribute-24539cee","./Transforms-0becfc64","./ComponentDatatype-8f55628c","./RuntimeError-1349fdaf","./GeometryAttribute-4590b388","./GeometryAttributes-7827a6c2","./IndexDatatype-1d853600","./PolygonPipeline-bfbb6016","./RectangleGeometryLibrary-104ac4b0","./combine-e9466e32","./WebGLConstants-508b9636","./EllipsoidRhumbLine-d4d43630"],(function(e,t,i,n,o,r,a,l,s,u,c,p,d,f){"use strict";const g=new n.BoundingSphere,h=new n.BoundingSphere,y=new t.Cartesian3,b=new t.Rectangle;function m(e,t){const i=e._ellipsoid,n=t.height,r=t.width,u=t.northCap,p=t.southCap;let d=n,f=2,g=0,h=4;u&&(f-=1,d-=1,g+=1,h-=2),p&&(f-=1,d-=1,g+=1,h-=2),g+=f*r+2*d-h;const b=new Float64Array(3*g);let m,_=0,E=0;const A=y;if(u)c.RectangleGeometryLibrary.computePosition(t,i,!1,E,0,A),b[_++]=A.x,b[_++]=A.y,b[_++]=A.z;else for(m=0;m=0;m--)c.RectangleGeometryLibrary.computePosition(t,i,!1,E,m,A),b[_++]=A.x,b[_++]=A.y,b[_++]=A.z;for(m=0,E=n-2;E>0;E--)c.RectangleGeometryLibrary.computePosition(t,i,!1,E,m,A),b[_++]=A.x,b[_++]=A.y,b[_++]=A.z;const G=b.length/3*2,R=s.IndexDatatype.createTypedArray(b.length/3,G);let P=0;for(let e=0;e