surprise
2023-12-05 6ecef4176f6d9df60cd1a753a36e09cd96bce9b8
1
define(["./Matrix2-52f9f880","./RuntimeError-ac440aa5","./defaultValue-69ee94f4","./EllipseGeometry-93ef05ca","./VertexFormat-e68722dd","./ComponentDatatype-a9820060","./WebGLConstants-f63312fc","./PixelFormat-9ceadbf3","./GeometryOffsetAttribute-4d39b441","./Transforms-3e1dc9c2","./_commonjsHelpers-3aae1032-15991586","./combine-0259f56f","./EllipseGeometryLibrary-0b8e2e45","./GeometryAttribute-c774c37f","./GeometryAttributes-1b4134a9","./GeometryInstance-90cd14f9","./GeometryPipeline-ccff615d","./AttributeCompression-5e4af6de","./EncodedCartesian3-8ce94cd2","./IndexDatatype-1cbc8622","./IntersectionTests-088640d2","./Plane-e5b2f6e0"],(function(e,t,i,r,o,n,s,l,a,m,d,c,u,p,y,_,f,x,G,h,g,E){"use strict";function w(e){const t=(e=i.defaultValue(e,i.defaultValue.EMPTY_OBJECT)).radius,o={center:e.center,semiMajorAxis:t,semiMinorAxis:t,ellipsoid:e.ellipsoid,height:e.height,extrudedHeight:e.extrudedHeight,granularity:e.granularity,vertexFormat:e.vertexFormat,stRotation:e.stRotation,shadowVolume:e.shadowVolume};this._ellipseGeometry=new r.EllipseGeometry(o),this._workerName="createCircleGeometry"}w.packedLength=r.EllipseGeometry.packedLength,w.pack=function(e,t,i){return r.EllipseGeometry.pack(e._ellipseGeometry,t,i)};const A=new r.EllipseGeometry({center:new e.Cartesian3,semiMajorAxis:1,semiMinorAxis:1}),v={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 o.VertexFormat,stRotation:void 0,semiMajorAxis:void 0,semiMinorAxis:void 0,shadowVolume:void 0};return w.unpack=function(t,n,s){const l=r.EllipseGeometry.unpack(t,n,A);return v.center=e.Cartesian3.clone(l._center,v.center),v.ellipsoid=e.Ellipsoid.clone(l._ellipsoid,v.ellipsoid),v.height=l._height,v.extrudedHeight=l._extrudedHeight,v.granularity=l._granularity,v.vertexFormat=o.VertexFormat.clone(l._vertexFormat,v.vertexFormat),v.stRotation=l._stRotation,v.shadowVolume=l._shadowVolume,i.defined(s)?(v.semiMajorAxis=l._semiMajorAxis,v.semiMinorAxis=l._semiMinorAxis,s._ellipseGeometry=new r.EllipseGeometry(v),s):(v.radius=l._semiMajorAxis,new w(v))},w.createGeometry=function(e){return r.EllipseGeometry.createGeometry(e._ellipseGeometry)},w.createShadowVolume=function(e,t,i){const r=e._ellipseGeometry._granularity,n=e._ellipseGeometry._ellipsoid,s=t(r,n),l=i(r,n);return new w({center:e._ellipseGeometry._center,radius:e._ellipseGeometry._semiMajorAxis,ellipsoid:n,stRotation:e._ellipseGeometry._stRotation,granularity:r,extrudedHeight:s,height:l,vertexFormat:o.VertexFormat.POSITION_ONLY,shadowVolume:!0})},Object.defineProperties(w.prototype,{rectangle:{get:function(){return this._ellipseGeometry.rectangle}},textureCoordinateRotationPoints:{get:function(){return this._ellipseGeometry.textureCoordinateRotationPoints}}}),function(t,r){return i.defined(r)&&(t=w.unpack(t,r)),t._ellipseGeometry._center=e.Cartesian3.clone(t._ellipseGeometry._center),t._ellipseGeometry._ellipsoid=e.Ellipsoid.clone(t._ellipseGeometry._ellipsoid),w.createGeometry(t)}}));