Dissolving Squares Grasshopper pattern: square grid with clearings around three points

Dissolving Squares

Random square perforation

A fine square grid with clusters of cells removed around several points, opening soft-edged clearings.

Want all 53 patterns? Get them in one zip →


Price

Free

Plugins

None, native components only

Works with

Rhino 7 & 8, Mac and Windows

Level

Beginner

Inputs

Reference in Rhino

Surface

The surface the square grid is built on. It must be a planar (flat) surface.

Point

One or more points where the clearings open up. Place them on or close to the surface.

Main Sliders

SliderWhat it changesDefault
Columns
Rows
The number of squares across and up the surface.60
80
Square ScalingThe size of each square within its cell. At 1 the squares touch; lower values widen the gaps between them.0.7
Amount removed (%)The percentage of all squares that are removed, starting with those closest to the points. Higher values make bigger clearings.12
Randomness StrengthHow soft and ragged the edges of the clearings are. At 0 the clearings are clean circles; higher values scatter the removed squares further out.0.13

Also try: change the seed (S) of Jitter for a different ragged edge with the same settings.

Notes

  • All the clearings are about the same size. The squares are removed by their distance to the nearest point, with one shared limit. Adding points spreads the same number of removed squares over more, smaller clearings.
  • You get two sets of squares. The two Surface parameters at the end hold the remaining squares and the removed ones, so you can bake either set or both.
  • Keep Columns and Rows in proportion to your surface so the cells stay square. For a tall surface, use more rows than columns.

Design Logic

How the script builds the pattern, step by step.

Dissolving Squares Grasshopper script on the canvas
The whole script on the Grasshopper canvas. Open full size ↗
StepHow the script does it
1. Split the surface into cellsDivide Domain² and Isotrim cut the surface into a grid of small cells.
2. Shrink each cell into a squareArea finds the centre of each cell and Scale shrinks the cell around it by Square Scaling, leaving a gap between neighbours.
3. Measure each square’s distance to the pointsClosest Point finds the nearest of your points for each square and measures how far away it is.
4. Sort the squares, then shuffle a littleSort List puts the squares in order, closest first. Jitter moves each square a random distance up or down the list, by up to the Randomness Strength setting.
5. Remove the closest squaresList Length and an Expression turn Amount removed (%) into a number of squares. Sub List picks that many from the start of the list. List Item collects them as the removed squares and Cull Index keeps all the others.

Want to learn how to build scripts like this on your own? Check out the Grasshopper Pro course.

On this page

Related tutorial

Free to use, also commercially

Use and change this script in your own projects, personal or commercial.

Please don't re-upload or redistribute the file. If you share it, link to this page so people always get the latest version.

© Hopific

Something not working?

If a script throws an error or doesn't do what this page describes, tell me and I'll fix it.

Tell me →