# EmptyStack 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 EmptyStack : IObjectStack
```

Implements IObjextStack for an empty collection.

## Constructors

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

## Methods

- [AllObjectsAbove](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.emptystack/allobjectsabove.md): Find all objects coincident with the (u,v) location at or above a given layer index.
- [AllObjectsBelow](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.emptystack/allobjectsbelow.md): Find all objects coincident with the (u,v) location at or below a given layer index.
- [ContinueAndSample](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.emptystack/continueandsample.md): Continue an existing ray.
- [FirstObjectAbove](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.emptystack/firstobjectabove.md): Find the index of the first object at the (u,v) location at or above the given layer index.
- [FirstObjectBelow](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.emptystack/firstobjectbelow.md): Find the index of the first object at the (u,v) location at or below the given layer index.
- [Sample](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.emptystack/sample.md): Shoot a ray into the object stack and evaluate the colour.
