# Bucket class

Namespace: [Grasshopper2.Imaging.Raycasting](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.imaging.raycasting.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public sealed class Bucket
```

Represents a single spatial bucket in a raycaster lookup grid.

## Constructors

- [Bucket](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.bucket/ctor.md): Create a new, empty bucket.

## Properties

- [Box](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.bucket/box.md): Gets the bounding box of this bucket.
- [Count](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.bucket/count.md): Gets the number of indices associated with this bucket.

## Methods

- [NextIndex](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.bucket/nextindex.md): Find the index of the next potential object underneath the coordinate.
- [ObjectIndexAt](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.bucket/objectindexat.md): Gets an object index.
- [ObjectPartialAt](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.bucket/objectpartialat.md): Gets an object partial coverage.
