/* 2020-9-22 15:23:25 | 版权所有 军懋国兴 */ 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","./VertexFormat-fe64931e","./arrayRemoveDuplicates-d96adeb6","./EllipsoidRhumbLine-357c11e7","./EllipsoidGeodesic-007422da","./PolylinePipeline-be169602","./WallGeometryLibrary-ebaee328"],function(Y,d,Z,j,K,e,t,Q,X,$,ee,i,r,u,a,n,o,s,te){"use strict";var ie=new j.Cartesian3,re=new j.Cartesian3,ae=new j.Cartesian3,ne=new j.Cartesian3,oe=new j.Cartesian3,se=new j.Cartesian3,me=new j.Cartesian3;function f(e){var t=(e=Y.defaultValue(e,Y.defaultValue.EMPTY_OBJECT)).positions,i=e.maximumHeights,r=e.minimumHeights;if(!Y.defined(t))throw new d.DeveloperError("options.positions is required.");if(Y.defined(i)&&i.length!==t.length)throw new d.DeveloperError("options.positions and options.maximumHeights must have the same length.");if(Y.defined(r)&&r.length!==t.length)throw new d.DeveloperError("options.positions and options.minimumHeights must have the same length.");var a=Y.defaultValue(e.vertexFormat,u.VertexFormat.DEFAULT),n=Y.defaultValue(e.granularity,Z.CesiumMath.RADIANS_PER_DEGREE),o=Y.defaultValue(e.ellipsoid,j.Ellipsoid.WGS84);this._positions=t,this._minimumHeights=r,this._maximumHeights=i,this._vertexFormat=u.VertexFormat.clone(a),this._granularity=n,this._ellipsoid=j.Ellipsoid.clone(o),this._workerName="createWallGeometry";var s=1+t.length*j.Cartesian3.packedLength+2;Y.defined(r)&&(s+=r.length),Y.defined(i)&&(s+=i.length),this.packedLength=s+j.Ellipsoid.packedLength+u.VertexFormat.packedLength+1}f.pack=function(e,t,i){if(!Y.defined(e))throw new d.DeveloperError("value is required");if(!Y.defined(t))throw new d.DeveloperError("array is required");var r;i=Y.defaultValue(i,0);var a=e._positions,n=a.length;for(t[i++]=n,r=0;r