Overlapping Circles Grasshopper pattern: vertical strips of overlapping capsules and half circles

Overlapping Circles

Arch and half circle pattern

Vertical strips cut by half circles at random heights, with the pieces in each strip alternating between two sets, like stacked arches.

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 strips are built on. It must be a planar (flat) surface. The strips run in its V direction.

Main Sliders

SliderWhat it changesDefault
DivisionsThe number of strips across the surface. The half circles are as wide as a strip, so fewer strips means bigger arches.10
Number of Circles per curveHow many half circles are placed at random along each strip.11
Cull Duplicates toleranceHalf circles closer together than this distance are merged into one, so no two arches sit almost on top of each other. It’s measured in your model units.0.26
Flip Circle DirectionA toggle that turns all the half circles upside down.False

Also try: change the Seed of the Random component with the large range (0 to 1532). It sets a different random arrangement of arches in every strip.

Notes

  • Set Cull Duplicates tolerance for the size of your model. It’s an absolute distance. A value that works in metres merges nothing in millimetres; scale it to roughly a fraction of your strip width.
  • The number of arches varies per strip. Points that land close together are merged, so a strip can end up with fewer half circles than Number of Circles per curve.
  • Two sets of pieces alternate along each strip. The half circles cut every strip into arch-shaped pieces, and every second piece goes into the other set. Because the arches sit at random heights, neighbouring strips don’t line up.
  • Neighbouring strips share an edge. Where pieces of the same set sit side by side in two strips, they touch along the length they share.

Design Logic

How the script builds the pattern, step by step.

Overlapping Circles 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 stripsDivide Surface and Nurbs Curve draw evenly spaced lines along the surface. Graft Tree and Shift List pair each line with the next, and Loft makes a strip between them.
2. Measure the surfaceList Item, Flip Matrix and Line draw two reference lines: one along the strips, and one across a single strip, as long as the strip is wide.
3. Find the centre line of each stripTween Curve draws a line halfway between the two edges of each strip.
4. Place random points along itRandom creates Number of Circles per curve random positions, with a different seed for each strip from a second Random. Evaluate Curve places a point at each position on the centre line.
5. Merge points that are too closeCull Duplicates replaces points closer than Cull Duplicates tolerance with a single point.
6. Draw the half circlesLength and Amplitude give a vector half the strip width, and two Move components shift each point to both edges of the strip. Arc SED draws a half circle between them, starting along the strip. Reverse and Stream Filter choose which way it faces, using Flip Circle Direction.
7. Cut the strips into two alternating setsSurface Split cuts each strip along its half circles. Discontinuity, Average, Trim Tree and Sort Along Curve put the pieces back in order along the strip, and List Item applies that order. Dispatch sorts the pieces into two alternating sets.

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 →