Grasshopper

algorithmic modeling for Rhino

Hello. I'm trying to group a bunch of points in different groups, but mantaining their tree-branch structure. For example, if I have the following points:

0. a

1. b

2. c

3. d

4. e

5. f

I want to group them in two different group of points, but mantaining their structure, because first I need to move them in different ways and later group them again to create lines between them:

0. null               0. a

1. b                  1. null

2. c                  2. null

3. null              3. d

4. null              4. e

5. f                  5. null

Thank you

Views: 381

Attachments:

Replies to This Discussion

Graft the data as well as the pattern such that all branches are {n=1} , then Dispatch. You end up with two lists with a bunch of empty branches instead of nulls. Afterwards all you have to do is simply Merge. (and then Flatten or Trim Tree or wtv to go back to the normal structure)

(bottom definition)

Couldn't open your gh def as I'm missing a couple of plugins. Hopefully this generic solution helps.

Attachments:

thank you very much !!

You can use Sift and Combine Components

Sets>List>Sift

Sets>List>Combine

Hope its some help

Matt

Attachments:

thank you !!

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service