1 |
- define(["./defaultValue-81eec7ed","./Transforms-98ffa11d","./Cartesian3-7e9cc2ff","./Check-741c5f3c","./ComponentDatatype-aaeec80f","./GeometryAttribute-b025f9a8","./GeometryAttributes-32b29525","./Matrix2-e3fb4559","./Math-5f585871","./Matrix4-d34187af","./RuntimeError-26acdd3b","./_commonjsHelpers-3aae1032-26891ab7","./combine-3c023bda","./WebGLConstants-508b9636"],(function(e,t,n,r,a,i,o,c,u,s,f,m,y,p){"use strict";function b(){this._workerName="createPlaneOutlineGeometry"}b.packedLength=0,b.pack=function(e,t){return t},b.unpack=function(t,n,r){return e.defined(r)?r:new b};const d=new n.Cartesian3(-.5,-.5,0),w=new n.Cartesian3(.5,.5,0);return b.createGeometry=function(){const e=new o.GeometryAttributes,r=new Uint16Array(8),c=new Float64Array(12);return c[0]=d.x,c[1]=d.y,c[2]=d.z,c[3]=w.x,c[4]=d.y,c[5]=d.z,c[6]=w.x,c[7]=w.y,c[8]=d.z,c[9]=d.x,c[10]=w.y,c[11]=d.z,e.position=new i.GeometryAttribute({componentDatatype:a.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:c}),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=b.unpack(t,n)),b.createGeometry(t)}}));
|