define(["exports","./Cartographic-3309dd0d","./Math-119be1a3","./PrimitiveType-a54dc62f","./GeometryAttribute-3a88ba31"],(function(a,r,e,t,i){"use strict";var n={},s=new r.Cartesian3,o=new r.Cartesian3,l=new i.Quaternion,y=new t.Matrix3;function C(a,e,n,C,u,m,c,h,x,M){var d=a+e;r.Cartesian3.multiplyByScalar(C,Math.cos(d),s),r.Cartesian3.multiplyByScalar(n,Math.sin(d),o),r.Cartesian3.add(s,o,s);var z=Math.cos(a);z*=z;var f=Math.sin(a);f*=f;var v=m/Math.sqrt(c*z+u*f)/h;return i.Quaternion.fromAxisAngle(s,v,l),t.Matrix3.fromQuaternion(l,y),t.Matrix3.multiplyByVector(y,x,M),r.Cartesian3.normalize(M,M),r.Cartesian3.multiplyByScalar(M,h,M),M}var u=new r.Cartesian3,m=new r.Cartesian3,c=new r.Cartesian3,h=new r.Cartesian3;n.raisePositionsToHeight=function(a,e,t){for(var i=e.ellipsoid,n=e.height,s=e.extrudedHeight,o=t?a.length/3*2:a.length/3,l=new Float64Array(3*o),y=a.length,C=t?y:0,x=0;x1;--g){if(S=C(-(T=e.CesiumMath.PI_OVER_TWO-(g-1)*w),o,O,p,h,f,z,v,_,S),B=C(T+Math.PI,o,O,p,h,f,z,v,_,B),t){for(R[W++]=S.x,R[W++]=S.y,R[W++]=S.z,E=2*(g-1)+2,I=1;I