Grasshopper

algorithmic modeling for Rhino

I've run into problems with this, but I suppose it's something simple I'm missing. I belivie to have done this before but cant seem to remember how.

I have a list of numbers, structured in a simple datatree which I would like to match against each other to see what paths a certain item occur in, and structure that in a similar data tree.

Example intput:

   {0}

0:0

1:1

   {1}

0:3

1:2

   {2}

0:0

1:3

Desired output would be a tree describing the paths containing similar items. something like this:

{0}

0:{0}

1:{1}

2:{2}

{1}

{2}

{3}

0:{1}

1:{2}

Kind of what the "Member index" outputs, but instead a tree of "Member paths"

Views: 773

Replies to This Discussion

Can you post your example lists in a GH definition as I'm not quite sure what you mean.

Maybe you mean the Param Viewer? It outputs the tree branches as strings.

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