original_docstring: Convert a PathPatch to a PathPatch3D object.
docstring: Convert a PathPatch to a PathPatch3D object.
docstring_tokens: Convert a PathPatch to a PathPatch3D object .
code: def pathpatch_2d_to_3d(pathpatch, z=0, zdir='z'):
      """Convert a PathPatch to a PathPatch3D object."""
      path = pathpatch.get_path()
      trans = pathpatch.get_patch_transform()
  
      mpath = trans.transform_path(path)
      pathpatch.__class__ = PathPatch3D
      pathpatch.set_3d_properties(mpath, z, zdir)
code_tokens: def pathpatch_2d_to_3d ( pathpatch , z = 0 , zdir = 'z' ) : path = pathpatch . get_path ( ) trans = pathpatch . get_patch_transform ( ) mpath = trans . transform_path ( path ) pathpatch . __class__ = PathPatch3D pathpatch . set_3d_properties ( mpath , z , zdir )
short_docstring: Convert a PathPatch to a PathPatch3D object.
short_docstring_tokens: Convert a PathPatch to a PathPatch3D object .
comment: """Convert a PathPatch to a PathPatch3D object."""