2 lines
1.7 KiB
JavaScript
2 lines
1.7 KiB
JavaScript
define(["./when-b60132fc","./Cartographic-3309dd0d","./Check-7b2a090c","./EllipsoidOutlineGeometry-64bfca4e","./Math-119be1a3","./arrayFill-4513d7ad","./BoundingSphere-561b54d0","./Cartesian2-47311507","./Cartesian4-3ca25aab","./RuntimeError-4a5c8994","./ComponentDatatype-c140a87d","./WebGLConstants-4ae0db90","./GeometryAttribute-3a42bbdc","./PrimitiveType-39acab88","./Transforms-cb0006b0","./buildModuleUrl-3addfe33","./FeatureDetection-c3b71206","./GeometryAttributes-252e9929","./GeometryOffsetAttribute-fbeb6f1a","./IndexDatatype-8a5eead4"],(function(e,i,t,a,r,n,o,s,d,l,c,u,p,b,m,y,G,f,k,v){"use strict";function P(t){var r=e.defaultValue(t.radius,1),n={radii:new i.Cartesian3(r,r,r),stackPartitions:t.stackPartitions,slicePartitions:t.slicePartitions,subdivisions:t.subdivisions};this._ellipsoidGeometry=new a.EllipsoidOutlineGeometry(n),this._workerName="createSphereOutlineGeometry"}P.packedLength=a.EllipsoidOutlineGeometry.packedLength,P.pack=function(e,i,t){return a.EllipsoidOutlineGeometry.pack(e._ellipsoidGeometry,i,t)};var h=new a.EllipsoidOutlineGeometry,O={radius:void 0,radii:new i.Cartesian3,stackPartitions:void 0,slicePartitions:void 0,subdivisions:void 0};return P.unpack=function(t,r,n){var o=a.EllipsoidOutlineGeometry.unpack(t,r,h);return O.stackPartitions=o._stackPartitions,O.slicePartitions=o._slicePartitions,O.subdivisions=o._subdivisions,e.defined(n)?(i.Cartesian3.clone(o._radii,O.radii),n._ellipsoidGeometry=new a.EllipsoidOutlineGeometry(O),n):(O.radius=o._radii.x,new P(O))},P.createGeometry=function(e){return a.EllipsoidOutlineGeometry.createGeometry(e._ellipsoidGeometry)},function(i,t){return e.defined(t)&&(i=P.unpack(i,t)),P.createGeometry(i)}}));
|