2023-09-11 21:56:39 +08:00
|
|
|
define(["./when-b60132fc","./Cartographic-3309dd0d","./Check-7b2a090c","./EllipsoidGeometry-0bb3b822","./VertexFormat-6446fca0","./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,t,r,i,a,o,n,s,d,c,l,m,u,p,y,b,G,f,k,v,x){"use strict";function F(r){var a=e.defaultValue(r.radius,1),o={radii:new t.Cartesian3(a,a,a),stackPartitions:r.stackPartitions,slicePartitions:r.slicePartitions,vertexFormat:r.vertexFormat};this._ellipsoidGeometry=new i.EllipsoidGeometry(o),this._workerName="createSphereGeometry"}F.packedLength=i.EllipsoidGeometry.packedLength,F.pack=function(e,t,r){return i.EllipsoidGeometry.pack(e._ellipsoidGeometry,t,r)};var P=new i.EllipsoidGeometry,h={radius:void 0,radii:new t.Cartesian3,vertexFormat:new a.VertexFormat,stackPartitions:void 0,slicePartitions:void 0};return F.unpack=function(r,o,n){var s=i.EllipsoidGeometry.unpack(r,o,P);return h.vertexFormat=a.VertexFormat.clone(s._vertexFormat,h.vertexFormat),h.stackPartitions=s._stackPartitions,h.slicePartitions=s._slicePartitions,e.defined(n)?(t.Cartesian3.clone(s._radii,h.radii),n._ellipsoidGeometry=new i.EllipsoidGeometry(h),n):(h.radius=s._radii.x,new F(h))},F.createGeometry=function(e){return i.EllipsoidGeometry.createGeometry(e._ellipsoidGeometry)},function(t,r){return e.defined(r)&&(t=F.unpack(t,r)),F.createGeometry(t)}}));
|