Hexagon Flowers Grasshopper pattern: hexagons of diamond petals narrowing near a curve

Hexagon Flowers

Hexagon flower pattern with attractor

Hexagons made of three diamond petals that narrow near a curve, turning solid hexagon tiles into open, flower-like shapes.

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

Curve

The attractor. Petals close to it are squeezed thin; petals far from it keep their full width.

Main Sliders

SliderWhat it changesDefault
Hexagon ScaleThe size of the hexagons, as a percentage of the surface’s height. Higher values give fewer, bigger hexagons.4
Gap Between PetalsHow far each petal is offset inward. This sets the gap between neighbouring petals.0.02
Base ScaleThe width of the petals furthest from the curve. At 1 they keep their full width.1
Minimum ScalingThe width of the petals closest to the curve. At 0 they shrink to a line.0.05

Also try: reshape the Graph Mapper to change how far from the curve the petals start to open up.

Notes

  • Each hexagon is three diamond petals. At full width they fill the hexagon, separated only by the gap. Squeezed, each petal shrinks toward the line between its two side corners, so the hexagon opens up into three thin petals with open space between them.
  • Swap Base Scale and Minimum Scaling to reverse the effect: thin petals far from the curve and full ones close to it.
  • The grid starts at a corner of the surface. The script fits enough hexagons to cover the whole surface and then trims them to its outline, so you get part-hexagons along the edges.
  • The gap between two petals is twice Gap Between Petals. Each petal is offset inward by that amount, so at full width two neighbouring petals sit twice that distance apart.

Design Logic

How the script builds the pattern, step by step.

Hexagon Flowers Grasshopper script on the canvas
The whole script on the Grasshopper canvas. Open full size ↗
StepHow the script does it
1. Find a corner and the directions of the surfaceIso Curve takes the two edges that meet at the surface’s first corner. Curve | Curve finds that corner and Construct Plane builds a plane there, aligned with the two edges.
2. Fill the surface with hexagonsLength measures both edges. One Expression sets the hexagon size from Hexagon Scale, and two more use the hexagon’s geometry (with a sine for the height) to work out how many hexagons fit across and up. Hexagonal draws the grid from the corner plane.
3. Split each hexagon into three petalsDiscontinuity and List Item pick out the six corners. Three Merge and Nurbs Curve pairs join three neighbouring corners with the hexagon’s centre into a closed diamond.
4. Open a gap between the petalsEvaluate Surface and an MD Slider get the plane of the surface. A cluster named Offset In offsets every petal inward by Gap Between Petals.
5. Measure each hexagon’s distance to your curveCurve Closest Point measures the distance from each hexagon centre. Bounds, Remap Numbers and a Graph Mapper shape the gradient, and Construct Domain and Remap Numbers map it from Minimum Scaling (on the curve) to Base Scale (far away).
6. Squeeze the petals in their widthLine joins each petal’s middle corner to the hexagon centre, and Curve Middle and Construct Plane build a plane in the middle of that line, pointing along it. Scale NU scales the petal along that direction only, by the value from step 5.
7. Trim to the surfaceRegion Intersection keeps only what falls inside the outline of the 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 →