Grasshopper

algorithmic modeling for Rhino

After a request by Arend I added an unflatten component for reversing a flattening operation. If you still have the original tree and the number of items hasn't changed it can be put back together:

However I just cannot come up with a good idea for an icon for Unflatten. The best I could come up with was an acorn, which is a tenuous link at best.

Any ideas welcome, but please remember that the icon must de drawable and recognizable in a 20x20 (24x24 in an emergency) pixel image.

--

David Rutten

david@mcneel.com

Poprad, Slovakia

Views: 8937

Replies to This Discussion

How about bonsai ?

I know "unflatten" is a straightforward name, but it may be named "Rebuild tree"... or similar.

Unflatten seems to be the rebirth of a data structure, which is an easy jump to a butterfly or a butterfly emerging from a cocoon.  A reach could be a phoenix, but that gets away from the "tree" themed icons.

is this different in functionality from the "match paths" component in HDT Utilities? Just curious... I'd be happy for that to be made a built-in feature. It seems to me that "unflatten" is maybe not the clearest way to express that - because it can work on data that was never flattened from a tree structure to begin with (if I'm understanding correctly how it works...)

not that that helps you with the icon problem...

Basically it iterates over all the items in one tree and assigns them to the path structure of another tree.

T0 = {ABCDEFGHIJKL}

T1 = {NOP}{QRSYU}{VWX}{Y}

unflatten T0 using T1 as a guide gets you {ABC}{DEFGH}{IJK}{L}

I think unflatten is quite a good -albeit a made up- word for this.

--

David Rutten

david@mcneel.com

Poprad, Slovakia

Could just be "restore tree".  I also like the idea of a sapling coming out of the flattened stump.

I think match tree, maybe just add some sprouts coming out of the acorn. Also, will it work on multi layered lists like 0;0, 1;0, 2;0 ect. As the action you show above can just be done with partition.

Already wrote another component called [Match Tree] :)

--

David Rutten

david@mcneel.com

Poprad, Slovakia

Sounds good :)

hey what does match tree do?  I've been putting together a series of path filtering components...

Match tree copies the paths from one tree and the data from another. It requires they both have the same amount of branches.

--

David Rutten

david@mcneel.com

Poprad, Slovakia

Hi,

I'd prefer to use the image of a bunch of grapes. It contains the idea of "belonging" - elements to a family, and families to a system.

 

https://www.google.com/search?as_st=y&tbm=isch&hl=en&as...

I like that idea without the hand. Just the flattens stump icon with a sprout growing out of the top.

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service