algorithmic modeling for Rhino
Hi folks;
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,
Screen%20Shot%202012-04-21%20at%202.41.27%20PM.png;
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++);
else();
(not 100% sure even :((( )
GH and screen shots attached!
Thanks for help;
bibo
Tags:
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.
--
David Rutten
david@mcneel.com
Poprad, Slovakia
thanks David ,that works perfectly
Hi David,
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
bibo
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by