Skewed Checkerboard Grasshopper pattern: two-tone checkerboard with shifted corners

Skewed Checkerboard

Distorted checkerboard pattern

A checkerboard of light and dark quads with shifted corners, giving a flat panel a folded, three-dimensional look.

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

Main Sliders

SliderWhat it changesDefault
Columns
Rows
The number of cells across and down the surface.18
11
Distortion AHow far two opposite corners of each cell in the first set are pulled toward its centre, as a percentage of the distance.26
Distortion BThe same for the second set, along the other diagonal.11

Also try: set the shift (S) of the Shift List in the Skewed Corners of Group B group to 0, so both sets are pinched along the same diagonal.

Notes

  • Use different values for Distortion A and B. The difference between the two sets is what makes the surface look folded. At 100 the two corners meet in the centre and the cell flattens into a line.
  • You get two sets of cells. The two Surface parameters at the end hold one set each; the Custom Preview shows the second set in its own colour. Bake them separately to keep the two sets apart.
  • Gaps open where the corners are pulled in. Around every other grid point, all four cells pull back, leaving a small four-sided gap; at the points in between, the cells still meet.

Design Logic

How the script builds the pattern, step by step.

Skewed Checkerboard 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 cells, Columns across and Rows down.
2. Sort the cells into a checkerboardPartition List groups the cells by column. Tree Statistics, Tree Branch and Dispatch take alternating cells, shifted on every other column, and two Geometry parameters collect the two sets.
3. Find each cell’s centre and cornersArea finds the centre of each cell, and Discontinuity and List Item pick out its four corners.
4. Pull two opposite corners toward the centreLine and Length measure from the centre to the first corner, and an Expression takes Distortion A as a percentage of it. Amplitude and two Move components pull that corner and the opposite one toward the centre by that amount.
5. Do the same on the other diagonal for the second setShift List moves the corner list along by one, so the same steps move the other pair of corners, using Distortion B.
6. Rebuild the cellsMerge puts the moved and unmoved corners back in order, Nurbs Curve joins them into a closed outline, and a Surface parameter fills it.

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 →