designcoding
About Table of Contents Keywords Monthly Archive
Support designcoding!

The Golden Ratio in Grasshopper

April 12, 2019 | Algorithms
#golden-ratio #grasshopper

I like to deal with possible small computational geometry problems. These fun games are taking 2-3 hours. In addition, these are also memorable exercises. I was reviewing the Anemone plugin last week. I noticed that the Golden Ratio in Grasshopper was not geometrically generated before.

Some of the greatest mathematical minds of all ages, from Pythagoras and Euclid in ancient Greece, through the medieval Italian mathematician Leonardo of Pisa and the Renaissance astronomer Johannes Kepler, to present-day scientific figures such as Oxford physicist Roger Penrose, have spent endless hours over this simple ratio and its properties. … Biologists, artists, musicians, historians, architects, psychologists, and even mystics have pondered and debated the basis of its ubiquity and appeal. In fact, it is probably fair to say that the Golden Ratio has inspired thinkers of all disciplines like no other number in the history of mathematics.

Mario Livio (via Wikipedia)

At first, it seems very easy. But this problem has kept me busy for a while. We must rotate and copy squares around changing center points. Thus, we can use this method to calculate the golden ratio, which is the ratio between the long and short edges of the rectangles generated by this procedure. I could only do this by adding a rotation pattern. Therefore, it can work with any closed polygon.

The Golden Ratio in Grasshopper golden-ratio, grasshopper
The Golden Ratio in Grasshopper Grasshopper definition

Above, I presented the construction of the Golden Ratio in Grasshopper. I tried to implement it via the repeating rotation pattern of squares. I defined an iteration number in Anemone. So the process can continue many times. This is an open definition for further development. For instance, we can draw the Golden Spiral. I checked the code in Rhino 7. I think the looping should be a standard feature of Grasshopper.

Grasshopper 1.0 definition (GH)Download

Cite this post

Yazar, T. (2019, April 12). The Golden Ratio in Grasshopper. designcoding. Retrieved December 3, 2026, from https://www.designcoding.net/the-golden-ratio/

Related Posts

Icosahedron Study

May 27, 2012

I have come across several high school topics I was afraid of. While I was searching for a geodesic dome definition in Grasshopper, it was quite surprising that I found an easier way of modeling an approximation of icosahedron, the famous platonic solid. Icosahedron was a research topic of this website at various posts before (here, here, and here). In order to generate geodesic spheres, first I had to solve icosahedron. My first experiment was partially successful. I knew icosahedron’s…

Coding the Dodecahedron

March 7, 2024

Here is a method for coding the dodecahedron and all its irregular variants in Grasshopper as quickly as possible. I utilized the golden ratio rectangles, usually used to construct the sister polyhedron, the icosahedron. However, the magic component of the Grasshopper, the Faceted Dome rescued me again to generate the dual of it, the dodecahedron. This is a special platonic solid, which has 12 regular pentagonal faces. There are several techniques that I generally prefer to use in Grasshopper. You…

Guitar Shape

November 2, 2026

Traditionally, when shaping a guitar form, a luthier relies on a combination of craftsmanship and precise geometric tools. This process involves mastering wood-bending techniques around rigid molds, guided by physical templates to achieve the desired acoustic and aesthetic curves. Curves, once more I love talking about this so much. Could my obsession with Bézier curves be OCD? The history of curved shape construction reflects a transformative journey from physical craftsmanship to sophisticated digital computation, primarily driven by the demands of…

Lorenz Attractor with Grasshopper Python

November 26, 2026

In 1963, meteorologist and mathematician Edward Lorenz modelled the thermally driven motion of atmospheric air currents. He used the set of chaotic solutions to a system of nonlinear differential equations, called the Lorenz attractor. Known for its butterfly-wing geometry when plotted in three-dimensional space, it is one of the most famous examples of deterministic chaos. I finally managed to spend 3 hours from my life for this model, which had been sitting on my to-do list for a long time….

Interlocking Torus

November 25, 2026

Interlocking torus models kept popping up on my YouTube feed (such as this and this). Among the Grasshopper experiments sitting in my archive, I found this script I started back in 2012 and only managed to finish now. It took 14 years there, and two hours here, just like Interstellar. When we look at a torus surface, the first sections that come to mind are always familiar ones: slice it horizontally and you get horizontal circles; slice it vertically and…

  • Chapters

    • Algorithms
    • Discourses
    • Escapes
    • Fabrications
    • Studios
  • Explore

    • Table of Contents
    • Monthly Archive

    • All Keywords
    • #pattern
    • #rhino-python
    • #polyhedra
    • #vector-field
    • #parakeet
    • #curvature
    • #sphere
    • #design-education
    • #calculus
    • #attractor
    • #fractal
    • #interlocking
    • #kuka-prc
    • #robot
    • #polygon
    • #lace
    • #facade
    • #wave
    • #frege
    • #gauss
  • Search

  • Support designcoding!

  • Enjoying designcoding? Support me on Patreon to keep it growing. Thank you!

  • copyright 2026 designcoding.net | about | privacy policy | end user license agreement