What is meaning of this example?

import rhinoscriptsyntax as rs

cloud = rs.GetObject(“Select point cloud”)

if cloud:

point = rs.GetPoint("Point to test")

if point:

    cloud = rs.PointCloudPoints(cloud)

    index = rs.PointArrayClosestPoint(cloud, point)

    if index is not None:

        point_id = rs.AddPoint(cloud[index])

        rs.SelectObject( point_id )

It lets you select a point cloud and another lone point. It will highlights in the point cloud the closest point to that lone point.

1 Like

What is meaning of lone point?

one, single