# Grasshopper2.Geometry.SpatialTree namespace

Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

## Classes

- [CommonTrees](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.spatialtree.commontrees.md): Provides easy ways to construct commonly used types of OcTree.
- [SpatialTree<T>](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.spatialtree.spatialtree-1.md): Provides a spatial lookup tree for 3d point-like data. This class uses an adaptive octree-subdivision algorithm. If you're dealing with n-dimensional where n != 3, then you can use the SampleSet class in the Grasshopper2.Geometry.Clustering namespace.
- [TreeItem<T>](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.spatialtree.treeitem-1.md): Represents a single item in an octree.

## Delegates

- [Evaluate<T>](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.spatialtree.evaluate-1.md): Delegate for getting the (x,y,z) coordinates of a spatial tree element.
- [LocusDistance](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.spatialtree.locusdistance.md): Delegate used in custom near searches.
- [RegionDistance](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.spatialtree.regiondistance.md): Delegate used in custom near searches.

## Structs

- [InfinitePlane](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.spatialtree.infiniteplane.md): Represents an infinite plane in space.
- [LinearSegment](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.spatialtree.linearsegment.md): Represents a line by origin and span vector.
- [Locus](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.spatialtree.locus.md): Represents an immutable 3D vector or point.
- [OrthogonalBox](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.spatialtree.orthogonalbox.md): Represents a world-aligned rectangular volume.
- [SphericalBall](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.spatialtree.sphericalball.md): Represents a spherical volume.

## Enums

- [TreeSearchInstruction](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.spatialtree.treesearchinstruction.md): Enumerates the possible instructions for a recursive tree search.
