def test_get_voxels_in_large_range(grid: RectangularGrid): for voxel, distance in grid.get_voxels_in_range(Point(x=4, y=4, z=4), 10): assert distance <= 10 assert grid.is_valid_voxel(voxel)
def test_get_voxels_in_range(grid: RectangularGrid, point, distance, voxels): assert set(grid.get_voxels_in_range(point, distance)) == voxels