# Node2Proximity class

Namespace: [Grasshopper.Kernel.Geometry](https://developer.rhino3d.com/api/gh1/namespace/grasshopper.kernel.geometry.md) · Assembly: [Grasshopper](https://developer.rhino3d.com/api/gh1/assembly/grasshopper.md)

```cs
public class Node2Proximity
```

Maintains settings and results for node proximity searches.

## Constructors

- [Node2Proximity](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.geometry.node2proximity/ctor.md): (3 overloads) Create a new instance with a specific search result count

## Fields

- [m_base](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.geometry.node2proximity/m-base.md)
- [m_base_index](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.geometry.node2proximity/m-base-index.md)
- [m_cur_count](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.geometry.node2proximity/m-cur-count.md)
- [m_D](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.geometry.node2proximity/m-d.md)
- [m_I](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.geometry.node2proximity/m-i.md)
- [m_max_2](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.geometry.node2proximity/m-max-2.md)
- [m_max_count](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.geometry.node2proximity/m-max-count.md)
- [m_max_distance](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.geometry.node2proximity/m-max-distance.md)
- [m_min_2](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.geometry.node2proximity/m-min-2.md)
- [m_min_distance](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.geometry.node2proximity/m-min-distance.md)

## Properties

- [CurrentCount](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.geometry.node2proximity/currentcount.md): Gets the number of results currently stored.
- [DistanceList](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.geometry.node2proximity/distancelist.md): Gets a list representing the sorted distances in the current solution.
- [FurthestDistance](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.geometry.node2proximity/furthestdistance.md): Gets the distance to the furthest point in the current solution.
- [FurthestDistanceSquared](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.geometry.node2proximity/furthestdistancesquared.md): Gets the squared distance to the furthest point in the current solution.
- [FurthestPoint](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.geometry.node2proximity/furthestpoint.md): Gets the index of the furthest point in the current solution.
- [IndexList](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.geometry.node2proximity/indexlist.md): Gets a list representing the sorted indices in the current solution.
- [MaximumCount](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.geometry.node2proximity/maximumcount.md): Gets the maximum result count.
- [MaxSearchRadius](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.geometry.node2proximity/maxsearchradius.md): Gets the maximum search radius
- [MaxSearchRadiusSquared](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.geometry.node2proximity/maxsearchradiussquared.md): Gets the maximum search radius, squared
- [MinSearchRadius](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.geometry.node2proximity/minsearchradius.md): Gets the minimum search radius
- [MinSearchRadiusSquared](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.geometry.node2proximity/minsearchradiussquared.md): Gets the minimum search radius, squared
- [NearestDistance](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.geometry.node2proximity/nearestdistance.md): Gets the distance to the nearest point in the current solution.
- [NearestDistanceSquared](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.geometry.node2proximity/nearestdistancesquared.md): Gets the squared distance to the nearest point in the current solution.
- [NearestPoint](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.geometry.node2proximity/nearestpoint.md): Gets the index of the nearest point in the current solution.
- [Start](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.geometry.node2proximity/start.md): Gets the node from which the search is performed
- [StartIndex](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.geometry.node2proximity/startindex.md): Gets the index of the node from which the search is performed. If the search start node is not part of the search set, this index will be negative.

## Methods

- [DistanceRange](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.geometry.node2proximity/distancerange.md): Gets the squared minimum and maximum distance
- [RegisterNode](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.geometry.node2proximity/registernode.md): Rgister a new node with this collection.
- [ResetLists](https://developer.rhino3d.com/api/gh1/type/grasshopper.kernel.geometry.node2proximity/resetlists.md): This function resets all search results and clears all caches. It is called once prior to a search operation.
