These are just a few things I've made with OpenSCAD and SolidPython.
-
Install OpenSCAD (available for Linux, Mac OS X, and Windows).
-
Clone this repository and run the demo program.
git clone git://github.com/yosinski/OpenSCAD-playground.git cd OpenSCAD-playground python tree.py
-
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.
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.
The file windPendant.py
generates a top that, when spun, relies on persistance of vision to produce an image.
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.