/** * Cesium - https://github.com/AnalyticalGraphicsInc/cesium * * Copyright 2011-2017 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/AnalyticalGraphicsInc/cesium/blob/master/LICENSE.md for full licensing details. */ define(["./defined-2a4f2d00","./Check-e5651467","./freezeObject-a51e076f","./defaultValue-29c9b1af","./Math-7782f09e","./Cartesian2-ba70b51f","./defineProperties-c817531e","./WebGLConstants-90dbfe2f","./when-1faa3867","./AttributeCompression-5601f533","./IndexDatatype-2bcfc06b","./createTaskProcessorWorker"],function(a,e,r,t,W,z,n,i,s,B,O,f){"use strict";var j=32767,H=new z.Cartographic,V=new z.Cartesian3;var Y=new z.Rectangle,Z=new z.Ellipsoid,q=new z.Cartesian3,J={min:void 0,max:void 0};var K=new z.Cartesian3,Q=new z.Cartesian3,X=new z.Cartesian3,$=new z.Cartesian3,aa=new z.Cartesian3;return f(function(a,e){var r=new Uint16Array(a.positions),t=new Uint16Array(a.widths),n=new Uint32Array(a.counts),i=new Uint16Array(a.batchIds);!function(a){a=new Float64Array(a);var e=0;J.min=a[e++],J.max=a[e++],z.Rectangle.unpack(a,e,Y),e+=z.Rectangle.packedLength,z.Ellipsoid.unpack(a,e,Z),e+=z.Ellipsoid.packedLength,z.Cartesian3.unpack(a,e,q)}(a.packedBuffer);var s,f=Z,u=q,c=function(a,e,r,t,n){var i=a.length/3,s=a.subarray(0,i),f=a.subarray(i,2*i),u=a.subarray(2*i,3*i);B.AttributeCompression.zigZagDeltaDecode(s,f,u);for(var c=new Float32Array(a.length),o=0;o