latest
Vector
Closest Points

Find closest point in a point collection

ID

662ae7a510b6cb87640c9227

Name

Closest Points

Group

Vector

Package

Tool

Keywords

closestPnt
nearestPnt
closestPoint

Surface

Vector

Transform

Primitive Curves

Curve Analysis

Toolset

Triangulation

Boolean Operation

Panels

Solid

Intersection

Text

Image

Analysis

Array

Creation method

There are two options for creating the Closest Points node.

  • The first way to create the Closest Points node is using the search list, which is opened by double left-clicking in the workspace. You can write the name of the node you need or words associated with this node.
    • closestPts, nearestPts, closestPoints
  • The second way is to select the Project Points node from the menu that opens from the top left.
    • Menu > Tool > Vector > Closest Points

Steps

  • Create the Closest Points node.
  • Connect the list of points for the search to the first port.
  • Connect the point for the search to the second port.
  • Connect the number of the closest points to find to the third port.

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.

See also

Project Point
Point Distance\

Inputs

NameTypeDescriptionDefault Value
points
Point
List of points to search
point
Point
Point to search fromVector([0, 0, 0])
count
Number
Number of closest points to find3

Outputs

NameTypeDescription
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