define(["./when-4bbc8319","./Matrix2-9aa31791","./ArcType-98ec98bf","./Transforms-d13cc04e","./Color-1ab5c5c7","./ComponentDatatype-93750d1a","./RuntimeError-346a3079","./GeometryAttribute-43536dc0","./GeometryAttributes-7827a6c2","./IndexDatatype-b7d979a6","./PolylinePipeline-64021a2e","./combine-83860057","./WebGLConstants-1c8239cc","./EllipsoidGeodesic-dd8f2afb","./EllipsoidRhumbLine-30c47ff4","./IntersectionTests-96a04219","./Plane-318d6937"],(function(e,o,r,t,a,l,i,n,s,p,d,c,y,f,u,h,C){"use strict";function T(e,o,r,t,l,i,n){var s,p=d.PolylinePipeline.numberOfPoints(e,o,l),c=r.red,y=r.green,f=r.blue,u=r.alpha,h=t.red,C=t.green,T=t.blue,g=t.alpha;if(a.Color.equals(r,t)){for(s=0;s
0?new Array(n):void 0;for(i=0;i0&&(o.Cartesian3.pack(W,y,F),F+=3,h=g[c-1],u[H++]=a.Color.floatToByte(h.red),u[H++]=a.Color.floatToByte(h.green),u[H++]=a.Color.floatToByte(h.blue),u[H++]=a.Color.floatToByte(h.alpha)),k&&c===G-1)break;o.Cartesian3.pack(W,y,F),F+=3,e.defined(g)&&(h=g[c],u[H++]=a.Color.floatToByte(h.red),u[H++]=a.Color.floatToByte(h.green),u[H++]=a.Color.floatToByte(h.blue),u[H++]=a.Color.floatToByte(h.alpha))}}var Y=new s.GeometryAttributes;Y.position=new n.GeometryAttribute({componentDatatype:l.ComponentDatatype.DOUBLE,componentsPerAttribute:3,values:y}),e.defined(g)&&(Y.color=new n.GeometryAttribute({componentDatatype:l.ComponentDatatype.UNSIGNED_BYTE,componentsPerAttribute:4,values:u,normalize:!0}));var q=2*((f=y.length/3)-1),z=p.IndexDatatype.createTypedArray(f,q),J=0;for(c=0;c