define(["./when-ca391574","./Cartesian2-5b63e672","./Transforms-5295b227","./ComponentDatatype-8f71e605","./Check-64f87f7d","./GeometryAttribute-7ef2d452","./GeometryAttributes-a356f820","./IndexDatatype-4e56bcfa","./Math-b53708b3","./VertexFormat-63b3c6da","./WallGeometryLibrary-3a48b1a1","./RuntimeError-19cb26ba","./WebGLConstants-95ceb4e9","./arrayRemoveDuplicates-fc9e255d","./PolylinePipeline-00f5e064","./EllipsoidGeodesic-bbea0b0a","./EllipsoidRhumbLine-21029cef","./IntersectionTests-f5111308","./Plane-99b2becd"],function(S,I,N,M,e,W,B,U,q,p,J,t,a,i,n,r,o,s,m){"use strict";var Y=new I.Cartesian3,Z=new I.Cartesian3,j=new I.Cartesian3,K=new I.Cartesian3,Q=new I.Cartesian3,X=new I.Cartesian3,$=new I.Cartesian3;function d(e){var t=(e=S.defaultValue(e,S.defaultValue.EMPTY_OBJECT)).positions,a=e.maximumHeights,i=e.minimumHeights,n=S.defaultValue(e.vertexFormat,p.VertexFormat.DEFAULT),r=S.defaultValue(e.granularity,q.CesiumMath.RADIANS_PER_DEGREE),e=S.defaultValue(e.ellipsoid,I.Ellipsoid.WGS84);this._positions=t,this._minimumHeights=i,this._maximumHeights=a,this._vertexFormat=p.VertexFormat.clone(n),this._granularity=r,this._ellipsoid=I.Ellipsoid.clone(e),this._workerName="createWallGeometry";t=1+t.length*I.Cartesian3.packedLength+2;S.defined(i)&&(t+=i.length),S.defined(a)&&(t+=a.length),this.packedLength=t+I.Ellipsoid.packedLength+p.VertexFormat.packedLength+1}d.pack=function(e,t,a){var i;a=S.defaultValue(a,0);var n=e._positions,r=n.length;for(t[a++]=r,i=0;i