/** * @license * Cesium - https://github.com/CesiumGS/cesium * Version 1.99 * * Copyright 2011-2022 Cesium Contributors * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * Columbus View (Pat. Pend.) * * Portions licensed separately. * See https://github.com/CesiumGS/cesium/blob/main/LICENSE.md for full licensing details. */ define(["./Transforms-3ea76111","./BoxGeometry-2a0f092f","./Matrix3-edb29a7e","./Color-bda3e761","./CylinderGeometry-ed076423","./defaultValue-135942ca","./EllipsoidGeometry-ba11d28b","./IndexDatatype-3a8ea78f","./Matrix2-7a2bab7e","./createTaskProcessorWorker","./Math-a304e2d6","./combine-462d91dd","./RuntimeError-f0dada00","./ComponentDatatype-e86a9f87","./WebGLConstants-fcb70ee3","./GeometryAttribute-dacddb3f","./GeometryAttributes-899f8bd0","./GeometryOffsetAttribute-d3a42805","./VertexFormat-7d5b4d7e","./CylinderGeometryLibrary-29e6b863"],(function(e,t,n,a,r,i,o,s,d,c,l,f,u,h,b,p,y,x,g,m){"use strict";function C(e){this.offset=e.offset,this.count=e.count,this.color=e.color,this.batchIds=e.batchIds}const I=new n.Cartesian3,M=d.Matrix4.packedLength+n.Cartesian3.packedLength,k=d.Matrix4.packedLength+2,B=d.Matrix4.packedLength+n.Cartesian3.packedLength,w=n.Cartesian3.packedLength+1,A={modelMatrix:new d.Matrix4,boundingVolume:new e.BoundingSphere};function O(e,t){let a=t*M;const r=n.Cartesian3.unpack(e,a,I);a+=n.Cartesian3.packedLength;const i=d.Matrix4.unpack(e,a,A.modelMatrix);d.Matrix4.multiplyByScale(i,r,i);const o=A.boundingVolume;return n.Cartesian3.clone(n.Cartesian3.ZERO,o.center),o.radius=Math.sqrt(3),A}function L(e,t){let a=t*k;const r=e[a++],i=e[a++],o=n.Cartesian3.fromElements(r,r,i,I),s=d.Matrix4.unpack(e,a,A.modelMatrix);d.Matrix4.multiplyByScale(s,o,s);const c=A.boundingVolume;return n.Cartesian3.clone(n.Cartesian3.ZERO,c.center),c.radius=Math.sqrt(2),A}function v(e,t){let a=t*B;const r=n.Cartesian3.unpack(e,a,I);a+=n.Cartesian3.packedLength;const i=d.Matrix4.unpack(e,a,A.modelMatrix);d.Matrix4.multiplyByScale(i,r,i);const o=A.boundingVolume;return n.Cartesian3.clone(n.Cartesian3.ZERO,o.center),o.radius=1,A}function E(e,t){let a=t*w;const r=e[a++],i=n.Cartesian3.unpack(e,a,I),o=d.Matrix4.fromTranslation(i,A.modelMatrix);d.Matrix4.multiplyByUniformScale(o,r,o);const s=A.boundingVolume;return n.Cartesian3.clone(n.Cartesian3.ZERO,s.center),s.radius=1,A}const U=new n.Cartesian3;function G(t,r,o,s,c){if(!i.defined(r))return;const l=o.length,f=s.attributes.position.values,u=s.indices,h=t.positions,b=t.vertexBatchIds,p=t.indices,y=t.batchIds,x=t.batchTableColors,g=t.batchedIndices,m=t.indexOffsets,I=t.indexCounts,M=t.boundingVolumes,k=t.modelMatrix,B=t.center;let w=t.positionOffset,A=t.batchIdIndex,O=t.indexOffset;const L=t.batchedIndicesOffset;for(let t=0;t