KDTree.nearest_neighbors
- KDTree.nearest_neighbors(point, number, distance_sort=False)
Find the N nearest neighbors to a given point.
- Parameters:
- point
compas.geometry.Point
The base point.
- numberint
The number of nearest neighbors.
- distance_sortbool, optional
Sort the nearest neighbors by distance to the base point.
- point
- Returns:
- list[[[float, float, float], int or str, float]]
A list of N nearest neighbors.