Skip to content

salar-shdk/phyllotaxis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

phyllotaxis

This projects aim is to simulate flowers(Gerbera Daisy) phyllotaxis.

Take a look at the arrangement of this flower's seeds, this project's goal is to find the location of all those seeds and create a 3d representation of the flower using Blender. Since it may be a new concept to you, I'll try to explain it a little bit, but for a better understanding of flowers phyllotaxis, read The Algorithmic Beauty of Plants book, Chapter 4. The link to this book is available in the references section.

flower

As the first step, we find the location of seeds, Two plots below represent flowers with 1000 nodes and 2000 nodes respectively.

original-1000

original-2000

The most exciting thing about flower's seeds arrangement is that the number of seeds in a spiral is exactly integers from the Fibonacci sequence. It is a little hard to trace the spirals by eye, so I reduced the rotation speed, which makes spirals clearer.

half-2000

half-4000

Now it is easy to trace the spirals and count the seeds in each of them (ex: 8 and 34 are the Fibonacci numbers for the first picture). but the former illustrations are the real flowers phyllotaxis.

As the first attempt to generate the 3D model, if we replace the circles with cubes, the pictures below will be the result, you can easily see the phyllotaxis pattern.

render-1000

render-2000

And at last, this is the final result generated by this package. The blender python API is used to generate this 3D model.

render-360

Usage

To plot the pattern using matplotlib:

# replace 600 with the number of nodes
python -m phyllotaxis plot 600

To render the the 3D model:

# replace 600 with the number of nodes
python -m phyllotaxis render 600

Dependencies

matplotlib

bpy - blender python api ( if you are using Arch Linux, use this AUR package to install )

References

The Algorithmic Beauty of Plants book | Professor Przemysław Prusinkiewicz

Phyllotactic patterning of gerbera flower heads paper

About

flowers phyllotaxis simulation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages