define(["./when-4bbc8319","./Matrix2-9aa31791","./Transforms-d13cc04e","./ComponentDatatype-93750d1a","./RuntimeError-346a3079","./GeometryAttribute-43536dc0","./GeometryAttributes-7827a6c2","./IndexDatatype-b7d979a6","./VertexFormat-71718faa","./WallGeometryLibrary-d3b18e7c","./combine-83860057","./WebGLConstants-1c8239cc","./arrayRemoveDuplicates-18786327","./PolylinePipeline-64021a2e","./EllipsoidGeodesic-dd8f2afb","./EllipsoidRhumbLine-30c47ff4","./IntersectionTests-96a04219","./Plane-318d6937"],(function(e,t,a,i,r,n,o,s,m,l,u,p,d,c,y,f,g,v){"use strict";var h=new t.Cartesian3,C=new t.Cartesian3,x=new t.Cartesian3,A=new t.Cartesian3,b=new t.Cartesian3,_=new t.Cartesian3,E=new t.Cartesian3;function w(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}w.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