Bricks Inversion Grasshopper pattern: brick grid with horizontal bars, bricks narrowing near a curve

Bricks Inversion

Attractor brick pattern

A brick grid where the bricks and the spaces between them swap roles with distance from a curve: an even checkerboard far from the curve turns into a running bond near it, as the bricks shrink to thin strips.

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 pattern is built on. It must be a planar (flat) surface.

Curve

The attractor. Bricks close to it shrink to thin strips; bricks far from it keep the full width of their cell. It can run along an edge or through the middle.

Main Sliders

SliderWhat it changesDefault
Columns
Rows
The number of cells across and up the surface, which sets the size of the bricks. Rows also sets the number of bars.30
40
Width in %The height of the horizontal bars, as a percentage of the row height.17
min scaleThe width of the bricks closest to the curve, as a share of the cell width. At 0 they disappear.0.05
max scaleThe width of the bricks furthest from the curve. At 1 they fill the width of their cell.1

Also try: reshape the Graph Mapper to change how quickly the bricks widen as you move away from the curve.

Notes

  • The inversion comes from the spaces between the bricks. Far from the curve, bricks and spaces are the same width and read as a checkerboard. Near the curve the bricks shrink to thin strips, and the spaces between them read as the bricks of a running bond.
  • Swap min scale and max scale to reverse the effect: bricks get narrow far from the curve and stay full width near it.
  • Keep Columns and Rows in proportion to your surface. For a wide panel, use more columns than rows, so the bricks keep a brick-like shape.

Design Logic

How the script builds the pattern, step by step.

Bricks Inversion 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 rectangles.
2. Pick every other cellPartition List groups the cells into columns. Tree Statistics, Tree Branch and Dispatch keep alternating cells, shifted on every other column, so you get a checkerboard of bricks.
3. Add the horizontal barsDivide Surface, Flip Matrix and Nurbs Curve draw a line along each row edge. List Item, Distance and an Expression turn Width in % into a share of the row height. Two Offset Curve components move each line up and down by half of it, and End Points, Merge and Nurbs Curve close the space between them into a bar.
4. Measure each brick’s distance to your curveBrep Edges and List Item take one side edge of each brick, and Curve Middle finds its midpoint. Curve Closest Point measures how far that point is from the curve, and Bounds and Remap Numbers turn the distances into values from 0 (nearest) to 1 (furthest).
5. Narrow the bricks near the curveA Graph Mapper shapes the gradient and a second Remap Numbers maps it between min scale and max scale. Construct Plane puts a plane on each brick’s side edge. Scale NU then scales the brick along the bars by the gradient, keeping that side edge in place, and shortens it across the bars, with the factor from an Expression, so it fits between them.
6. Trim to the surfaceRegion Intersection keeps the parts of the scaled bricks that fall inside the surface outline. The bricks and the bars come out as two separate sets of surfaces.

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

On this page

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 →