1
Surpriseplus
2022-09-16 a7e5110ef3f5fe3c9205f7d1a526b9fbbb55d826
1
define(["./when-e3a49219","./Transforms-a6362ad2","./Matrix2-ae0e0b05","./RuntimeError-ffc802eb","./ComponentDatatype-64cf6611","./GeometryAttribute-50aef525","./GeometryAttributes-3db3f2c9","./combine-c7a1ec8a","./PixelFormat-83d70a69","./WebGLConstants-1c8239cc"],(function(e,t,n,r,a,i,o,c,u,m){"use strict";function y(){this._workerName="createPlaneOutlineGeometry"}y.packedLength=0,y.pack=function(e,t){return t},y.unpack=function(t,n,r){return e.defined(r)?r:new y};var s=new n.Cartesian3(-.5,-.5,0),p=new n.Cartesian3(.5,.5,0);return y.createGeometry=function(){var e=new o.GeometryAttributes,r=new Uint16Array(8),c=new Float64Array(12);return c[0]=s.x,c[1]=s.y,c[2]=s.z,c[3]=p.x,c[4]=s.y,c[5]=s.z,c[6]=p.x,c[7]=p.y,c[8]=s.z,c[9]=s.x,c[10]=p.y,c[11]=s.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=y.unpack(t,n)),y.createGeometry(t)}}));