1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-11-16 21:31:47 -05:00
sdrangel/plugins/feature/map/Cesium/Workers/createSphereOutlineGeometry.js
2022-02-04 20:41:22 +00:00

2 lines
1.4 KiB
JavaScript

define(["./when-229515d6","./Matrix2-46444433","./RuntimeError-608565a6","./EllipsoidOutlineGeometry-36a657d6","./ComponentDatatype-692a36d3","./WebGLConstants-f63312fc","./GeometryOffsetAttribute-4f901209","./Transforms-ab7258fe","./combine-35b6d9cb","./GeometryAttribute-d3bef603","./GeometryAttributes-b253752a","./IndexDatatype-7c683b18"],(function(i,e,t,n,o,r,s,a,d,l,u,c){"use strict";function m(t){const o=i.defaultValue(t.radius,1),r={radii:new e.Cartesian3(o,o,o),stackPartitions:t.stackPartitions,slicePartitions:t.slicePartitions,subdivisions:t.subdivisions};this._ellipsoidGeometry=new n.EllipsoidOutlineGeometry(r),this._workerName="createSphereOutlineGeometry"}m.packedLength=n.EllipsoidOutlineGeometry.packedLength,m.pack=function(i,e,t){return n.EllipsoidOutlineGeometry.pack(i._ellipsoidGeometry,e,t)};const p=new n.EllipsoidOutlineGeometry,y={radius:void 0,radii:new e.Cartesian3,stackPartitions:void 0,slicePartitions:void 0,subdivisions:void 0};return m.unpack=function(t,o,r){const s=n.EllipsoidOutlineGeometry.unpack(t,o,p);return y.stackPartitions=s._stackPartitions,y.slicePartitions=s._slicePartitions,y.subdivisions=s._subdivisions,i.defined(r)?(e.Cartesian3.clone(s._radii,y.radii),r._ellipsoidGeometry=new n.EllipsoidOutlineGeometry(y),r):(y.radius=s._radii.x,new m(y))},m.createGeometry=function(i){return n.EllipsoidOutlineGeometry.createGeometry(i._ellipsoidGeometry)},function(e,t){return i.defined(t)&&(e=m.unpack(e,t)),m.createGeometry(e)}}));