def paths_to_3d_segments(paths, zs=0, zdir=u'z'):
 if (not iterable(zs)):
  zs = (np.ones(len(paths)) * zs)
 segments = []
 for (path, pathz) in zip(paths, zs):
  segments.append(path_to_3d_segment(path, pathz, zdir))
 return segments

def paths_to_3d_segments ( paths , zs = 0 , zdir = u'z' ) : if ( not iterable ( zs ) ) : zs = ( np . ones ( len ( paths ) ) * zs ) segments = [ ] for ( path , pathz ) in zip ( paths , zs ) : segments . append ( path_to_3d_segment ( path , pathz , zdir ) ) return segments
convert paths from a collection object to 3d segments .