/** * Cesium - https://github.com/CesiumGS/cesium * * Copyright 2011-2020 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/master/LICENSE.md for full licensing details. */ define(["./when-8d13db60","./Check-70bec281","./Math-61ede240","./Cartographic-f27b0939","./Cartesian2-09435a6c","./WebGLConstants-4c11ee5f","./AttributeCompression-75ce15eb","./IndexDatatype-9435b55f","./createTaskProcessorWorker"],function(a,e,W,B,z,r,H,O,n){var Y=32767,Z=new B.Cartographic,j=new B.Cartesian3;var q=new z.Rectangle,J=new z.Ellipsoid,K=new B.Cartesian3,Q={min:void 0,max:void 0};var V=new B.Cartesian3,X=new B.Cartesian3,$=new B.Cartesian3,aa=new B.Cartesian3,ea=new B.Cartesian3;return n(function(a,e){var r=new Uint16Array(a.positions),n=new Uint16Array(a.widths),t=new Uint32Array(a.counts),i=new Uint16Array(a.batchIds);!function(a){a=new Float64Array(a);var e=0;Q.min=a[e++],Q.max=a[e++],z.Rectangle.unpack(a,e,q),e+=z.Rectangle.packedLength,z.Ellipsoid.unpack(a,e,J),e+=z.Ellipsoid.packedLength,B.Cartesian3.unpack(a,e,K)}(a.packedBuffer);var s,u=J,c=K,o=function(a,e,r,n,t){var i=a.length/3,s=a.subarray(0,i),u=a.subarray(i,2*i),c=a.subarray(2*i,3*i);H.AttributeCompression.zigZagDeltaDecode(s,u,c);for(var o=new Float32Array(a.length),f=0;f