original_docstring: Convert a Patch to a Patch3D object.
docstring: Convert a Patch to a Patch3D object.
docstring_tokens: Convert a Patch to a Patch3D object .
code: def patch_2d_to_3d(patch, z=0, zdir='z'):
      """Convert a Patch to a Patch3D object."""
      verts = get_patch_verts(patch)
      patch.__class__ = Patch3D
      patch.set_3d_properties(verts, z, zdir)
code_tokens: def patch_2d_to_3d ( patch , z = 0 , zdir = 'z' ) : verts = get_patch_verts ( patch ) patch . __class__ = Patch3D patch . set_3d_properties ( verts , z , zdir )
short_docstring: Convert a Patch to a Patch3D object.
short_docstring_tokens: Convert a Patch to a Patch3D object .
comment: """Convert a Patch to a Patch3D object."""