surprise
2023-12-29 18377dc5d61caf3a6a0835e17015ac2601f8709d
1
define(["./Matrix3-293ae7b3","./defaultValue-865ac579","./EllipseGeometry-ab004366","./VertexFormat-20b5279f","./Math-76ce6367","./Transforms-36e0c57f","./Matrix2-7f5bbd54","./RuntimeError-9e0724f9","./combine-5e110d09","./ComponentDatatype-985dcc38","./WebGLConstants-258cf3a0","./EllipseGeometryLibrary-bda8a026","./GeometryAttribute-df0cc42c","./GeometryAttributes-75794475","./GeometryInstance-0f6ca825","./GeometryOffsetAttribute-06264989","./GeometryPipeline-d395f1f6","./AttributeCompression-e34a188e","./EncodedCartesian3-d8932345","./IndexDatatype-16f6b4a1","./IntersectionTests-3a8233fc","./Plane-a7f8aee2"],(function(e,t,i,r,o,n,a,s,l,m,d,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,a){const s=i.EllipseGeometry.unpack(o,n,A);return M.center=e.Cartesian3.clone(s._center,M.center),M.ellipsoid=e.Ellipsoid.clone(s._ellipsoid,M.ellipsoid),M.height=s._height,M.extrudedHeight=s._extrudedHeight,M.granularity=s._granularity,M.vertexFormat=r.VertexFormat.clone(s._vertexFormat,M.vertexFormat),M.stRotation=s._stRotation,M.shadowVolume=s._shadowVolume,t.defined(a)?(M.semiMajorAxis=s._semiMajorAxis,M.semiMinorAxis=s._semiMinorAxis,a._ellipseGeometry=new i.EllipseGeometry(M),a):(M.radius=s._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,a=t(o,n),s=i(o,n);return new w({center:e._ellipseGeometry._center,radius:e._ellipseGeometry._semiMajorAxis,ellipsoid:n,stRotation:e._ellipseGeometry._stRotation,granularity:o,extrudedHeight:a,height:s,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)}}));