qa-prevention-gwj-vue/static/map/cesium91/CesiumUnminified/Workers/createPlaneOutlineGeometry.js

2 lines
1.4 KiB
JavaScript
Raw Permalink Normal View History

2024-01-02 14:12:39 +08:00
define(["./defaultValue-81eec7ed","./BoundingSphere-9a3b5656","./Cartesian3-e0307675","./Check-741c5f3c","./ComponentDatatype-aaeec80f","./GeometryAttribute-2b42a913","./GeometryAttributes-32b29525","./Cartesian2-bd414876","./Math-e73894ab","./GeographicProjection-c931c7fb","./Matrix4-4c545f70","./RuntimeError-26acdd3b","./Rectangle-cf3e0e3e","./WebGLConstants-508b9636","./Matrix2-dc0c61cc","./Transforms-5b829630","./when-422ea0ae","./Resource-8ae1a924","./combine-3c023bda"],(function(e,t,n,r,a,i,c,o,u,s,b,p,y,m,d,f,w,h,G){"use strict";function C(){this._workerName="createPlaneOutlineGeometry"}C.packedLength=0,C.pack=function(e,t){return t},C.unpack=function(t,n,r){return e.defined(r)?r:new C};const l=new n.Cartesian3(-.5,-.5,0),A=new n.Cartesian3(.5,.5,0);return C.createGeometry=function(){const e=new c.GeometryAttributes,r=new Uint16Array(8),o=new Float64Array(12);return o[0]=l.x,o[1]=l.y,o[2]=l.z,o[3]=A.x,o[4]=l.y,o[5]=l.z,o[6]=A.x,o[7]=A.y,o[8]=l.z,o[9]=l.x,o[10]=A.y,o[11]=l.z,e.position=new i.GeometryAttribute({componentDatatype:a.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:o}),r[0]=0,r[1]=1,r[2]=1,r[3]=2,r[4]=2,r[5]=3,r[6]=3,r[7]=0,new i.Geometry({attributes:e,indices:r,primitiveType:i.PrimitiveType.LINES,boundingSphere:new t.BoundingSphere(n.Cartesian3.ZERO,Math.sqrt(2))})},function(t,n){return e.defined(n)&&(t=C.unpack(t,n)),C.createGeometry(t)}}));