Grasshopper

algorithmic modeling for Rhino

Hi guys,

I am having trouble find out a way to match the tree structure of one list of data to another list of data, both with the same number of points. Is there a way to find the partition list on the left list and apply that to the one on the right so both list structure is identical? Or is there a better way of doing it?

Thanks

Views: 1479

Replies to This Discussion

use list length on the left list , flatten the right list then partition list on right using the list lengths from left :)

Thank you, I had no idea list length does more than counting!

You can also use the "unflatten" component to coerce the contents of one list into the data structure of another. 

Thanks for the tip Andrew

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service