Triangle Dissolution Grasshopper pattern: triangle grid dissolving from top to bottom

Triangle Dissolution

Dissolving triangle grid

A triangle grid that dissolves from solid to an open lattice as it gets closer to an attractor curve.

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

Curve

The attractor. Triangles closest to it dissolve first. Draw it along one edge of the surface for a top-to-bottom fade.

Main Sliders

SliderWhat it changesDefault
Columns
Rows
The number of grid cells across and up the surface. Each cell holds two triangles.40
60
Dissolution AmountThe percentage of triangles that dissolve into outlines. The rest stay solid.46
Shuffling AmountHow ragged the border between the solid and the dissolved triangles is. At 0 the triangles dissolve strictly in order of distance, giving a clean edge; higher values scatter them.0.34

Also try: change the seed of the Random component in the second group to flip the diagonals in different cells, or the seed of Jitter for a different scatter along the border.

Notes

  • The curve sets where the grid dissolves. Along one edge you get a fade from one side to the other; through the middle the dissolved area spreads out on both sides of it.
  • The result comes in two sets. The last Surface holds the solid triangles and the last Curve holds the outlines of the dissolved ones.
  • The diagonals are random. Each cell is split along one of its two diagonals at random, which gives the grid its mix of arrows and diamonds.

Design Logic

How the script builds the pattern, step by step.

Triangle Dissolution 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. Pick a random diagonal for each cellDiscontinuity finds the four corners of each cell. Random and Shift List shift the corner order by one step in some cells, so the split runs along the other diagonal there.
3. Split each cell into two trianglesList Item and two Merge components take corners 1-2-3 and 3-4-1. Nurbs Curve closes each set into a triangle and Surface fills it.
4. Sort the triangles by distance to your curveArea finds the centre of each triangle and Curve Closest Point measures how far it is from the curve. Sort List puts the triangles in order, nearest first.
5. Dissolve the nearest trianglesJitter loosens the order by Shuffling Amount. List Length and an Expression turn Dissolution Amount into a count, and Sub List takes that many triangles from the front of the list as outlines. Cull Index removes them from the solid triangles.

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 →