1
lxl
2022-09-16 2d9ddf8269640309f22053d3c92a38fd77e84358
1
define(["./when-54335d57","./Transforms-b51fdb37","./Rectangle-82621db8","./Check-24483042","./ComponentDatatype-1a100acd","./GeometryAttribute-02fdce7a","./GeometryAttributes-caa08d6c","./Math-7a8129d6","./RuntimeError-88a32665","./PixelFormat-d198afce","./WebGLConstants-95ceb4e9"],function(r,a,i,e,o,c,u,t,n,y,m){"use strict";function s(){this._workerName="createPlaneOutlineGeometry"}s.packedLength=0,s.pack=function(e,t){return t},s.unpack=function(e,t,n){return r.defined(n)?n:new s};var d=new i.Cartesian3(-.5,-.5,0),p=new i.Cartesian3(.5,.5,0);return s.createGeometry=function(){var e=new u.GeometryAttributes,t=new Uint16Array(8),n=new Float64Array(12);return n[0]=d.x,n[1]=d.y,n[2]=d.z,n[3]=p.x,n[4]=d.y,n[5]=d.z,n[6]=p.x,n[7]=p.y,n[8]=d.z,n[9]=d.x,n[10]=p.y,n[11]=d.z,e.position=new c.GeometryAttribute({componentDatatype:o.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:n}),t[0]=0,t[1]=1,t[2]=1,t[3]=2,t[4]=2,t[5]=3,t[6]=3,t[7]=0,new c.Geometry({attributes:e,indices:t,primitiveType:c.PrimitiveType.LINES,boundingSphere:new a.BoundingSphere(i.Cartesian3.ZERO,Math.sqrt(2))})},function(e,t){return r.defined(t)&&(e=s.unpack(e,t)),s.createGeometry(e)}});