RhinoCommon API
RTreePointCloudClosestPoints 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[]> PointCloudClosestPoints( PointCloud pointcloud, IEnumerable<Point3d> needlePts, double limitDistance )
Public Shared Function PointCloudClosestPoints ( pointcloud As PointCloud, needlePts As IEnumerable(Of Point3d), limitDistance As Double ) As IEnumerable(Of Integer())
Parameters
- pointcloud
- Type: Rhino.GeometryPointCloud
A point cloud to be searched. - 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.14