Twisting Diamonds Grasshopper pattern: two-tone parallelograms in diagonal bands

Twisting Diamonds

Twisted parallelogram pattern

Diagonal bands of two-tone parallelograms that step across the panel like twisting ribbons.

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. The rows run straight from one side to the other, so a rectangle works best. It must be a planar (flat) surface.

Main Sliders

SliderWhat it changesDefault
DivisionsThe number of rows of panels.10
Pattern Segment Width A
Pattern Segment Width B
The two spacings that alternate along each row, each as a % of the surface width. Each panel is A wide at one end and B wide at the other. A also sets how far each row steps sideways from the one before.4
12

Also try: change the values stored in the Dispatch pattern parameter from True, False to True, True, False. One colour then takes two panels out of every three.

Notes

  • The twist comes from the difference between the two widths. The bigger the gap between them, the more the slanted edges lean. Set them equal and every edge stands straight.
  • Fewer Divisions make taller panels, so the slanted edges get steeper. More Divisions flatten them.
  • The two colours are only a preview. They come from the two Custom Preview components. The two Surface outputs before them hold the two sets of panels, so you can bake each set on its own.

Design Logic

How the script builds the pattern, step by step.

Twisting Diamonds Grasshopper script on the canvas
The whole script on the Grasshopper canvas. Open full size ↗
StepHow the script does it
1. Draw the row linesDivide Surface places points down both sides of the surface. Flip Matrix and Nurbs Curve join each pair into a line across.
2. Set the two panel widthsList Item and Line draw a line along the first row, and Length measures it to get the surface width. An Expression turns Pattern Segment Width A and B into actual widths as a % of it.
3. Step each row sidewaysSeries makes a list of steps, one width A more for every row. Extend Curve lengthens the start of each row line by its step, so each row begins a little further out than the one before.
4. Mark the alternating widths along each rowMass Addition, an Expression and Duplicate Data repeat the two widths (A, B, A, B…) until they fill the row. Mass Addition and Insert Items turn them into running positions, and Evaluate Length places a point at each one.
5. Connect each row to the nextRelative Item with the offset {+1}[+1] from the Panel pairs every point with the next point in the row above, and Line joins them. Because of the sideways step, these lines alternate between straight and slanted.
6. Close the panelsGraft Tree and Shift List pair each line with its neighbour. End Points, Line and Join Curves close each pair into a four-sided outline, and Surface fills it.
7. Split the panels into two coloursTrim Tree groups the panels by row. Tree Statistics, Series and Shift List shift a True/False pattern by one step on every row, and Dispatch uses it to sort the panels into two sets.
8. Trim to the surfaceRegion Intersection cuts both sets to the outline of the surface, and two Custom Preview components show them in two colours.

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 →