• Models
  • Contests
  • Slicer
  • Login
  • Start Here
    thingiverse-iconprintables-iconcults3d-iconmakerworld-iconmyminifactory-icon

    3D GO

    3D ModelsContestsCollectionsSaved ModelsOn a mobile device?

3D GO

Privacy Policy
OpenSCAD Maze Generator 3D Printer File Image 1
OpenSCAD Maze Generator 3D Printer File Image 2
OpenSCAD Maze Generator 3D Printer File Image 3
OpenSCAD Maze Generator 3D Printer File Image 4
OpenSCAD Maze Generator 3D Printer File Thumbnail 1
OpenSCAD Maze Generator 3D Printer File Thumbnail 2
OpenSCAD Maze Generator 3D Printer File Thumbnail 3
OpenSCAD Maze Generator 3D Printer File Thumbnail 4

OpenSCAD Maze Generator

dnewman avatardnewman

June 9, 2012

thingiverse-icon
DescriptionCommentsTags

Description

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.

License:

Creative Commons - Attribution - Share Alike

Related Models

#3DBenchy - The jolly 3D printing torture-test by CreativeTools.se preview image

#3DBenchy - The jolly 3D printing torture-test by CreativeTools.se

CreativeTools profile image

CreativeTools

90,790

Russian Doll Maze Puzzle Box preview image

Russian Doll Maze Puzzle Box

Alain74Martel profile image

Alain74Martel

3,182

Optical Illusion Question Mark Card preview image

Optical Illusion Question Mark Card

Hologram Guru profile image

Hologram Guru

299

V29 preview image

V29

jzisa profile image

jzisa

81,256

Snap-Together Marble Maze preview image

Snap-Together Marble Maze

ericman314 profile image

ericman314

3,858

Sealed Maze Box Generator — Blind Ball Challenge preview image

Sealed Maze Box Generator — Blind Ball Challenge

CorwineCustoms.3D LLC profile image

CorwineCustoms.3D LLC

47

Self-Watering Planter (Small) preview image

Self-Watering Planter (Small)

parallelgoods profile image

parallelgoods

73,056

Fabergé Egg Maze Container (with or without mmu) preview image

Fabergé Egg Maze Container (with or without mmu)

Two Views Studio profile image

Two Views Studio

938