月球大数据地理空间分析展示平台-【前端】-月球2期前端
Surpriseplus
2023-07-12 cd09654cd3d8cdcef089ff69c3af8209e0e07ee8
public/CIMSDK/Workers/createCircleGeometry.js
@@ -1 +1 @@
define(["./Matrix3-6e56fbc7","./defaultValue-865ac579","./EllipseGeometry-7c4f7c10","./VertexFormat-20b5279f","./Math-76ce6367","./Transforms-f3654378","./Matrix2-23dd5853","./RuntimeError-9e0724f9","./combine-5e110d09","./ComponentDatatype-985dcc38","./WebGLConstants-258cf3a0","./EllipseGeometryLibrary-a73bd0b1","./GeometryAttribute-e3f63a02","./GeometryAttributes-75794475","./GeometryInstance-54a3e3b6","./GeometryOffsetAttribute-06264989","./GeometryPipeline-3f4d7db4","./AttributeCompression-b9d605fe","./EncodedCartesian3-2008251f","./IndexDatatype-16f6b4a1","./IntersectionTests-63574cfd","./Plane-4befcca0"],(function(e,t,i,r,o,n,s,l,a,d,m,c,u,p,y,_,x,G,f,h,g,E){"use strict";function b(e){const r=(e=t.defaultValue(e,t.defaultValue.EMPTY_OBJECT)).radius,o={center:e.center,semiMajorAxis:r,semiMinorAxis:r,ellipsoid:e.ellipsoid,height:e.height,extrudedHeight:e.extrudedHeight,granularity:e.granularity,vertexFormat:e.vertexFormat,stRotation:e.stRotation,shadowVolume:e.shadowVolume};this._ellipseGeometry=new i.EllipseGeometry(o),this._workerName="createCircleGeometry"}b.packedLength=i.EllipseGeometry.packedLength,b.pack=function(e,t,r){return i.EllipseGeometry.pack(e._ellipseGeometry,t,r)};const w=new i.EllipseGeometry({center:new e.Cartesian3,semiMajorAxis:1,semiMinorAxis:1}),A={center:new e.Cartesian3,radius:void 0,ellipsoid:e.Ellipsoid.clone(e.Ellipsoid.UNIT_SPHERE),height:void 0,extrudedHeight:void 0,granularity:void 0,vertexFormat:new r.VertexFormat,stRotation:void 0,semiMajorAxis:void 0,semiMinorAxis:void 0,shadowVolume:void 0};return b.unpack=function(o,n,s){const l=i.EllipseGeometry.unpack(o,n,w);return A.center=e.Cartesian3.clone(l._center,A.center),A.ellipsoid=e.Ellipsoid.clone(l._ellipsoid,A.ellipsoid),A.height=l._height,A.extrudedHeight=l._extrudedHeight,A.granularity=l._granularity,A.vertexFormat=r.VertexFormat.clone(l._vertexFormat,A.vertexFormat),A.stRotation=l._stRotation,A.shadowVolume=l._shadowVolume,t.defined(s)?(A.semiMajorAxis=l._semiMajorAxis,A.semiMinorAxis=l._semiMinorAxis,s._ellipseGeometry=new i.EllipseGeometry(A),s):(A.radius=l._semiMajorAxis,new b(A))},b.createGeometry=function(e){return i.EllipseGeometry.createGeometry(e._ellipseGeometry)},b.createShadowVolume=function(e,t,i){const o=e._ellipseGeometry._granularity,n=e._ellipseGeometry._ellipsoid,s=t(o,n),l=i(o,n);return new b({center:e._ellipseGeometry._center,radius:e._ellipseGeometry._semiMajorAxis,ellipsoid:n,stRotation:e._ellipseGeometry._stRotation,granularity:o,extrudedHeight:s,height:l,vertexFormat:r.VertexFormat.POSITION_ONLY,shadowVolume:!0})},Object.defineProperties(b.prototype,{rectangle:{get:function(){return this._ellipseGeometry.rectangle}},textureCoordinateRotationPoints:{get:function(){return this._ellipseGeometry.textureCoordinateRotationPoints}}}),function(i,r){return t.defined(r)&&(i=b.unpack(i,r)),i._ellipseGeometry._center=e.Cartesian3.clone(i._ellipseGeometry._center),i._ellipseGeometry._ellipsoid=e.Ellipsoid.clone(i._ellipseGeometry._ellipsoid),b.createGeometry(i)}}));
define(["./Matrix3-aeb3c326","./defaultValue-865ac579","./EllipseGeometry-5054f965","./VertexFormat-20b5279f","./Math-76ce6367","./Transforms-221c7c82","./Matrix2-2fdcdec7","./RuntimeError-9e0724f9","./combine-5e110d09","./ComponentDatatype-985dcc38","./WebGLConstants-258cf3a0","./EllipseGeometryLibrary-18d0a44c","./GeometryAttribute-642addba","./GeometryAttributes-75794475","./GeometryInstance-8d112c0c","./GeometryOffsetAttribute-06264989","./GeometryPipeline-a349886f","./AttributeCompression-10297289","./EncodedCartesian3-e8922703","./IndexDatatype-16f6b4a1","./IntersectionTests-7b064f18","./Plane-fbab0ca2"],(function(e,t,i,r,o,n,s,a,l,d,m,c,u,p,y,_,x,G,h,f,g,E){"use strict";function w(e){const r=(e=t.defaultValue(e,t.defaultValue.EMPTY_OBJECT)).radius,o={center:e.center,semiMajorAxis:r,semiMinorAxis:r,ellipsoid:e.ellipsoid,height:e.height,extrudedHeight:e.extrudedHeight,granularity:e.granularity,vertexFormat:e.vertexFormat,stRotation:e.stRotation,shadowVolume:e.shadowVolume};this._ellipseGeometry=new i.EllipseGeometry(o),this._workerName="createCircleGeometry"}w.packedLength=i.EllipseGeometry.packedLength,w.pack=function(e,t,r){return i.EllipseGeometry.pack(e._ellipseGeometry,t,r)};const A=new i.EllipseGeometry({center:new e.Cartesian3,semiMajorAxis:1,semiMinorAxis:1}),M={center:new e.Cartesian3,radius:void 0,ellipsoid:e.Ellipsoid.clone(e.Ellipsoid.UNIT_SPHERE),height:void 0,extrudedHeight:void 0,granularity:void 0,vertexFormat:new r.VertexFormat,stRotation:void 0,semiMajorAxis:void 0,semiMinorAxis:void 0,shadowVolume:void 0};return w.unpack=function(o,n,s){const a=i.EllipseGeometry.unpack(o,n,A);return M.center=e.Cartesian3.clone(a._center,M.center),M.ellipsoid=e.Ellipsoid.clone(a._ellipsoid,M.ellipsoid),M.height=a._height,M.extrudedHeight=a._extrudedHeight,M.granularity=a._granularity,M.vertexFormat=r.VertexFormat.clone(a._vertexFormat,M.vertexFormat),M.stRotation=a._stRotation,M.shadowVolume=a._shadowVolume,t.defined(s)?(M.semiMajorAxis=a._semiMajorAxis,M.semiMinorAxis=a._semiMinorAxis,s._ellipseGeometry=new i.EllipseGeometry(M),s):(M.radius=a._semiMajorAxis,new w(M))},w.createGeometry=function(e){return i.EllipseGeometry.createGeometry(e._ellipseGeometry)},w.createShadowVolume=function(e,t,i){const o=e._ellipseGeometry._granularity,n=e._ellipseGeometry._ellipsoid,s=t(o,n),a=i(o,n);return new w({center:e._ellipseGeometry._center,radius:e._ellipseGeometry._semiMajorAxis,ellipsoid:n,stRotation:e._ellipseGeometry._stRotation,granularity:o,extrudedHeight:s,height:a,vertexFormat:r.VertexFormat.POSITION_ONLY,shadowVolume:!0})},Object.defineProperties(w.prototype,{rectangle:{get:function(){return this._ellipseGeometry.rectangle}},textureCoordinateRotationPoints:{get:function(){return this._ellipseGeometry.textureCoordinateRotationPoints}}}),function(i,r){return t.defined(r)&&(i=w.unpack(i,r)),i._ellipseGeometry._center=e.Cartesian3.clone(i._ellipseGeometry._center),i._ellipseGeometry._ellipsoid=e.Ellipsoid.clone(i._ellipseGeometry._ellipsoid),w.createGeometry(i)}}));