define(["exports","./arrayFill-4d3cc415","./buildModuleUrl-dba4ec07","./Cartographic-1bbcab04","./ComponentDatatype-d430c7f7","./when-515d5295","./Check-3aa71481","./EllipseGeometryLibrary-497ff3d7","./Rectangle-e170be8b","./GeometryAttribute-9bc31a7f","./GeometryAttributes-7d904f0f","./GeometryOffsetAttribute-800f7650","./IndexDatatype-eefd5922","./Math-5e38123d","./PrimitiveType-b38a4004"],(function(e,t,i,r,n,a,o,s,u,d,l,c,h,p,f){"use strict";var m=new r.a,_=new r.a;var A=new i.c,b=new i.c;function g(e){var t=(e=a.e(e,a.e.EMPTY_OBJECT)).center,i=a.e(e.ellipsoid,u.n.WGS84),n=e.semiMajorAxis,s=e.semiMinorAxis,d=a.e(e.granularity,p.n.RADIANS_PER_DEGREE);if(!a.t(t))throw new o.t("center is required.");if(!a.t(n))throw new o.t("semiMajorAxis is required.");if(!a.t(s))throw new o.t("semiMinorAxis is required.");if(n0){var S=Math.min(L,x);D=Math.round(x/S);var P=Math.min(D*L,x);for(O=0;O
1&&u.push(u[0],u[1],u[2]);var p=new l.t({position:new d.r({componentDatatype:n.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:s.N.raisePositionsToHeight(u,e,!1)})});c>1&&(p.sideness=new d.r({componentDatatype:n.ComponentDatatype.FLOAT,componentsPerAttribute:2,values:new Float32Array([0,0,0,1,1,1,1,0])}),p.sideness.isInstanceAttribute=!0);for(var f=u.length/3,m=h.IndexDatatype.createTypedArray(f,2*f),A=0,b=0;b