/* 2020-9-22 15:23:24 | 版权所有 军懋国兴 */ define(["./when-cbf8cd21","./Check-35e1a91d","./Math-69007a69","./Cartesian2-43e3a3be","./Transforms-2d1ac5ec","./RuntimeError-f4c64df1","./WebGLConstants-95ceb4e9","./ComponentDatatype-607c9a0c","./GeometryAttribute-2303bbfb","./GeometryAttributes-90846c5f","./IndexDatatype-79bb407c","./IntersectionTests-459f6f08","./Plane-46b5436f","./arrayRemoveDuplicates-d96adeb6","./EllipsoidRhumbLine-357c11e7","./EllipsoidGeodesic-007422da","./PolylinePipeline-be169602","./WallGeometryLibrary-ebaee328"],function(D,m,x,G,L,e,i,P,T,V,I,t,r,n,a,o,s,R){"use strict";var S=new G.Cartesian3,q=new G.Cartesian3;function u(e){var i=(e=D.defaultValue(e,D.defaultValue.EMPTY_OBJECT)).positions,t=e.maximumHeights,r=e.minimumHeights;if(!D.defined(i))throw new m.DeveloperError("options.positions is required.");if(D.defined(t)&&t.length!==i.length)throw new m.DeveloperError("options.positions and options.maximumHeights must have the same length.");if(D.defined(r)&&r.length!==i.length)throw new m.DeveloperError("options.positions and options.minimumHeights must have the same length.");var n=D.defaultValue(e.granularity,x.CesiumMath.RADIANS_PER_DEGREE),a=D.defaultValue(e.ellipsoid,G.Ellipsoid.WGS84);this._positions=i,this._minimumHeights=r,this._maximumHeights=t,this._granularity=n,this._ellipsoid=G.Ellipsoid.clone(a),this._workerName="createWallOutlineGeometry";var o=1+i.length*G.Cartesian3.packedLength+2;D.defined(r)&&(o+=r.length),D.defined(t)&&(o+=t.length),this.packedLength=o+G.Ellipsoid.packedLength+1}u.pack=function(e,i,t){if(!D.defined(e))throw new m.DeveloperError("value is required");if(!D.defined(i))throw new m.DeveloperError("array is required");var r;t=D.defaultValue(t,0);var n=e._positions,a=n.length;for(i[t++]=a,r=0;r