This is the first release of my plug-in for agent-based modelling based on Physarum Polycephalum. It is a stigmergy algorithms similar to ant colony algorithm.
Physarum polycephalum, literally the "many-headed slime", is a slime mold that inhabits shady, cool, moist areas, such as decaying leaves and logs. P. polycephalum is one of the easiest eukaryotic microbes to grow in culture, and has been used as a model organism for many studies involving amoeboid movement and cell motility. For example, a team of Japanese and Hungarian researchers have shown P. polycephalum can solve the Shortest path problem. When grown in a maze with oatmeal at two spots, P. polycephalum retracts from everywhere in the maze, except the shortest route connecting the two food sources.
English computer scientist Jeff Jones have research into the formation of this fascanating creature. Recently, he published From Pattern Formation to Material Computation. In this book he adopted a synthesis approach and a mobile multi-agent system with very simple individual behaviors employed. The presented model reproduces the biological behavior of Physarum; the formation, growth and minimization of transport networks. Supplementary material can be found here.
Based on Prof. Jones's Processing program, I put it to 3D and wrote this plugin for Rhino/Grasshopper. I add some new settings to gain more artistic expression. I am still working on it so that physarum can run on a mesh.
View the source code on Github.
This plugin comes from my design studio at School of Architecture, Tsinghua University. Here are some of our works on Behance using this plugin. Of course we have fabricated some shapes generated by this plugin.
I have tested this project, but it is the first release and it might contain still bugs. Please use it "as is", it does not come with warranties. I spent a lot of time developing the logic and implementing it, please give credit where credit is due.
If you find any bugs or have any feature requests please post them on the GitHub Issue Tracker which will allow everyone to see which bugs are open or closed and allows me to update you when it is fixed.
- In Grasshopper, choose File > Special Folders > Components folder. Save the gha file there.
- Right-click the file > Properties > make sure there is no "blocked" text
- Restart Rhino and Grasshopper
Learn to get started, please check these examples.
I would like to give special thanks to Mr. Zhang Yuxiang, who helped me test this plugin and did all those amazing designs plus renderings.
- Ma Yidong