define(["./arrayRemoveDuplicates-6dfd408b","./BoundingRectangle-9e73068f","./Transforms-b51fdb37","./Rectangle-82621db8","./Check-24483042","./ComponentDatatype-1a100acd","./CoplanarPolygonGeometryLibrary-92e889f6","./when-54335d57","./GeometryAttribute-02fdce7a","./GeometryAttributes-caa08d6c","./GeometryInstance-4247a2b3","./GeometryPipeline-6bfd5efb","./IndexDatatype-edb2f4d6","./Math-7a8129d6","./PolygonGeometryLibrary-340be930","./PolygonPipeline-be37706f","./VertexFormat-81ec7207","./RuntimeError-88a32665","./PixelFormat-d198afce","./WebGLConstants-95ceb4e9","./OrientedBoundingBox-108c8b47","./EllipsoidTangentPlane-3e9e5847","./IntersectionTests-afc06c64","./Plane-fd9e13db","./AttributeCompression-3961575e","./EncodedCartesian3-c7ed7a62","./ArcType-2b58731c","./EllipsoidRhumbLine-2550c0e1"],function(w,e,V,R,t,I,A,s,M,H,F,G,B,O,L,z,p,a,n,r,o,i,l,y,c,m,u,d){"use strict";var S=new R.Cartesian3,E=new e.BoundingRectangle,N=new R.Cartesian2,Q=new R.Cartesian2,T=new R.Cartesian3,D=new R.Cartesian3,_=new R.Cartesian3,k=new R.Cartesian3,j=new R.Cartesian3,U=new R.Cartesian3,Y=new V.Quaternion,q=new V.Matrix3,J=new V.Matrix3,W=new R.Cartesian3;function Z(e,t,a,n,r,o,i,l){var s=e.positions,p=z.PolygonPipeline.triangulate(e.positions2D,e.holes);p.length<3&&(p=[0,1,2]);var y=B.IndexDatatype.createTypedArray(s.length,p.length);y.set(p);var c=q;if(0!==n){var m=V.Quaternion.fromAxisAngle(o,n,Y);if(c=V.Matrix3.fromQuaternion(m,c),t.tangent||t.bitangent){m=V.Quaternion.fromAxisAngle(o,-n,Y);var u=V.Matrix3.fromQuaternion(m,J);i=R.Cartesian3.normalize(V.Matrix3.multiplyByVector(u,i,i),i),t.bitangent&&(l=R.Cartesian3.normalize(R.Cartesian3.cross(o,i,l),l))}}else c=V.Matrix3.clone(V.Matrix3.IDENTITY,c);var d=Q;t.st&&(d.x=a.x,d.y=a.y);for(var g=s.length,b=3*g,v=new Float64Array(b),h=t.normal?new Float32Array(b):void 0,f=t.tangent?new Float32Array(b):void 0,C=t.bitangent?new Float32Array(b):void 0,x=t.st?new Float32Array(2*g):void 0,P=0,w=0,A=0,F=0,G=0,L=0;L