Grasshopper

generative modeling for Rhino

# Neighbors

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,

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: Neighboring, grid, points

Views: 241

Attachments:

### Replies to This Discussion

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

Attachments:
.9 :)

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

Attachments:

by Nasia.S

• Add Photos
• View All

## Videos

• ### Rhino3D Grasshopper Tutorial 14 - Expressions 01

Added by Jose Sanchez

• ### Rhino3D Grasshopper Tutorial15 Expression 02

Added by Jose Sanchez

• ### Rhino3D Grasshopper Tutorial16 - Geometric Orientation

Added by Jose Sanchez

• ### PYTHON in Grasshopper 02 Recursive Aggregation

Added by Jose Sanchez

• ### PYTHON in Grasshopper 01 Koch Curve

Added by Jose Sanchez

• Add Videos
• View All

© 2013   Created by Scott Davidson.   Powered by