define(["./when-e3a49219","./Matrix2-ae0e0b05","./Transforms-a6362ad2","./ComponentDatatype-64cf6611","./RuntimeError-ffc802eb","./GeometryAttribute-50aef525","./GeometryAttributes-3db3f2c9","./IndexDatatype-e12e2493","./VertexFormat-9bafa8ef","./WallGeometryLibrary-912804eb","./PixelFormat-83d70a69","./WebGLConstants-1c8239cc","./combine-c7a1ec8a","./arrayRemoveDuplicates-328bac4c","./PolylinePipeline-e16881a5","./EllipsoidGeodesic-524df442","./EllipsoidRhumbLine-b6518e5c","./IntersectionTests-8be403d7","./Plane-2bf1bb80"],(function(e,t,a,i,r,n,o,s,m,l,u,p,d,c,y,f,g,v,h){"use strict";var C=new t.Cartesian3,b=new t.Cartesian3,x=new t.Cartesian3,A=new t.Cartesian3,_=new t.Cartesian3,E=new t.Cartesian3,w=new t.Cartesian3;function F(a){var r=(a=e.defaultValue(a,e.defaultValue.EMPTY_OBJECT)).positions,n=a.maximumHeights,o=a.minimumHeights,s=e.defaultValue(a.vertexFormat,m.VertexFormat.DEFAULT),l=e.defaultValue(a.granularity,i.CesiumMath.RADIANS_PER_DEGREE),u=e.defaultValue(a.ellipsoid,t.Ellipsoid.WGS84);this._positions=r,this._minimumHeights=o,this._maximumHeights=n,this._vertexFormat=m.VertexFormat.clone(s),this._granularity=l,this._ellipsoid=t.Ellipsoid.clone(u),this._workerName="createWallGeometry";var p=1+r.length*t.Cartesian3.packedLength+2;e.defined(o)&&(p+=o.length),e.defined(n)&&(p+=n.length),this.packedLength=p+t.Ellipsoid.packedLength+m.VertexFormat.packedLength+1}F.pack=function(a,i,r){var n;r=e.defaultValue(r,0);var o=a._positions,s=o.length;for(i[r++]=s,n=0;n0)for(o=new Array(l),n=0;n0)for(s=new Array(l),n=0;n