Birds Nest Grasshopper pattern: straight bands crossing at random angles

Birds Nest

Random line lattice pattern

Thick straight bands crossing at random angles, building up a woven, nest-like lattice. Works as a screen, balustrade infill or sunshade with an organic, structural feel.

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 lattice fills. It must be a planar (flat) surface.

Main Sliders

SliderWhat it changesDefault
Guide Angle 1
Guide Angle 2
Guide Angle 3
The three main directions of the bands, in degrees from the surface’s X direction. Each set of bands runs across one of them.9
63
116
Random Rotation Min
Random Rotation Max
The range of the random extra tilt given to each band, in degrees. Set both to 0 for three sets of perfectly parallel bands.0
40
Band ThicknessHow far each band is offset to either side of its centre line. The band is twice this wide.0.13

Also try: change the count (N) of the Range component to set how many bands run in each direction, or change the seed of Random for a different tangle.

Notes

  • If the result doesn’t display correctly, go to Tools > Options > Units in Rhino and set the absolute tolerance to 0.0001. The final merge of many overlapping bands is sensitive to tolerance.
  • Spread the three angles apart for an even, woven lattice. Guide angles close together give a grain that runs mostly one way, like straw.
  • The result is a surface, not loose bands. All the bands are merged where they overlap and trimmed to your outline.

Design Logic

How the script builds the pattern, step by step.

Birds Nest Grasshopper script on the canvas
The whole script on the Grasshopper canvas. Open full size ↗
StepHow the script does it
1. Read the size and direction of the surfaceBrep Edges, Length, Sort List and List Item find the length of the longest edge. Evaluate Surface and Deconstruct Plane give the surface’s X direction, and Area finds its centre.
2. Draw three main directions through the centreLine SDL draws a line as long as the longest edge, Move centres it on the surface and Extend Curve lengthens both ends. Rotate turns it by the three Guide Angle sliders, giving three lines.
3. Place evenly spaced lines along each directionRange and Evaluate Curve put evenly spaced points on each main line. A second Rotate turns the main lines by 90°, and Line SDL draws a short line at every point in that crossing direction. Each main direction now has its own set of parallel lines.
4. Tilt every line at randomConstruct Domain takes the Random Rotation Min and Max, Random picks an angle for every line, and Rotate turns each line around its own point, using a plane from Plane Origin.
5. Stretch each line across the surfaceCurve | Line finds where each line, continued in both directions, meets the edge of the surface. Nurbs Curve draws a line between those points and Extend Curve runs it slightly past the edge.
6. Give the lines thicknessTwo Offset Curve components copy each line to either side by the Band Thickness. End Points and Line close the ends, and Join Curves turns each into a closed band.
7. Merge the bands into one latticeRegion Intersection trims the bands to the surface outline, Region Union merges the overlapping bands, and Boundary Surfaces turns the result into a 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 →