generative modeling for Rhino
I need to select the four neighboring points in a grid of points for every point, I have managed to select them, however I have a problem at the edges, where any of the neighboring is missing, it does go to the very first point in the next row,
I want it to accept that there is no more neighbors and agree on 2 or 3 neighbors only.
from processing, I know it might be something like that
for(int i = 0; i<x_count(); i++);
(not 100% sure even :((( )
GH and screen shots attached!
Thanks for help;
I hope you can open this file as it was saved with 0.9.0001.
I used Relative Tree Item to get neighbours from the grid.
thanks David ,that works perfectly
Sorry to bother again,.. The def worked best with grid of points, but when trying it with surface isotrims it didn't (cause isotrim results surfaces all in one branch), i managed to do it, but again manually and it looks somehow stupid, as I have to select manually one more row every time i increase the sub-divisions.
Basically what I want to achieve is to select every surface and do some compare with its neighbors, so I want also to be able to select one surface and do all work on it, then apply it to all others.
appreciate your reply. and thanks again