define(["./when-b60132fc","./Cartesian2-47311507","./arrayFill-4513d7ad","./buildModuleUrl-57a32107","./Cartographic-3309dd0d","./ComponentDatatype-c140a87d","./Check-7b2a090c","./GeometryAttribute-c42d25b7","./GeometryAttributes-252e9929","./GeometryOffsetAttribute-fbeb6f1a","./IndexDatatype-8a5eead4","./Math-119be1a3","./PolygonPipeline-805ba13c","./RectangleGeometryLibrary-2077f0a4","./Matrix4-cde86d0e","./Cartesian4-3ca25aab","./RuntimeError-4a5c8994","./WebGLConstants-4ae0db90","./FeatureDetection-c3b71206","./earcut-2.2.1-20c8012f","./EllipsoidRhumbLine-ed1a6bf4"],(function(e,t,i,a,r,n,o,l,u,s,c,d,p,f,g,h,y,b,m,_,v){"use strict";var E=new a.BoundingSphere,A=new a.BoundingSphere,G=new r.Cartesian3,R=new t.Rectangle;function P(e,t){var i=e._ellipsoid,r=t.height,o=t.width,s=t.northCap,d=t.southCap,p=r,g=2,h=0,y=4;s&&(g-=1,p-=1,h+=1,y-=2),d&&(g-=1,p-=1,h+=1,y-=2),h+=g*o+2*p-y;var b,m=new Float64Array(3*h),_=0,v=0,E=G;if(s)f.RectangleGeometryLibrary.computePosition(t,i,!1,v,0,E),m[_++]=E.x,m[_++]=E.y,m[_++]=E.z;else for(b=0;b=0;b--)f.RectangleGeometryLibrary.computePosition(t,i,!1,v,b,E),m[_++]=E.x,m[_++]=E.y,m[_++]=E.z;for(b=0,v=r-2;v>0;v--)f.RectangleGeometryLibrary.computePosition(t,i,!1,v,b,E),m[_++]=E.x,m[_++]=E.y,m[_++]=E.z;for(var A=m.length/3*2,R=c.IndexDatatype.createTypedArray(m.length/3,A),P=0,C=0;C