Here's an example on how to get the two closest points in a pointcloud: http://grasshopper3d.googlegroups.com/web/twoclosestpoints.ghx I removed the 0 (distance between the same point) by simply extracting the second smallest distance.
Maybe it would be better to use another method for what you are trying to achieve, since this two points may not have any other close neighbors and the area may actually not be that dense. Another solution could be to check for every point how many other points are at less that a given distance and sort by that. This way you could vary with a slider the density scale. On May 1, 12:43 pm, Patrick <[email protected]> wrote: > He guys > > I got a point grid distorted from several attractors resulting in a > grid of different density qualities. I tried to get the point of the > highest density in this cloud by comparing the distances of every > point. Does it make sense to start this way? How to kick theese guys > out of the list regarding distances with themselves (=0)? Maybe its > possible to sort every 2nd and 3rd point to compare them? Gimme a hint > pls > > Cheers, patrick
