## colidescope

/live/ dividing-spaces

## colidescope

/live/ dividing-spaces# Dividing Spaces

In this demo, we will apply the recursive logic covered in this tutorial to create a basic subdivision process that takes a starting closed boundary curve and progressively divides it into pieces to generate a set of smaller spaces. This creates the starting point for our floor plan generator which will be developed over a series of sessions.

The core of the subdivision logic is a process that starts with a single space represented by a closed curve and divides it into two spaces based on parameters that dictate the direction and location of the split. In the demo, we first model this process in Grasshopper using only Grasshopper components. We then convert the process step by step to Python code developed withing a single Python component.

## ¶Splitting spaces in Grasshopper (part 1)

In the next tutorial, we will wrap this process into a custom function, which will allow us to apply it recursively to split a space continuously into a set of smaller spaces based on a set of parameters.