define(["./arrayRemoveDuplicates-a4e37a99","./BoundingRectangle-476158f4","./Transforms-98e4fe15","./Matrix2-9599853a","./Matrix3-2b60b40d","./ComponentDatatype-565a8190","./CoplanarPolygonGeometryLibrary-1d680fac","./defaultValue-abec0268","./GeometryAttribute-2634d326","./GeometryAttributes-50483cde","./GeometryInstance-73e4a99f","./GeometryPipeline-81e2a5c7","./IndexDatatype-5f9fa3ed","./Math-a56d1479","./PolygonGeometryLibrary-edbb1353","./PolygonPipeline-12e5f093","./VertexFormat-d813e77b","./combine-7a07cedd","./RuntimeError-279c39be","./WebGLConstants-292d99ef","./OrientedBoundingBox-577a6715","./EllipsoidTangentPlane-307bae3d","./AxisAlignedBoundingBox-9efb5e58","./IntersectionTests-51d114e6","./Plane-1c708c34","./AttributeCompression-8346a48c","./EncodedCartesian3-2091852c","./ArcType-dbe7fddd","./EllipsoidRhumbLine-a3c0be77"],(function(e,t,n,o,a,r,i,s,l,c,y,p,d,u,m,g,b,C,h,x,f,P,A,L,w,G,F,v,E){"use strict";const _=new a.Cartesian3,T=new t.BoundingRectangle,k=new o.Cartesian2,D=new o.Cartesian2,V=new a.Cartesian3,R=new a.Cartesian3,H=new a.Cartesian3,I=new a.Cartesian3,M=new a.Cartesian3,B=new a.Cartesian3,O=new n.Quaternion,z=new a.Matrix3,S=new a.Matrix3,N=new a.Cartesian3;function Q(e,t,i,y,p,m,b,C,h){const x=e.positions;let f=g.PolygonPipeline.triangulate(e.positions2D,e.holes);f.length<3&&(f=[0,1,2]);const P=d.IndexDatatype.createTypedArray(x.length,f.length);P.set(f);let A=z;if(0!==y){let e=n.Quaternion.fromAxisAngle(b,y,O);if(A=a.Matrix3.fromQuaternion(e,A),t.tangent||t.bitangent){e=n.Quaternion.fromAxisAngle(b,-y,O);const o=a.Matrix3.fromQuaternion(e,S);C=a.Cartesian3.normalize(a.Matrix3.multiplyByVector(o,C,C),C),t.bitangent&&(h=a.Cartesian3.normalize(a.Cartesian3.cross(b,C,h),h))}}else A=a.Matrix3.clone(a.Matrix3.IDENTITY,A);const L=D;t.st&&(L.x=i.x,L.y=i.y);const w=x.length,G=3*w,F=new Float64Array(G),v=t.normal?new Float32Array(G):void 0,E=t.tangent?new Float32Array(G):void 0,T=t.bitangent?new Float32Array(G):void 0,V=t.st?new Float32Array(2*w):void 0;let R=0,H=0,I=0,M=0,B=0;for(let e=0;e