{"id":19026483,"url":"https://github.com/conorpp/3d-maze-generator","last_synced_at":"2025-06-15T19:09:38.428Z","repository":{"id":74185388,"uuid":"94017076","full_name":"conorpp/3d-maze-generator","owner":"conorpp","description":"This is a parametric model for a 3D maze.  Generates openscad which can render to STL.  ","archived":false,"fork":false,"pushed_at":"2017-07-04T17:40:53.000Z","size":245,"stargazers_count":37,"open_issues_count":3,"forks_count":11,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-23T12:55:50.459Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/conorpp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-06-11T16:24:56.000Z","updated_at":"2025-04-19T22:48:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"852f4d16-9f1c-4a41-a5f9-162ca63290fa","html_url":"https://github.com/conorpp/3d-maze-generator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/conorpp/3d-maze-generator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/conorpp%2F3d-maze-generator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/conorpp%2F3d-maze-generator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/conorpp%2F3d-maze-generator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/conorpp%2F3d-maze-generator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/conorpp","download_url":"https://codeload.github.com/conorpp/3d-maze-generator/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/conorpp%2F3d-maze-generator/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260035595,"owners_count":22949254,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T20:49:26.974Z","updated_at":"2025-06-15T19:09:38.408Z","avatar_url":"https://github.com/conorpp.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 3d-maze-generator\n\nThis is a parametric model for a 3D maze.  Generates openscad which can render\nto STL.  It uses Prim's algorithm to generate the maze so it has a defined\nstart.\n\nThe maze is generated randomly but the start is always on the same face.\nParameters like size, diameter, and number of nodes can be supplied.  The end is \nchosen by choosing the node on an outside edge that is furthest from the start.\n\n## Installation\n\nInstall my version of Solid Python.  The official version currently has a couple bugs.\n\n```\ngit clone https://github.com/conorpp/SolidPython\ncd SolidPython\nsudo python setup.py install\n```\n\nInstall other pip modules\n\n```\npip install docopt\n```\n\n## Usage\n\n```\n3D maze generator.  Uses Prim's alg to generator maze with\na start and an end and no loops.  Outputs openscad.\n\nUsage:\n  maze.py -h\n  maze.py [-x WIDTH] [-y HEIGHT] [-z DEPTH] [-r RES] [-n SPACING] [-d DIAMETER] [-m | -s] \u003coutput.scad\u003e\nOptions:\n  -h, --help                    Show this help message and exit\n  -x --width WIDTH              Number of cells wide [default: 5]\n  -y --height HEIGHT            Number of cells high [default: 5]\n  -z --depth DEPTH              Number of cells deep [default: 5]\n  -r --resolution RES           Resolution of rendering [default: 25]\n  -n --node-spacing SPACING     Distance between nodes in mm [default: 8.0]\n  -d --diameter DIAMETER        Diameter of nodes in mm [default: 6.0]\n  -m --enable-mesh              Creates a cross hatch mesh and subtracts maze from it.\n  -s --enable-solid             Creates a solid cube and subtracts maze from it.\n\nExamples:\npython maze.py output.scad\npython maze.py [-x 10] [-y 5] [-z 4]  [-n 10] [-d 3] [-m | -s] \u003coutput.scad\u003e\n```\n\nRunning the maze.py program will generate an openscad file.  Open this with an openscad version\nbuilt after 2017.  You can find these versions right now by going to the [downloads](http://www.openscad.org/downloads.html) page\nand going to **Development Snapshots**.\n\n## Pictures\n\nDefault 5x5x5 maze\n\n![](/pics/skel.PNG)\n\nSolid - Default 5x5x5 maze\n\n![](/pics/solid.PNG)\n\nMesh - Default 5x5x5 maze\n\n![](/pics/mesh.PNG)\n\n# LICENSE\n\nCopyright (c) 2017 Conor Patrick\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconorpp%2F3d-maze-generator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fconorpp%2F3d-maze-generator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconorpp%2F3d-maze-generator/lists"}