Tutorial 3 — Working with Spatial Data in Grasshopper

Richard Chou
Data Mining the City 2022
12 min readFeb 9, 2022

--

  • 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.

Data Tree

--

--

Richard Chou
Data Mining the City 2022

I am passionate about developing data-driven design strategies for urban design and city building of the next century.