1 |
- define(["./Cartesian3-7e9cc2ff","./Check-741c5f3c","./defaultValue-81eec7ed","./EllipseGeometry-f72259e4","./Matrix2-e3fb4559","./VertexFormat-d50a69ba","./Math-5f585871","./GeometryOffsetAttribute-ed56ff58","./Transforms-98ffa11d","./Matrix4-d34187af","./RuntimeError-26acdd3b","./_commonjsHelpers-3aae1032-26891ab7","./combine-3c023bda","./ComponentDatatype-aaeec80f","./WebGLConstants-508b9636","./EllipseGeometryLibrary-77f59e46","./GeometryAttribute-b025f9a8","./GeometryAttributes-32b29525","./GeometryInstance-ce434bcb","./GeometryPipeline-4b426993","./AttributeCompression-e2e3f0dd","./EncodedCartesian3-aac44514","./IndexDatatype-f1e3f799","./IntersectionTests-73b87d72","./Plane-4f75b3df"],(function(e,t,i,r,o,n,a,s,l,d,m,c,u,p,y,_,f,x,G,h,g,b,E,w,A){"use strict";function M(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"}M.packedLength=r.EllipseGeometry.packedLength,M.pack=function(e,t,i){return r.EllipseGeometry.pack(e._ellipseGeometry,t,i)};const v=new r.EllipseGeometry({center:new e.Cartesian3,semiMajorAxis:1,semiMinorAxis:1}),C={center:new e.Cartesian3,radius:void 0,ellipsoid:o.Ellipsoid.clone(o.Ellipsoid.UNIT_SPHERE),height:void 0,extrudedHeight:void 0,granularity:void 0,vertexFormat:new n.VertexFormat,stRotation:void 0,semiMajorAxis:void 0,semiMinorAxis:void 0,shadowVolume:void 0};return M.unpack=function(t,a,s){const l=r.EllipseGeometry.unpack(t,a,v);return C.center=e.Cartesian3.clone(l._center,C.center),C.ellipsoid=o.Ellipsoid.clone(l._ellipsoid,C.ellipsoid),C.height=l._height,C.extrudedHeight=l._extrudedHeight,C.granularity=l._granularity,C.vertexFormat=n.VertexFormat.clone(l._vertexFormat,C.vertexFormat),C.stRotation=l._stRotation,C.shadowVolume=l._shadowVolume,i.defined(s)?(C.semiMajorAxis=l._semiMajorAxis,C.semiMinorAxis=l._semiMinorAxis,s._ellipseGeometry=new r.EllipseGeometry(C),s):(C.radius=l._semiMajorAxis,new M(C))},M.createGeometry=function(e){return r.EllipseGeometry.createGeometry(e._ellipseGeometry)},M.createShadowVolume=function(e,t,i){const r=e._ellipseGeometry._granularity,o=e._ellipseGeometry._ellipsoid,a=t(r,o),s=i(r,o);return new M({center:e._ellipseGeometry._center,radius:e._ellipseGeometry._semiMajorAxis,ellipsoid:o,stRotation:e._ellipseGeometry._stRotation,granularity:r,extrudedHeight:a,height:s,vertexFormat:n.VertexFormat.POSITION_ONLY,shadowVolume:!0})},Object.defineProperties(M.prototype,{rectangle:{get:function(){return this._ellipseGeometry.rectangle}},textureCoordinateRotationPoints:{get:function(){return this._ellipseGeometry.textureCoordinateRotationPoints}}}),function(t,r){return i.defined(r)&&(t=M.unpack(t,r)),t._ellipseGeometry._center=e.Cartesian3.clone(t._ellipseGeometry._center),t._ellipseGeometry._ellipsoid=o.Ellipsoid.clone(t._ellipseGeometry._ellipsoid),M.createGeometry(t)}}));
|