Grasshopper

algorithmic modeling for Rhino

Hi everyone, i'm in the middle of learning this exciting GH-C# stuffs and found some problem(s).

Well, I want to simply re-map the path of data(s) from 2 lists with condition in C# language. Both lists path was {a;b;c}, with "a" is the number of list, "b" is the variable of grouping, and "c" is the number of item in the group. List 1 and list 2 can contain the same data or not.

The condition is to present all data(s) from 2 lists with choosing the shortest count of group items as one group (if both list have some identical data). When there was a different data, then it make group itself. The path output wanted was {d;e}, with "d" is the grouping variable, and "e" for the number of item in the group.

For instance, i gave one example attached in data and data path. Also the wanted result.

Any advice? Thanks a lot :)

Views: 317

Attachments:

Replies to This Discussion

Hi Tom, thanks for reply.

Oh i see. Well, if it will be the impact, i better find the way with GH component first. It was about my exploration in grouping data with condition, actually. I need it for mapping and rearrange the same data, for merging necessity. Thanks a lot Tom :)

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service