1 |
- define(["./defaultValue-81eec7ed","./Cartesian3-7e9cc2ff","./Check-741c5f3c","./EllipsoidGeometry-505e78a0","./VertexFormat-d50a69ba","./Math-5f585871","./GeometryOffsetAttribute-ed56ff58","./Transforms-98ffa11d","./Matrix2-e3fb4559","./Matrix4-d34187af","./RuntimeError-26acdd3b","./_commonjsHelpers-3aae1032-26891ab7","./combine-3c023bda","./ComponentDatatype-aaeec80f","./WebGLConstants-508b9636","./GeometryAttribute-b025f9a8","./GeometryAttributes-32b29525","./IndexDatatype-f1e3f799"],(function(e,t,i,r,a,o,n,s,c,d,l,m,f,u,p,y,G,k){"use strict";function b(i){const a=e.defaultValue(i.radius,1),o={radii:new t.Cartesian3(a,a,a),stackPartitions:i.stackPartitions,slicePartitions:i.slicePartitions,vertexFormat:i.vertexFormat};this._ellipsoidGeometry=new r.EllipsoidGeometry(o),this._workerName="createSphereGeometry"}b.packedLength=r.EllipsoidGeometry.packedLength,b.pack=function(e,t,i){return r.EllipsoidGeometry.pack(e._ellipsoidGeometry,t,i)};const x=new r.EllipsoidGeometry,_={radius:void 0,radii:new t.Cartesian3,vertexFormat:new a.VertexFormat,stackPartitions:void 0,slicePartitions:void 0};return b.unpack=function(i,o,n){const s=r.EllipsoidGeometry.unpack(i,o,x);return _.vertexFormat=a.VertexFormat.clone(s._vertexFormat,_.vertexFormat),_.stackPartitions=s._stackPartitions,_.slicePartitions=s._slicePartitions,e.defined(n)?(t.Cartesian3.clone(s._radii,_.radii),n._ellipsoidGeometry=new r.EllipsoidGeometry(_),n):(_.radius=s._radii.x,new b(_))},b.createGeometry=function(e){return r.EllipsoidGeometry.createGeometry(e._ellipsoidGeometry)},function(t,i){return e.defined(i)&&(t=b.unpack(t,i)),b.createGeometry(t)}}));
|