to_grid function has now point interface