def grid_centers2world_n_voxels(grid_c):
    """
    Helper to quickly get the 'world_size' and 'n_voxels' from the centers of the grid.
    """

    world_size = grid_c[-1] - grid_c[0]
    world_size += ((grid_c[-1] - grid_c[-2]) + grid_c[1] - (grid_c[0])) / 2
    n_voxels = len(grid_c)
    return world_size, n_voxels