original_docstring: Convert a LineCollection to a Line3DCollection object.
docstring: Convert a LineCollection to a Line3DCollection object.
docstring_tokens: Convert a LineCollection to a Line3DCollection object .
code: def line_collection_2d_to_3d(col, zs=0, zdir='z'):
      """Convert a LineCollection to a Line3DCollection object."""
      segments3d = paths_to_3d_segments(col.get_paths(), zs, zdir)
      col.__class__ = Line3DCollection
      col.set_segments(segments3d)
code_tokens: def line_collection_2d_to_3d ( col , zs = 0 , zdir = 'z' ) : segments3d = paths_to_3d_segments ( col . get_paths ( ) , zs , zdir ) col . __class__ = Line3DCollection col . set_segments ( segments3d )
short_docstring: Convert a LineCollection to a Line3DCollection object.
short_docstring_tokens: Convert a LineCollection to a Line3DCollection object .
comment: """Convert a LineCollection to a Line3DCollection object."""