createSphereOutlineGeometry.js 1.5 KB

1
  1. define(["./when-54c2dc71","./Check-6c0211bc","./Math-fc8cecf5","./Cartesian2-bddc1162","./Transforms-ec27f304","./RuntimeError-2109023a","./WebGLConstants-76bb35d1","./ComponentDatatype-6d99a1ee","./GeometryAttribute-44fb48f1","./GeometryAttributes-4fcfcf40","./IndexDatatype-53503fee","./GeometryOffsetAttribute-7350d9af","./EllipsoidOutlineGeometry-5b7b6e19"],function(n,e,i,s,t,r,o,a,d,c,l,u,f){"use strict";function m(e){var i=n.defaultValue(e.radius,1),t={radii:new s.Cartesian3(i,i,i),stackPartitions:e.stackPartitions,slicePartitions:e.slicePartitions,subdivisions:e.subdivisions};this._ellipsoidGeometry=new f.EllipsoidOutlineGeometry(t),this._workerName="createSphereOutlineGeometry"}m.packedLength=f.EllipsoidOutlineGeometry.packedLength,m.pack=function(e,i,t){return f.EllipsoidOutlineGeometry.pack(e._ellipsoidGeometry,i,t)};var p=new f.EllipsoidOutlineGeometry,y={radius:void 0,radii:new s.Cartesian3,stackPartitions:void 0,slicePartitions:void 0,subdivisions:void 0};return m.unpack=function(e,i,t){var r=f.EllipsoidOutlineGeometry.unpack(e,i,p);return y.stackPartitions=r._stackPartitions,y.slicePartitions=r._slicePartitions,y.subdivisions=r._subdivisions,n.defined(t)?(s.Cartesian3.clone(r._radii,y.radii),t._ellipsoidGeometry=new f.EllipsoidOutlineGeometry(y),t):(y.radius=r._radii.x,new m(y))},m.createGeometry=function(e){return f.EllipsoidOutlineGeometry.createGeometry(e._ellipsoidGeometry)},function(e,i){return n.defined(i)&&(e=m.unpack(e,i)),m.createGeometry(e)}});