Grasshopper

algorithmic modeling for Rhino

Relative Item component breaking tree structure! Neighbors elements.

Hi!

I'm trying to find 8 neighbors point for every point in a ordered grid.

(every combo of "-1","0","+1" in {x}(x) drawing a line to {0}(0) ...)

But the Relative Item component break the original tree structure!

I would expect that if I set false to wrapping "Wp" and "Wi" the output could still keep the original  tree structure, but giving "nulls" or similar when the offset go out of existence.

How to "fix" this?

There are other ways to actually find neighbors in trees in grasshopper?

Views: 1850

Replies to This Discussion

Hi Riccardo, if you hook up the A output of the RelItem component to the A input of the Line component (instead of the original points) you'll get your expected result.

Thanks for the tip, that's useful.

I just never watched "A" output lol...

But still i need "B" with the same structure as "P".

I'll try to reconstruct the paths in some way like P:X=A:B or so...

Thanks again.

How? The number of items are different...

Yay! Done!

RelItem_FT (Full Tree) cluster to serve!

By starting to look at "A" it solved itself out :P

Thanks again!

Very nice Riccardo, cudos for a succesful use of the ItemIndex component:) That's a tough one...


RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service