def patch_2d_to_3d(patch, z=0, zdir=u'z'):
 verts = get_patch_verts(patch)
 patch.__class__ = Patch3D
 patch.set_3d_properties(verts, z, zdir)

def patch_2d_to_3d ( patch , z = 0 , zdir = u'z' ) : verts = get_patch_verts ( patch ) patch . __class__ = Patch3D patch . set_3d_properties ( verts , z , zdir )
convert a patch to a patch3d object .