Voronoi Cells Grasshopper pattern: rounded Voronoi cells of different sizes

Voronoi Cells

Voronoi pattern

Rounded Voronoi cells of different sizes, an organic cellular pattern for screens, paving and perforated panels.

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

Main Sliders

SliderWhat it changesDefault
Number of cellsHow many points are scattered over the surface. Each point becomes one cell, so more points means smaller cells.280
OffsetHow far each cell shrinks inward, in thousandths of the length of one surface edge. The walls between cells end up twice this wide.3.07
Fillet Radius (max)How round the cell corners are, in thousandths of the same edge length.20

Also try: change the seed of Populate Geometry for a different arrangement of cells.

Notes

  • The border is thinner than the walls. Cells along the edge only shrink away from the edge on their own side, so the frame around the surface is half as wide as the walls inside it. Raise Offset if you want a wider frame.
  • Scale the radius with the cell size. When you add more cells they get smaller, so lower Fillet Radius (max) too or the smallest cells lose their shape.
  • The result is a single surface. Boundary Surfaces combines the surface outline and the rounded cells into one surface, with the cells as holes in it.

Design Logic

How the script builds the pattern, step by step.

Voronoi Cells Grasshopper script on the canvas
The whole script on the Grasshopper canvas. Open full size ↗
StepHow the script does it
1. Scatter points over the surfacePopulate Geometry spreads points evenly but randomly over the surface. Each point becomes the centre of a cell.
2. Draw the Voronoi cellsEvaluate Surface gives the plane of the surface and Bounding Box the area to fill. Voronoi draws a cell around each point, made of all the space closer to that point than to any other.
3. Trim to the surfaceRegion Intersection cuts the cells to the outline of the surface.
4. Size the walls and corners to the surfaceExplode, List Item and Length measure one edge of the surface. Two Expression components turn Offset and Fillet Radius (max) into distances relative to that edge.
5. Shrink and round the cellsOffset Curve pulls every cell inward in the plane of the surface, leaving a wall between neighbours, and Fillet rounds its corners.
6. Combine everything into one surfaceBoundary Surfaces combines the surface outline with the rounded cells into one surface with the cells as holes.

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 →