Click or drag to resize

Node3dTNearestItem Method (Double, Double, Double, Double, Double)

Find the nearest item.

Namespace:  Grasshopper.Kernel.Geometry.SpatialTrees
Assembly:  Grasshopper (in Grasshopper.dll)
Syntax
public Index3d<T> NearestItem(
	double x,
	double y,
	double z,
	double minimumDistance,
	double maximumDistance
)

Parameters

x
Type: SystemDouble
x coordinate to search from.
y
Type: SystemDouble
y coordinate to search from.
z
Type: SystemDouble
z coordinate 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: Index3dT
The index of the nearest item or null if no nearest item could be found.
See Also