Grasshopper API
Node3dTNearestItem Method (Point3d, Double, Double) |
Find the nearest item.
Namespace: Grasshopper.Kernel.Geometry.SpatialTrees
Assembly: Grasshopper (in Grasshopper.dll)

public Index3d<T> NearestItem( Point3d locus, double minimumDistance, double maximumDistance )
Public Function NearestItem ( locus As Point3d, minimumDistance As Double, maximumDistance As Double ) As Index3d(Of T)
Parameters
- locus
- Type: Point3d
Location to search from. - minimumDistance
- Type: SystemDouble
Minimum distance for nearest item. Items closer than minimumDistance will be ignored. - maximumDistance
- Type: SystemDouble
Maximum distance for nearest item. Items further than maximumDistance will be ignored.
Return Value
Type: Index3dTThe index of the nearest item or null if no nearest item could be found.
