/** * @license * Cesium - https://github.com/CesiumGS/cesium * Version 1.98 * * 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-c9e418cb","./BoxGeometry-ab1d2468","./Matrix2-cf4c6e69","./Color-8a786cd4","./CylinderGeometry-51885e81","./defaultValue-50f7432c","./EllipsoidGeometry-e6424adf","./IndexDatatype-ceed713e","./createTaskProcessorWorker","./ComponentDatatype-9b23164a","./WebGLConstants-58abc51a","./combine-8462e002","./RuntimeError-48e1f06d","./GeometryAttribute-b84ffce6","./GeometryAttributes-8bab1b25","./GeometryOffsetAttribute-490bc2c9","./VertexFormat-fa0c27e8","./CylinderGeometryLibrary-8bcf1a43"],(function(e,t,n,r,a,i,o,s,c,d,l,f,u,h,b,p,y,x){"use strict";function g(e){this.offset=e.offset,this.count=e.count,this.color=e.color,this.batchIds=e.batchIds}const m=new n.Cartesian3,C=n.Matrix4.packedLength+n.Cartesian3.packedLength,I=n.Matrix4.packedLength+2,k=n.Matrix4.packedLength+n.Cartesian3.packedLength,M=n.Cartesian3.packedLength+1,B={modelMatrix:new n.Matrix4,boundingVolume:new e.BoundingSphere};function w(e,t){let r=t*C;const a=n.Cartesian3.unpack(e,r,m);r+=n.Cartesian3.packedLength;const i=n.Matrix4.unpack(e,r,B.modelMatrix);n.Matrix4.multiplyByScale(i,a,i);const o=B.boundingVolume;return n.Cartesian3.clone(n.Cartesian3.ZERO,o.center),o.radius=Math.sqrt(3),B}function A(e,t){let r=t*I;const a=e[r++],i=e[r++],o=n.Cartesian3.fromElements(a,a,i,m),s=n.Matrix4.unpack(e,r,B.modelMatrix);n.Matrix4.multiplyByScale(s,o,s);const c=B.boundingVolume;return n.Cartesian3.clone(n.Cartesian3.ZERO,c.center),c.radius=Math.sqrt(2),B}function O(e,t){let r=t*k;const a=n.Cartesian3.unpack(e,r,m);r+=n.Cartesian3.packedLength;const i=n.Matrix4.unpack(e,r,B.modelMatrix);n.Matrix4.multiplyByScale(i,a,i);const o=B.boundingVolume;return n.Cartesian3.clone(n.Cartesian3.ZERO,o.center),o.radius=1,B}function L(e,t){let r=t*M;const a=e[r++],i=n.Cartesian3.unpack(e,r,m),o=n.Matrix4.fromTranslation(i,B.modelMatrix);n.Matrix4.multiplyByUniformScale(o,a,o);const s=B.boundingVolume;return n.Cartesian3.clone(n.Cartesian3.ZERO,s.center),s.radius=1,B}const v=new n.Cartesian3;function E(t,a,o,s,c){if(!i.defined(a))return;const d=o.length,l=s.attributes.position.values,f=s.indices,u=t.positions,h=t.vertexBatchIds,b=t.indices,p=t.batchIds,y=t.batchTableColors,x=t.batchedIndices,m=t.indexOffsets,C=t.indexCounts,I=t.boundingVolumes,k=t.modelMatrix,M=t.center;let B=t.positionOffset,w=t.batchIdIndex,A=t.indexOffset;const O=t.batchedIndicesOffset;for(let t=0;t