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 November 13, 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…

Polyhedra Library

November 11, 2026

I would like to share my Polyhedra library, which I have used in many projects. Initially, I wanted to build this code based on the geometric constructions of polyhedra. However, because I urgently needed it for projects I was working on at the time, I took a simpler route and hardcoded the vertex coordinates directly inside. Yes, that wasn’t quite in the spirit of designcoding, which is why I called it a “library” rather than a “Polyhedra Generator.” Currently, the…

Voronoi Bubbles

November 11, 2026

Informal use of Voronoi diagrams can be traced back to Descartes in 1644 Peter Gustav Lejeune Dirichlet used two-dimensional and three-dimensional Voronoi diagrams in his study of quadratic forms in 1850. British physician John Snow used a Voronoi-like diagram in 1854 to illustrate how the majority of people who died in the Broad Street cholera outbreak lived closer to the infected Broad Street pump than to any other water pump. Voronoi diagrams are named after Georgy Feodosievych Voronoy who defined…

  • Chapters

    • Algorithms
    • Discourses
    • Fabrications
    • Studios
  • Explore

    • Table of Contents
    • Monthly Archive

    • All Keywords
    • #pattern
    • #polyhedra
    • #rhino-python
    • #design-education
    • #parametric-surface
    • #terrain
    • #kuka-prc
    • #robot
    • #parakeet
    • #curvature
    • #sphere
    • #frege
    • #gauss
    • #voronoi
    • #interlocking
    • #laser-cutting
    • #phenomenology
    • #parametric-curve
    • #fibonacci
    • #vector-field
  • 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