Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Python
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
resultsTree918 Tweaks to tree
resultsWindPendant Pendant images/documentation
.gitignore Ignore pyc files
COPYING Copyright
README.md
pyopenscad.py Done with pendant (I think)
sandbox.py Done with pendant (I think)
sp_utils.py Added pyopenscad files
tree.py Tweaks to tree
util.py Tweaks to pendant
windPendant.py Tweaks to pendant

README.md

What's all this then?

These are just a few things I've made with OpenSCAD and SolidPython.

Try it yourself

  1. Install OpenSCAD (available for Linux, Mac OS X, and Windows).

  2. Clone this repository and run the demo program.

    git clone git://github.com/yosinski/OpenSCAD-playground.git
    cd OpenSCAD-playground
    python tree.py
    
  3. Open the produced tree.scad file in OpenSCAD. Export as STL and 3D print if desired.

That's all you need to get started!

Tweak the parameters in tree.py to make other L-system designs, try out windPendant.py, or come up with something completely new.

Tree

The file tree.py generates random arboreal specimens like the one below. The code implements a stochastic L-system, seeded randomly or with a number of the user's choice — in this case 918.

Results of python tree.py 918 rendered in OpenSCAD

tree_render

After 3D printing

tree_printed

Soaking in NaOH to soften the support material for removal

tree_soaking

All cleaned up. Note that several of the fragile smaller branches broke during cleaning.

tree_cleaned

Wind Pendant

The file windPendant.py generates a top that, when spun, relies on persistance of vision to produce an image.

Results of python windPendant.py rendered in OpenSCAD

windPendant1

windPendant2

After 3D printing

windPendantPrinted

Spinning

windPendantSpinning

Acknowledgements and License

The pyopenscad.py and sp_utils.py files are copied from SolidPython and are included in this distribution, for convenience, under their original GNU LGPL license. All other code is released under GNU GPL v3.

-

Something went wrong with that request. Please try again.