Grasshopper – DataTree

Data Tree | sample file

Data structure

The data structures used in Grasshopper are called “Data Tree“.

Data Tree is composed of a bunch of lists which has a series of item (data) in it. We call the numbers of each list divided by semicolons “Path” and a number of item “Index“.

2

Data matching

List v.s. List matching

0

Data Tree v.s. Data Tree matching

1

Components

  • Graft: put all the items in the list into each individual list
  • Flatten: delete all the lists and put all the items in the lists into one list
  • FlipMatrix: exchange list number (Path) and item number (Index)

Practice | sample file

Components

  • DivideSurface
  • RelItem
  • Boundary

Workflow