define(["./when-229515d6","./Matrix2-f2da41d4","./GeometryOffsetAttribute-ff1e192c","./Transforms-7cd3197b","./ComponentDatatype-17b06483","./RuntimeError-ffe03243","./GeometryAttribute-80036e07","./GeometryAttributes-b253752a","./IndexDatatype-b10faa0b","./PolygonPipeline-5582b1ec","./RectangleGeometryLibrary-fbe816b1","./combine-8ce3f24b","./WebGLConstants-4e26b85a","./EllipsoidRhumbLine-afd6cd20"],(function(e,t,i,a,r,n,o,l,u,s,p,c,d,f){"use strict";var g=new a.BoundingSphere,h=new a.BoundingSphere,y=new t.Cartesian3,b=new t.Rectangle;function m(e,t){var i=e._ellipsoid,a=t.height,n=t.width,s=t.northCap,c=t.southCap,d=a,f=2,g=0,h=4;s&&(f-=1,d-=1,g+=1,h-=2),c&&(f-=1,d-=1,g+=1,h-=2),g+=f*n+2*d-h;var b,m=new Float64Array(3*g),_=0,v=0,E=y;if(s)p.RectangleGeometryLibrary.computePosition(t,i,!1,v,0,E),m[_++]=E.x,m[_++]=E.y,m[_++]=E.z;else for(b=0;b=0;b--)p.RectangleGeometryLibrary.computePosition(t,i,!1,v,b,E),m[_++]=E.x,m[_++]=E.y,m[_++]=E.z;for(b=0,v=a-2;v>0;v--)p.RectangleGeometryLibrary.computePosition(t,i,!1,v,b,E),m[_++]=E.x,m[_++]=E.y,m[_++]=E.z;for(var A=m.length/3*2,G=u.IndexDatatype.createTypedArray(m.length/3,A),R=0,P=0;P