RhinoCommon API
RTreePoint3dClosestPoints Method |
Finds the point in a list of 3D points that is closest to a test point.
Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll)

public static IEnumerable<int[]> Point3dClosestPoints( IEnumerable<Point3d> hayPoints, IEnumerable<Point3d> needlePts, double limitDistance )
Public Shared Function Point3dClosestPoints ( hayPoints As IEnumerable(Of Point3d), needlePts As IEnumerable(Of Point3d), limitDistance As Double ) As IEnumerable(Of Integer())
Parameters
- hayPoints
- Type: System.Collections.GenericIEnumerablePoint3d
A series of points. - needlePts
- Type: System.Collections.GenericIEnumerablePoint3d
Points to search for. - limitDistance
- Type: SystemDouble
The maximum allowed distance.
Return Value
Type: IEnumerableInt32An enumerable of arrays of indices; each array contains the indices for each of the needlePts.

Rhino for Windows
Supported in: 6.8