Rectangle Vortex Grasshopper pattern: slanted dashes swirling around two points

Rectangle Vortex

Rotating dash pattern

Short slanted dashes that rotate around a pair of points, forming a swirling vortex across the panel.

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 dashes are placed on. It must be a planar (flat) surface.

Point

The attractor points the dashes turn around. Use one or more, on or near the surface.

Main Sliders

SliderWhat it changesDefault
Columns
Rows
The number of grid cells across and along the surface. There is one dash at every grid point.27
25
Relative Rectangle WidthThe width of every dash, as a percentage of the grid spacing. It is the same everywhere.21
Min. Length
Max. Length
How long the dashes are closest to and furthest from the points.0.01
0.407
Min. Rotation
Max. Rotation
The angle in degrees of the dashes closest to and furthest from the points.1
90

Also try: reshape the two Graph Mapper components to change how quickly the dashes grow and turn as you move away from the points.

Notes

  • Each dash follows its nearest point. Add more points for more centres; the dashes between them respond to whichever point is closest.
  • Min. Length and Max. Length are real distances, not percentages. Scale them to the size of your surface, or the dashes will be far too small or overlap.
  • The dashes can overlap. They turn, so a long dash can reach toward a neighbour in any direction. To keep them apart, keep the longest dashes shorter than the spacing between grid points.
  • Swap Min. Rotation and Max. Rotation to turn the dashes most near the points instead of far from them.

Design Logic

How the script builds the pattern, step by step.

Rectangle Vortex Grasshopper script on the canvas
The whole script on the Grasshopper canvas. Open full size ↗
StepHow the script does it
1. Make a grid of pointsDivide Surface places a grid of points on the surface, Columns across and Rows along. List Item and Distance measure the spacing between two neighbouring points.
2. Draw a short line at every pointAn Expression takes Relative Rectangle Width as a percentage of the spacing. Evaluate Surface and Deconstruct Plane give the surface’s direction at each point, Line SDL draws a line of that length, and Move centres it on the point.
3. Measure each point’s distance to the attractorsClosest Point finds the nearest attractor point and its distance. Bounds and Remap Numbers turn those distances into values from 0 to 1.
4. Turn distance into angle and lengthTwo Graph Mapper components shape the gradient. Remap Numbers maps one between Min. Rotation and Max. Rotation, and the other between Min. Length and Max. Length.
5. Turn the linesRotate turns each line around its own centre by its angle, in degrees.
6. Stretch the lines into dashesOffset Curve copies each line to both sides by its length value. End Points, Line and Join Curves close the two copies into a rectangle, and a Surface parameter turns it into a flat surface.

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 →