qa-prevention-gwj-vue/static/map/cesium91/CesiumUnminified/Workers/createSphereGeometry.js

2 lines
1.7 KiB
JavaScript
Raw Permalink Normal View History

2024-01-02 14:12:39 +08:00
define(["./defaultValue-81eec7ed","./Cartesian3-e0307675","./Check-741c5f3c","./EllipsoidGeometry-204918b6","./VertexFormat-d50a69ba","./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,t,i,r,a,o,n,c,s,d,l,m,u,p,f,y,G,b,k,x,P,h,_){"use strict";function v(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"}v.packedLength=r.EllipsoidGeometry.packedLength,v.pack=function(e,t,i){return r.EllipsoidGeometry.pack(e._ellipsoidGeometry,t,i)};const w=new r.EllipsoidGeometry,E={radius:void 0,radii:new t.Cartesian3,vertexFormat:new a.VertexFormat,stackPartitions:void 0,slicePartitions:void 0};return v.unpack=function(i,o,n){const c=r.EllipsoidGeometry.unpack(i,o,w);return E.vertexFormat=a.VertexFormat.clone(c._vertexFormat,E.vertexFormat),E.stackPartitions=c._stackPartitions,E.slicePartitions=c._slicePartitions,e.defined(n)?(t.Cartesian3.clone(c._radii,E.radii),n._ellipsoidGeometry=new r.EllipsoidGeometry(E),n):(E.radius=c._radii.x,new v(E))},v.createGeometry=function(e){return r.EllipsoidGeometry.createGeometry(e._ellipsoidGeometry)},function(t,i){return e.defined(i)&&(t=v.unpack(t,i)),v.createGeometry(t)}}));