def blocktrans_side2cen6(side_size):
    """ Convert from side rep to center rep
    In center rep, the 6 numbers are center coordinates, then size in 3 dims
    In side rep, the 6 numbers are lower x, y, z, then higher x, y, z """
    lx,ly,lz = float(side_size[0]), float(side_size[1]), float(side_size[2])
    hx,hy,hz = float(side_size[3]), float(side_size[4]), float(side_size[5])
    return [(lx+hx)*.5,(ly+hy)*.5,(lz+hz)*.5,abs(hx-lx),abs(hy-ly),abs(hz-lz)]