latest
Vector
Closest Point

Find closest point in a point collection

ID

662ae7a510b6cb87640c9226

Name

Closest Point

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 Point node.

  • The first way to create the Closest Point 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.
    • closestPnt, nearestPnt, closestPoint
  • The second way is to select the Closest Point node from the menu that opens from the top left.
    • Menu > Tool > Vector > Closest Point

Steps

  • Create the Closest Point node.
  • Connect the list of points for the search to the first port.
  • Connect the point for the search to the second 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. On the output ports, we will get a result point in the list closest to a given point, the index of the closest point, and the distance between the given point and the closest point.

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])

Outputs

NameTypeDescription
closestPoint
Point
Point in list closest to given point
index
Number
Index of closest point
distance
Number
Distance between the given point and closest point