2 lines
1.7 KiB
JavaScript
2 lines
1.7 KiB
JavaScript
|
define(["./defaultValue-81eec7ed","./Cartesian3-e0307675","./Check-741c5f3c","./EllipsoidOutlineGeometry-b6504e08","./Math-e73894ab","./GeometryOffsetAttribute-ed56ff58","./BoundingSphere-9a3b5656","./Cartesian2-bd414876","./GeographicProjection-c931c7fb","./Matrix4-4c545f70","./RuntimeError-26acdd3b","./Rectangle-cf3e0e3e","./ComponentDatatype-aaeec80f","./WebGLConstants-508b9636","./GeometryAttribute-2b42a913","./Matrix2-dc0c61cc","./Transforms-5b829630","./when-422ea0ae","./Resource-8ae1a924","./combine-3c023bda","./GeometryAttributes-32b29525","./IndexDatatype-3f3c99e8"],(function(e,i,t,n,r,o,a,s,c,d,l,u,p,m,f,b,y,G,k,P,h,O){"use strict";function _(t){const r=e.defaultValue(t.radius,1),o={radii:new i.Cartesian3(r,r,r),stackPartitions:t.stackPartitions,slicePartitions:t.slicePartitions,subdivisions:t.subdivisions};this._ellipsoidGeometry=new n.EllipsoidOutlineGeometry(o),this._workerName="createSphereOutlineGeometry"}_.packedLength=n.EllipsoidOutlineGeometry.packedLength,_.pack=function(e,i,t){return n.EllipsoidOutlineGeometry.pack(e._ellipsoidGeometry,i,t)};const v=new n.EllipsoidOutlineGeometry,E={radius:void 0,radii:new i.Cartesian3,stackPartitions:void 0,slicePartitions:void 0,subdivisions:void 0};return _.unpack=function(t,r,o){const a=n.EllipsoidOutlineGeometry.unpack(t,r,v);return E.stackPartitions=a._stackPartitions,E.slicePartitions=a._slicePartitions,E.subdivisions=a._subdivisions,e.defined(o)?(i.Cartesian3.clone(a._radii,E.radii),o._ellipsoidGeometry=new n.EllipsoidOutlineGeometry(E),o):(E.radius=a._radii.x,new _(E))},_.createGeometry=function(e){return n.EllipsoidOutlineGeometry.createGeometry(e._ellipsoidGeometry)},function(i,t){return e.defined(t)&&(i=_.unpack(i,t)),_.createGeometry(i)}}));
|