Grasshopper

algorithmic modeling for Rhino

Looking for a clean way to cull members in a tree if their index parity doesn't match their branch parity. I.e. if their branch is even, their index must be even; oddindexed elements are culled.

Put in matrix terms, with row i and column j, to keep an element (i%2 == j%2) must be true.

It's been a while since I've used GH, so I'm heading toward a really ugly solution probably using all the wrong components :P

Views: 492

Replies to This Discussion

Use Split Tree with these selection rules:

{0,2,...}[0,2,...]
{1,3,...}[1,3,...]

That's some nice looking compactness. Much obliged, David!

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service