2023-09-11 21:56:39 +08:00
|
|
|
define(["./Cartographic-3309dd0d","./Check-7b2a090c","./when-b60132fc","./EllipseOutlineGeometry-66d9a9ca","./Cartesian2-47311507","./Math-119be1a3","./arrayFill-4513d7ad","./BoundingSphere-561b54d0","./Cartesian4-3ca25aab","./RuntimeError-4a5c8994","./ComponentDatatype-c140a87d","./WebGLConstants-4ae0db90","./EllipseGeometryLibrary-134c564a","./Transforms-cb0006b0","./buildModuleUrl-3addfe33","./FeatureDetection-c3b71206","./GeometryAttribute-3a42bbdc","./PrimitiveType-39acab88","./GeometryAttributes-252e9929","./GeometryOffsetAttribute-fbeb6f1a","./IndexDatatype-8a5eead4"],(function(e,i,t,r,l,n,a,o,s,d,u,c,m,p,y,b,G,h,_,f,g){"use strict";function E(e){var i=(e=t.defaultValue(e,t.defaultValue.EMPTY_OBJECT)).radius,l={center:e.center,semiMajorAxis:i,semiMinorAxis:i,ellipsoid:e.ellipsoid,height:e.height,extrudedHeight:e.extrudedHeight,granularity:e.granularity,numberOfVerticalLines:e.numberOfVerticalLines};this._ellipseGeometry=new r.EllipseOutlineGeometry(l),this._workerName="createCircleOutlineGeometry"}E.packedLength=r.EllipseOutlineGeometry.packedLength,E.pack=function(e,i,t){return r.EllipseOutlineGeometry.pack(e._ellipseGeometry,i,t)};var x=new r.EllipseOutlineGeometry({center:new e.Cartesian3,semiMajorAxis:1,semiMinorAxis:1}),O={center:new e.Cartesian3,radius:void 0,ellipsoid:l.Ellipsoid.clone(l.Ellipsoid.UNIT_SPHERE),height:void 0,extrudedHeight:void 0,granularity:void 0,numberOfVerticalLines:void 0,semiMajorAxis:void 0,semiMinorAxis:void 0};return E.unpack=function(i,n,a){var o=r.EllipseOutlineGeometry.unpack(i,n,x);return O.center=e.Cartesian3.clone(o._center,O.center),O.ellipsoid=l.Ellipsoid.clone(o._ellipsoid,O.ellipsoid),O.height=o._height,O.extrudedHeight=o._extrudedHeight,O.granularity=o._granularity,O.numberOfVerticalLines=o._numberOfVerticalLines,t.defined(a)?(O.semiMajorAxis=o._semiMajorAxis,O.semiMinorAxis=o._semiMinorAxis,a._ellipseGeometry=new r.EllipseOutlineGeometry(O),a):(O.radius=o._semiMajorAxis,new E(O))},E.createGeometry=function(e){return r.EllipseOutlineGeometry.createGeometry(e._ellipseGeometry)},function(i,r){return t.defined(r)&&(i=E.unpack(i,r)),i._ellipseGeometry._center=e.Cartesian3.clone(i._ellipseGeometry._center),i._ellipseGeometry._ellipsoid=l.Ellipsoid.clone(i._ellipseGeometry._ellipsoid),E.createGeometry(i)}}));
|