Info:
This VEX code return the nearest point position according to the @P without using point cloud search.
Syntax:
minpos(geoself(), @P);
Example:
@P = minpos(1, @P);
in this example this function will offset every point to the closest point of the second input of the wrangle.