Pyramidal staircase maze by JustinSDK 3d model
3dmdb logo
Thingiverse
Pyramidal staircase maze by JustinSDK

Pyramidal staircase maze by JustinSDK

by Thingiverse
Last crawled date: 3 years, 1 month ago
Sometimes, life is like this pyramidal staircase maze :)
Maze generator is my first challenge of using OpenSCAD to generate a maze automatically. After that, many mazes were created. Some people were curious about how to implement these mazes. They were, actually, all based on Maze generator.
There are many different maze algorithms. If you are interested in them and want a beginning, a book I recommended is Mazes for programmers.
Honestly, maze algorithms are not very difficult. If you come from imperative languages, the hard part of using OpenSCAD to implement a maze may be the paradigm of functional programming.
The code of Maze generator is quick and dirty because it's my first challenge of using OpenSCAD to generate a maze. From that time, I've studied OpenSCAD for one year. One day I thought, how about rewriting the maze to test my understanding in OpenSCAD?
The code of Pyramidal staircase maze contains the basic implementation of a maze. While writing it, I considered readability and added more comments in the code. Hope this would be helpful if you also want to implement one by OpenSCAD.
Find all my mazes in the collection "maze generators".
OpenSCAD Documentation - Traditional Chinese
OpenSCAD Documentation - English

Tags