Oriented Dissolution Grasshopper pattern: triangle grid breaking apart from top to bottom

Oriented Dissolution

Dissolving triangle pattern

A grid of triangles that breaks apart from top to bottom, dissolving from a solid surface into scattered fragments.

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

Curve

The side the pattern dissolves from. Triangles closest to it are removed first; triangles far from it stay. Run it along the edge where you want the surface to break apart.

Main Sliders

SliderWhat it changesDefault
Columns
Rows
The number of grid cells across and up the surface. Each cell is split into two triangles.24
49
Amount Kept (%)The percentage of all triangles that stay. Lower values dissolve more of the surface.53
Randomness StrengthHow much the order is shuffled before the cut, from 0 to 1. At 0 you get a clean edge that follows the curve; higher values spread the fragments over a wider zone.0.45

Also try: change the Seed of the Jitter component for a different scatter of fragments with the same settings.

Notes

  • Place the curve where the surface should dissolve. A line along the bottom edge gives a surface that is solid at the top and breaks apart toward the bottom.
  • Keep the cells in proportion to your surface. Set Columns and Rows so the grid cells are roughly square, or the triangles become long and thin.
  • The fragments come apart. In the dissolving zone many triangles touch their neighbours only at a corner or not at all.

Design Logic

How the script builds the pattern, step by step.

Oriented Dissolution 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. Flip Matrix puts each point in its own branch, so every point can find its neighbours.
2. Find the three corners of each triangleThree Relative Item components each pick a neighbouring point, using the offsets written in the Panel next to them. Two Merge components group each point with two neighbours, giving the two triangles that split every grid cell.
3. Drop incomplete triangles at the edgesAt the edges some neighbours don’t exist. List Length and an Expression check which groups have all three points, and Tree Statistics, Cull Pattern and Tree Branch keep only those.
4. Draw the trianglesNurbs Curve joins each group of three points into a closed triangle.
5. Order 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, furthest first.
6. Shuffle the order a littleJitter moves triangles around in the list by an amount set by Randomness Strength, so the cut in the next step becomes ragged.
7. Keep part of the listList Length and an Expression turn Amount Kept (%) into a number of triangles. Sub List keeps that many from the start of the list, the ones furthest from the curve, and the result is turned into flat surfaces.

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 →