define(["./when-4bbc8319","./Matrix2-9aa31791","./GeometryOffsetAttribute-1772960d","./Transforms-d13cc04e","./ComponentDatatype-93750d1a","./RuntimeError-346a3079","./GeometryAttribute-43536dc0","./GeometryAttributes-7827a6c2","./IndexDatatype-b7d979a6","./PolygonPipeline-da7fc5ca","./RectangleGeometryLibrary-d589ac1e","./combine-83860057","./WebGLConstants-1c8239cc","./EllipsoidRhumbLine-30c47ff4"],(function(e,t,i,a,r,n,o,l,u,s,c,p,d,f){"use strict";var g=new a.BoundingSphere,h=new a.BoundingSphere,y=new t.Cartesian3,m=new t.Rectangle;function b(e,t){var i=e._ellipsoid,a=t.height,n=t.width,s=t.northCap,p=t.southCap,d=a,f=2,g=0,h=4;s&&(f-=1,d-=1,g+=1,h-=2),p&&(f-=1,d-=1,g+=1,h-=2),g+=f*n+2*d-h;var m,b=new Float64Array(3*g),_=0,v=0,E=y;if(s)c.RectangleGeometryLibrary.computePosition(t,i,!1,v,0,E),b[_++]=E.x,b[_++]=E.y,b[_++]=E.z;else for(m=0;m=0;m--)c.RectangleGeometryLibrary.computePosition(t,i,!1,v,m,E),b[_++]=E.x,b[_++]=E.y,b[_++]=E.z;for(m=0,v=a-2;v>0;v--)c.RectangleGeometryLibrary.computePosition(t,i,!1,v,m,E),b[_++]=E.x,b[_++]=E.y,b[_++]=E.z;for(var A=b.length/3*2,G=u.IndexDatatype.createTypedArray(b.length/3,A),R=0,P=0;P