More Processing fun with Toxiclibs April 20
Powerful tools for programmatically generating 3D models for export as STL files
Last week I showed how you can use CodeThread to create GCode files for direct control over your 3D printer. Today I look at more portable solution.
Toxiclibs is another set of libraries for Processing that allows you to create 3D models through programming. Unlike CodeThread, which is designed for experimental printing, Toxiclibs has many, many uses including a function that can export your creation to an STL file. That means you can print the result on any home 3D printer you might have, or upload it directly to your Personal Factory.
One user, Nikolaus Gradwohl aka Guru, used Toxiclibs to create this tentacle:

I used his script and made my own STL file that I brought right into ReplicatorG:

How to install:
- Download and install Processing
- - Download Processing from here: http://processing.org/download/
- - There’s no installer, so extract the zip file somewhere that you’ll remember.
- Download and install Toxiclibs
- - Download Toxiclibs from here:
http://hg.postspectacular.com/toxiclibs/downloads/toxiclibs-complete-0020.zip - - Extract the zip file into your “processing-1.2.1\libraries\” folder. There will be several new folders like “audioutils” and “toxiclibs_p5″.
- - Download Toxiclibs from here:
- Download the tentacle example
- - Download Guru’s tentacle example script from here: http://www.local-guru.net/processing/tentacle/tentacle.pde
- Start Processing
- - Open your processing-1.2.1 folder and run processing.exe (or the appropriate executable for your platform).
- - Click File –> Open and navigate to where you saved tentacle.pde.
- - Open tentacle.pde and click the Run icon in the toolbar.
- - Press “s” to save an STL file in the script’s folder.
Derek Quenneville is a 3D printing evangelist who posts weekly on the Ponoko blog. Follow him on Twitter @techknight.












April 21st, 2011 at 1:37 am
Hi Derek, thousand thanks for blogging this and spreading the word! Much appreciated!
Due to the nature of that website, the examples on OpenProcessing.org are not really dedicated to digital fabrication, but here’re some more links to a few more fabrication projects the libraries have been providing the essence for:
Voxel Posse (for Universal Everything)
http://www.flickr.com/photos/toxi/sets/72157625895840454/
Type+Form sculpture (for Print Magazine)
http://www.flickr.com/photos/toxi/sets/72157604724789091/
HEAD Geneva workshop (a 3D visualization of Justin Bieber tweets)
http://www.flickr.com/photos/toxi/sets/72157625174750236/
Printed Lattice:
http://www.flickr.com/photos/toxi/sets/72157624686695647/
Generative wheel designs:
http://toxiclibs.org/2010/01/re-inventing-the-wheel/
There’s also a new sister project called Flatworld which is using toxiclibs to unwrap 3D meshes for fabrication with sheet materials. It’s still early days, but things are moving along swiftly and the system is designed to work with a variety of materials and provides customizable mount edges…
http://www.flickr.com/photos/toxi/sets/72157626405899784/