Click or drag to resize

Node3dTNearestItems Method (T, Int32, Double, Double)

Find the N nearest items.

Namespace:  Grasshopper.Kernel.Geometry.SpatialTrees
Assembly:  Grasshopper (in Grasshopper.dll)
Syntax
public List<Index3d<T>> NearestItems(
	T locus,
	int groupSize,
	double minimumDistance,
	double maximumDistance
)

Parameters

locus
Type: T
Search locus.
groupSize
Type: SystemInt32
Number of nearest items to return.
minimumDistance
Type: SystemDouble
Minimum distance for nearest items. Items closer than minimumDistance will be ignored.
maximumDistance
Type: SystemDouble
Maximum distance for nearest items. Items further than maximumDistance will be ignored.

Return Value

Type: ListIndex3dT
A list of nearest items, sorted from nearest to furthest.
See Also