Tutorial 3 — Working with Spatial Data in Grasshopper
- You can download the completed Tutorial 3 script here: Download
Data Structure
Item
An item is a single piece of data that could be a value, text, state (true/false), or a geometry instance. A data item can also be represented as a list, however, it would simply be a list of one item.
List
A data list is a data structure where a collection of items are organized in sequence. Items in a list are ordered starting from 0 (0,1,2…) which determines the order of operation. This also allows accessing specific data items within a list when necessary (ie. getting the first polysurface in a list of geometry). It is not required that all data items be of the same type to be in a list, but typically, lists of items with the same data type are used when passing data between components.