designcoding
About Table of Contents Keywords Monthly Archive
Support designcoding!

Gosper-Peano Curve in Grasshopper

August 19, 2017 | Algorithms
#anemone #fractal #gosper-curve #grasshopper

Anemone components are still working great, extending the abilities of Grasshopper. Here, I studied a space-filling (or plane-filling) fractal called the Gosper-Peano Curve. You should be very careful about the number of iterations (the N input). Because it can crash your Rhino if you change it to more significant numbers. Also, you should have Anemone components installed in order to run this definition. The generator curve is a special one. This website explains the generation of the curve from the initial curve. It is very easy for Grasshopper to mimic this generative process when you apply looping. In addition, I can re-do this with Rhino Python I guess. I use the Orient component to move, rotate and scale the same curve over and over again.

The direction, length, and angle of every segment make it possible to create this beautiful fractal. I love to use this one in the introduction to computer drawing classes (as a manual drawing and planar transformation exercise) and parametric modeling classes (as a nice introduction to recursion and fractals in Grasshopper). Another name for this curve is “Flowsnake”.

Gosper-Peano Curve in Grasshopper Grasshopper definition
Gosper-Peano Curve in Grasshopper anemone, fractal
Gosper-Peano Curve in Grasshopper gosper-curve, grasshopper
Gosper-Peano Curve in Grasshopper anemone, fractal
Gosper-Peano Curve in Grasshopper gosper-curve, grasshopper
Grasshopper definition (GH)Download

Cite this post

Yazar, T. (2017, August 19). Gosper-Peano Curve in Grasshopper. designcoding. Retrieved August 24, 2026, from https://www.designcoding.net/gosper-peano-curve-in-grasshopper/

Related Posts

Dragon Curve Fractal

December 25, 2023

This week’s fractal is the famous Dragon Curve. Dragon Curve exhibits self-similarity, meaning parts of the curve resemble the overall shape, regardless of scale. It’s fascinating because a relatively simple construction process generates a complex and visually captivating fractal pattern. The Dragon Curve is often used to demonstrate fractal properties in mathematics and is popular in recreational mathematics due to its intricate and beautiful patterns. It has applications in computer graphics and is interesting in studying chaos theory, self-similarity, and…

Cesaro Fractal

December 19, 2023

In this study, I explore Cesaro Fractal, generated by Grasshopper. Usually, it is not possible to code recursive algorithms in Grasshopper. With the help of the Anemone add-on, these fractal curves are easy to model. I studied similar fractal algorithms here before. This one is very similar to the Koch’s snowflake. The only difference (as far as I understood) is the side of the spikes. Koch’s Snowflake generates triangular spikes pointing to the outside of the polygon. Cesaro Fractal does…

Koch Snowflake Fractal

April 12, 2023

This is an implementation of the famous Koch Snowflake Fractal in Grasshopper. We will be using the Anemone add-on to handle the iterations. In this fractal, we start from an equilateral triangle. Then, we form new equilateral triangles, one-third of the side. So that each repetition protrudes in the middle of all the sides. In summary; The Preparation for Koch Snowflake Fractal Now let’s follow the Grasshopper application step by step. We start Koch Snowflake Fractal by creating a triangle…

Gosper-Peano Fractal Curves

January 8, 2018

Introducing the new YouTube channel for designcoding! The architectural Geometry playlist will contain video tutorials on several topics of basic geometry exercises for designers. Below are the introductory exercises of polyline drawing and some planar transformations such as scale and rotation. It is also an interesting plane-filling fractal you know I like it very much. I studied this particula fractal (Gosper-Peano) earlier here, and here. I find it very inspiring and educational.

Fractal Curves with Rhino Python

July 31, 2017

A simple Rhino Python script that generates fractal curves. An example is a test with the Gosper-Peano curve. However the script is not supporting segment directions, which is why the result is not the intended curve. Curve directions could be implemented in the future.

  • Chapters

    • Algorithms
    • Discourses
    • Fabrications
    • Studios
  • Explore

    • All Keywords
    • Table of Contents
    • Monthly Archive
    • #rhino-python
    • #polyhedra
    • #rhinoceros
    • #tutorial
    • #parametric-surface
    • #robot
    • #boolean
    • #kuka-prc
    • #tessellation
    • #design-object
    • #image-sampler
    • #terrain
    • #sandblasting
    • #stone
    • #dome
    • #parametric-curve
    • #animation
    • #art
    • #contouring
    • #interlocking
  • 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