OpenSCAD Maze Generator 3D Printer Model

Author: @
License: CC BY-SA
File formats: stl,py
Download type: zip
Size:14.0KB

The file 'OpenSCAD Maze Generator 3D Printer Model' is (stl,py) file type, size is 14.0KB.

Summary

Ever need a maze generated for OpenSCAD? If so, then this puppy is for you. It is a Python script which generates a random N x M maze and outputs a 3D description of it as an OpenSCAD program.

The number of maze cells as well as the maze's physical size can all be controlled with command line arguments when running the Python script. The Python code can even be modified to generated non-rectangular mazes. (Hint: just throw up non-removable walls in the initialized maze data.)

BTW, the Python code here is derived from the Eggbot Maze generator, Eggmazing, which is distributed with the Eggbot software and is an Inkscape extension. I wrote that extension for the Eggbot in the Fall of 2010 and want to again thank W. Craig Trader for the assistance he provided with that effort.

Enjoy!

9 June 2012: Corrected invalid commenting style in line 1 of OpenSCAD output
9 June 2012: Added warning when wall thickness (-t) is explicitly set to be thicker than one-half the cell's width or length.

maze-10x10.stl 87.5KB
maze-8x8.stl 56.8KB
maze.py 15.4KB