original_docstring: Convert paths from a collection object to 3D segments.
docstring: Convert paths from a collection object to 3D segments.
docstring_tokens: Convert paths from a collection object to 3D segments .
code: def paths_to_3d_segments(paths, zs=0, zdir='z'):
      """Convert paths from a collection object to 3D segments."""
  
      zs = np.broadcast_to(zs, len(paths))
      segs = [path_to_3d_segment(path, pathz, zdir)
              for path, pathz in zip(paths, zs)]
      return segs
code_tokens: def paths_to_3d_segments ( paths , zs = 0 , zdir = 'z' ) : zs = np . broadcast_to ( zs , len ( paths ) ) segs = [ path_to_3d_segment ( path , pathz , zdir ) for path , pathz in zip ( paths , zs ) ] return segs
short_docstring: Convert paths from a collection object to 3D segments.
short_docstring_tokens: Convert paths from a collection object to 3D segments .
comment: """Convert paths from a collection object to 3D segments."""