Description:

Finds a certain amour of points in a list of 3D points that are the k-closest to a test point. This method searches needlePoints by computing all distances from each point cloud point and keeping a "short list". See RTree KNeighbors for alternatives.

Syntax:
public static IEnumerable<int[]> Point3dKNeighbors(
IEnumerable<Point3d> hayPoints,
IEnumerable<Point3d> needlePoints,
int amount
)
Parameters:
  • hayPoints
  • Type: IEnumerable<Point3d>
  • A point cloud to be searched.
  • needlePoints
  • Type: IEnumerable<Point3d>
  • Points to search for.
  • amount
  • Type: int
  • The required amount of closest neighbors to find.
Returns:
Type: IEnumerable<int[]>
An enumerable of arrays of indices; each array contains the indices for each of the needlePts.
Available since:
6.0

/
/
/
Point3dKNeighbors

Point3dKNeighbors method

Class:  Rhino.Collections.RhinoList

Nothing found