月球大数据地理空间分析展示平台-【前端】-月球2期前端
surprise
2023-10-31 b4bffdef9d944ee0982a08e0ea06b5a4a2f829d0
1
define(["./Matrix3-ef89a1eb","./defaultValue-abec0268","./EllipseGeometry-9a1e783d","./VertexFormat-d813e77b","./Math-a56d1479","./Transforms-ed424165","./Matrix2-50a93848","./RuntimeError-279c39be","./combine-7a07cedd","./ComponentDatatype-565a8190","./WebGLConstants-292d99ef","./EllipseGeometryLibrary-69050f17","./GeometryAttribute-ea1743e0","./GeometryAttributes-50483cde","./GeometryInstance-159dff64","./GeometryOffsetAttribute-82d57e99","./GeometryPipeline-31b26235","./AttributeCompression-29f13287","./EncodedCartesian3-7ea38c7c","./IndexDatatype-5f9fa3ed","./IntersectionTests-b9443f66","./Plane-47041f17"],(function(e,t,i,r,o,n,s,a,l,d,m,u,c,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)}}));