# VoxelSpace class

Namespace: [Grasshopper2.Types.Shapes](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.types.shapes.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public sealed class VoxelSpace
```

A sparse voxel volume.

## Constructors

- [VoxelSpace](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.shapes.voxelspace/ctor.md)

## Properties

- [All](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.shapes.voxelspace/all.md): Iterate over all set voxel indices. This includes the voxels on the interior and the boundary of the mesh.
- [AllInterior](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.shapes.voxelspace/allinterior.md): Iterate over all interior voxel indices.
- [Count](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.shapes.voxelspace/count.md): Total number of voxels in the grid, including the unset ones.
- [CountX](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.shapes.voxelspace/countx.md): Total number of voxels in the grid X direction.
- [CountY](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.shapes.voxelspace/county.md): Total number of voxels in the grid Y direction.
- [CountZ](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.shapes.voxelspace/countz.md): Total number of voxels in the grid Z direction.
- [Unit](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.shapes.voxelspace/unit.md): Unit size for voxels.

## Methods

- [CreateFromMesh](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.shapes.voxelspace/createfrommesh.md): (static)
- [GradAt](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.shapes.voxelspace/gradat.md): Compute the magnitude of the normalised temperature gradient going into the volume.
- [PointAt](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.shapes.voxelspace/pointat.md): Gets the real world coordinate at the voxel centre.
- [SolveHeatDispersion](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.shapes.voxelspace/solveheatdispersion.md): Run a cooling simulation. All interior voxels are set to 1.0, all exterior ones to 0.0 and then an iterative smoothing is applied until the average temp drops below 'coolingLimit'.
- [TempAt](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.shapes.voxelspace/tempat.md): (2 overloads) Gets the temperature at the given voxel indices.
