Find closest point in a point collection
ID
tool-vector-closest-points
Name
Closest Points
Group
Vector
Package
Tool
Keywords
Render
After creating a node, connect the list of points for the search to the first port. Connect the point to search from to the second port, and the number of the closest points to find to the third port. On the output ports, we will get a result points in the list closest to a given point, the index of the closest points, and the distance between the given point and the closest points.
Project Point
Point Distance\
Inputs
Name | Type | Description | Default Value |
---|---|---|---|
points | Point | List of points to search | |
point | Point | Point to search from | [0,0,0] |
count | Number | Number of closest points to find | 3 |
Outputs
Name | Type | Description |
---|---|---|
closestPoints | Point | Point in list closest to given point |
indexes | Number | Index of closest point |
distances | Number | Distance between the given point and closest point |