<aside> 🧙 In Grasshopper, you'll find yourself doing some tasks again and again. We've put together a little guide sharing the shortcuts and tricks we use in our own projects to save you some time. There's a world of different ways to get to the same result though, so don't hold back on trying new methods until you find what fits you like a glove!

</aside>

Pick single or multiple objects from the list based on their qualities.

Some examples:

The key component here is Cull Pattern:

Here we show how to get all closed curves from the list

Here we show how to get all closed curves from the list

<aside> 💡 Note that you can combine multiple filters and keep using one single Cull Pattern component. To do that, make use of the Gate AND , Gate OR and NOT components. You can read more about the boolean logic here (ADD LINK) but as a rule of thumb try to structure your filter logic in sentences. In the following example I pick all curves which are closed and have area > 1000m².

Notice, that the  Component is glowing red. If you click on the small message box above it you’ll find the cause of it: area cannot be taken of a disclosed curve, so Area will give us <null> in those cases. It won’t affect our calculations just this time but can be a cause of problems, so be aware of this.

Notice, that the Area Component is glowing red. If you click on the small message box above it you’ll find the cause of it: area cannot be taken of a disclosed curve, so Area will give us <null> in those cases. It won’t affect our calculations just this time but can be a cause of problems, so be aware of this.

Another example.

Imagine I want to get those parts of the streets from our previous example which look rather diagonal, how do I do this? I came up with such an idea: I need to explode all curves into their line-like segments and pick those of them which are neither horizontal nor vertical. So, I need to check every line segment and get sure that it is not vertical and not horizontal at the same time. If it is true, the line should get through the Cull Pattern component.

Untitled

</aside>

<aside> 🎯 Task

Untitled

Imagine you have a file with OpenStreetMaps data and some buildings look, well, a bit too tall for Nürnberg. Make use of what we have learned and remove too high buildings from the set.

Cull Pattern task.gh

Cull Pattern task.gh

alternative link to Google Drive

</aside>

Mix Heights task (get from personal OneDrive)