define(["./arrayRemoveDuplicates-18786327","./BoundingRectangle-218a9c7b","./Transforms-d13cc04e","./Matrix2-9aa31791","./RuntimeError-346a3079","./ComponentDatatype-93750d1a","./CoplanarPolygonGeometryLibrary-551fa870","./when-4bbc8319","./GeometryAttribute-43536dc0","./GeometryAttributes-7827a6c2","./GeometryInstance-47b34185","./GeometryPipeline-2356afec","./IndexDatatype-b7d979a6","./PolygonGeometryLibrary-dec9574a","./PolygonPipeline-da7fc5ca","./VertexFormat-71718faa","./combine-83860057","./WebGLConstants-1c8239cc","./OrientedBoundingBox-4b932f63","./EllipsoidTangentPlane-eecce7e8","./AxisAlignedBoundingBox-07c6b7f2","./IntersectionTests-96a04219","./Plane-318d6937","./AttributeCompression-af389d04","./EncodedCartesian3-f286cedc","./ArcType-98ec98bf","./EllipsoidRhumbLine-30c47ff4"],(function(e,t,a,n,r,o,i,l,s,p,c,y,m,u,d,g,v,b,h,f,x,C,P,A,w,F,G){"use strict";var L=new n.Cartesian3,E=new t.BoundingRectangle,T=new n.Cartesian2,D=new n.Cartesian2,_=new n.Cartesian3,V=new n.Cartesian3,k=new n.Cartesian3,R=new n.Cartesian3,I=new n.Cartesian3,M=new n.Cartesian3,B=new a.Quaternion,H=new n.Matrix3,O=new n.Matrix3,z=new n.Cartesian3;function S(e,t,r,i,l,c,y,u){var g=e.positions,v=d.PolygonPipeline.triangulate(e.positions2D,e.holes);v.length<3&&(v=[0,1,2]);var b=m.IndexDatatype.createTypedArray(g.length,v.length);b.set(v);var h=H;if(0!==i){var f=a.Quaternion.fromAxisAngle(c,i,B);if(h=n.Matrix3.fromQuaternion(f,h),t.tangent||t.bitangent){f=a.Quaternion.fromAxisAngle(c,-i,B);var x=n.Matrix3.fromQuaternion(f,O);y=n.Cartesian3.normalize(n.Matrix3.multiplyByVector(x,y,y),y),t.bitangent&&(u=n.Cartesian3.normalize(n.Cartesian3.cross(c,y,u),u))}}else h=n.Matrix3.clone(n.Matrix3.IDENTITY,h);var C=D;t.st&&(C.x=r.x,C.y=r.y);for(var P=g.length,A=3*P,w=new Float64Array(A),F=t.normal?new Float32Array(A):void 0,G=t.tangent?new Float32Array(A):void 0,E=t.bitangent?new Float32Array(A):void 0,_=t.st?new Float32Array(2*P):void 0,V=0,k=0,R=0,I=0,M=0,z=0;z