original_docstring: Convert a PolyCollection to a Poly3DCollection object.
docstring: Convert a PolyCollection to a Poly3DCollection object.
docstring_tokens: Convert a PolyCollection to a Poly3DCollection object .
code: def poly_collection_2d_to_3d(col, zs=0, zdir='z'):
      """Convert a PolyCollection to a Poly3DCollection object."""
      segments_3d, codes = paths_to_3d_segments_with_codes(col.get_paths(),
                                                           zs, zdir)
      col.__class__ = Poly3DCollection
      col.set_verts_and_codes(segments_3d, codes)
      col.set_3d_properties()
code_tokens: def poly_collection_2d_to_3d ( col , zs = 0 , zdir = 'z' ) : segments_3d , codes = paths_to_3d_segments_with_codes ( col . get_paths ( ) , zs , zdir ) col . __class__ = Poly3DCollection col . set_verts_and_codes ( segments_3d , codes ) col . set_3d_properties ( )
short_docstring: Convert a PolyCollection to a Poly3DCollection object.
short_docstring_tokens: Convert a PolyCollection to a Poly3DCollection object .
comment: """Convert a PolyCollection to a Poly3DCollection object."""