2023-09-11 21:56:39 +08:00
|
|
|
define(["./when-b60132fc","./BoundingSphere-561b54d0","./Cartographic-3309dd0d","./Check-7b2a090c","./ComponentDatatype-c140a87d","./GeometryAttribute-3a42bbdc","./GeometryAttributes-252e9929","./PrimitiveType-39acab88","./Cartesian2-47311507","./Math-119be1a3","./Cartesian4-3ca25aab","./RuntimeError-4a5c8994","./WebGLConstants-4ae0db90","./Transforms-cb0006b0","./buildModuleUrl-3addfe33","./FeatureDetection-c3b71206"],(function(e,t,n,r,a,i,o,c,u,b,d,p,s,y,m,f){"use strict";function w(){this._workerName="createPlaneOutlineGeometry"}w.packedLength=0,w.pack=function(e,t){return t},w.unpack=function(t,n,r){return e.defined(r)?r:new w};var h=new n.Cartesian3(-.5,-.5,0),C=new n.Cartesian3(.5,.5,0);return w.createGeometry=function(){var e=new o.GeometryAttributes,r=new Uint16Array(8),u=new Float64Array(12);return u[0]=h.x,u[1]=h.y,u[2]=h.z,u[3]=C.x,u[4]=h.y,u[5]=h.z,u[6]=C.x,u[7]=C.y,u[8]=h.z,u[9]=h.x,u[10]=C.y,u[11]=h.z,e.position=new i.GeometryAttribute({componentDatatype:a.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:u}),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:c.PrimitiveType.LINES,boundingSphere:new t.BoundingSphere(n.Cartesian3.ZERO,Math.sqrt(2))})},function(t,n){return e.defined(n)&&(t=w.unpack(t,n)),w.createGeometry(t)}}));
|