ccg_gridsize() converts a level into gridsize, ccg_factor() is for converting coordinates between different multires levels.