define(["./when-77f4e3be","./Check-d71f548f","./Math-b81aa1f1","./Cartesian2-69a87134","./Transforms-03dbcaf7","./RuntimeError-34dd6124","./WebGLConstants-3e40d443","./ComponentDatatype-af4852df","./GeometryAttribute-d15db730","./GeometryAttributes-0175f743","./IndexDatatype-41885adf","./createTaskProcessorWorker","./GeometryOffsetAttribute-1d161b37","./VertexFormat-bbe2af43","./BoxGeometry-5764b566","./CylinderGeometryLibrary-4ca83a86","./CylinderGeometry-05dc9956","./EllipsoidGeometry-df4c94c0","./Color-94fb6ffc"],function(F,e,t,R,Z,n,r,a,i,o,D,d,s,f,P,c,q,W,S){"use strict";function T(e){this.offset=e.offset,this.count=e.count,this.color=e.color,this.batchIds=e.batchIds}var l=new R.Cartesian3,u=Z.Matrix4.packedLength+R.Cartesian3.packedLength,h=Z.Matrix4.packedLength+2,b=Z.Matrix4.packedLength+R.Cartesian3.packedLength,p=R.Cartesian3.packedLength+1,y={modelMatrix:new Z.Matrix4,boundingVolume:new Z.BoundingSphere};function _(e,t){var n=t*u,r=R.Cartesian3.unpack(e,n,l);n+=R.Cartesian3.packedLength;var a=Z.Matrix4.unpack(e,n,y.modelMatrix);Z.Matrix4.multiplyByScale(a,r,a);var i=y.boundingVolume;return R.Cartesian3.clone(R.Cartesian3.ZERO,i.center),i.radius=Math.sqrt(3),y}function N(e,t){var n=t*h,r=e[n++],a=e[n++],i=R.Cartesian3.fromElements(r,r,a,l),o=Z.Matrix4.unpack(e,n,y.modelMatrix);Z.Matrix4.multiplyByScale(o,i,o);var d=y.boundingVolume;return R.Cartesian3.clone(R.Cartesian3.ZERO,d.center),d.radius=Math.sqrt(2),y}function Y(e,t){var n=t*b,r=R.Cartesian3.unpack(e,n,l);n+=R.Cartesian3.packedLength;var a=Z.Matrix4.unpack(e,n,y.modelMatrix);Z.Matrix4.multiplyByScale(a,r,a);var i=y.boundingVolume;return R.Cartesian3.clone(R.Cartesian3.ZERO,i.center),i.radius=1,y}function j(e,t){var n=t*p,r=e[n++],a=R.Cartesian3.unpack(e,n,l),i=Z.Matrix4.fromTranslation(a,y.modelMatrix);Z.Matrix4.multiplyByUniformScale(i,r,i);var o=y.boundingVolume;return R.Cartesian3.clone(R.Cartesian3.ZERO,o.center),o.radius=1,y}var V=new R.Cartesian3;function z(e,t,n,r,a){if(F.defined(t)){for(var i=n.length,o=r.attributes.position.values,d=r.indices,s=e.positions,f=e.vertexBatchIds,c=e.indices,l=e.batchIds,u=e.batchTableColors,h=e.batchedIndices,b=e.indexOffsets,p=e.indexCounts,y=e.boundingVolumes,x=e.modelMatrix,g=e.center,v=e.positionOffset,C=e.batchIdIndex,m=e.indexOffset,I=e.batchedIndicesOffset,k=0;k