From the course: Grasshopper and Rhino: C# Scripting

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

DataTrees

DataTrees

From the course: Grasshopper and Rhino: C# Scripting

Start my 1-month free trial

DataTrees

- When using Grasshopper, we often work with tree structures to access branches of data. As we experienced in the last lesson, outputting nested arrays or lists, results in structures unrecognizable by Grasshopper. So in this lesson, let's take a look at outputting the same data as a tree with a branch for each role of points. So far in the course, we're being accessing the Rhino API with C sharp. We can also access the Grasshopper API, which provides access to all the types in Grasshopper. This API is a default import into the C sharp component, as we learned earlier in the course. We can view this API the same way that we would the Rhino API, on the rhino developer docs website. This is available under Grasshopper. While we won't be studying this API in detail, there are some great examples here if you want to learn more later on. For now, we will just be using the data tree object, which is found in the…

Contents