I did something similar today here's what I did

1) Generate a list of all the distances from all the points to your
test point.

2) Sort the list of distances with a sort component, but add your list
of points as an optional list of values to sort as well. This will
create a list of points ordered by how close they are to your test
point

3) Get the first, second, third, etc.. point from the list of sorted
points by index (0, 1,2 etc..) to get the first, second, third closest
points to your test point.


There may be a better way but this worked for me.

Eric



On Apr 29, 6:00 pm, Arlen <[email protected]> wrote:
> Hi,
>
> This is my first attempt at a definition. I am trying to find the
> closest *and* second closest points (from a set of points) to points
> on a curve, every x mm.
>
> The screen shot below shows how I found the closest point, but I can't
> quite figure out how to do the set operation I want.
>
> Definition:http://farm4.static.flickr.com/3363/3486837065_1e4f3dfe79_o.png
>
> Result:http://farm4.static.flickr.com/3551/3487673444_6034fd05b7_o.png
>
> Let me know if this doesn't make sense.
>
> Thanks,
>
> --a

Reply via email to