Hey! This thing is still a Work in Progress. Files, instructions, and other stuff might change!

OpenScad Polygon Generator

by PieterBos, published

OpenScad Polygon Generator by PieterBos Jun 13, 2011

Featured Thing!

1 Share
Download All Files

Thing Apps Enabled

Order This Printed View All Apps



Public Domain
OpenScad Polygon Generator by PieterBos is licensed under the Public Domain license.

Use This Project

Give a Shout Out

If you print this Thing and display it in public proudly give attribution by printing and displaying this tag.

Print Thing Tag


Thing Statistics

23260Views 3538Downloads


Well this is an proof of concept so to speak. Not really a thing ;-). What i do here is generate scad files. I was playing with that thought for a while now. Because its a bit strange. I use one programming language (action-script 3.0 and flex in my case) to generate the other.

In this case for the polygon method within openscad witch is powerfull but hard to read. So a made the visual helper for generation polygon call with a bit of extrusion

Weird but it works what do you think mad or mad science ;)

The small air app does not have any undo functionality and you can only draw on a grid, it was just to test something maybe i will add stuff to it ? should i ?


Update 14 Jun 2011:
Thanks for the great response but a bit of warning is in place the fxp source code is, well.. how do is say it.... very sloppy ;-) , just so you know build it 2 or 3 hours or so ( hack hack )

Update 13 Aug 2011:
Still working on it but not ready for its first release :-(
Some hints

  • Layers (one layer is one openscad module) each layer its own color
  • Adding and Deleting of Points and of course Moving points Splitting of segments
  • Curves (Maybe)
  • Save files (some json or xml) so you can save your work
  • Web based and AIR app
  • Etc Etc ;-)

Update 2 Aug 2012 :
New version at


  • Install the air program (you need the air runtime from adobe)
  • Look at vid on youtube
  • Run the app draw some polygons
  • Save it
  • Open it in openscad
  • Check Automatic Reload reload and Compile in open scad
  • Make some more polygon and save
  • See openscad update (cool)

the scad files are some examples of what it generated
the stl are the results from the scad files
the fxp (is a zip) and can be imported into flash builder

All Apps

3D Print your file with 3D Hubs, the world’s largest online marketplace for 3D printing services.

App Info Launch App

Auto-magically prepare your 3D models for 3D printing. A cloud based 3D models Preparing and Healing solution for 3D Printing, MakePrintable provides features for model repairing, wall thickness...

App Info Launch App

Kiri:Moto is an integrated cloud-based slicer and tool-path generator for 3D Printing, CAM / CNC and Laser cutting. *** 3D printing mode provides model slicing and GCode output using built-in...

App Info Launch App
KiriMoto Thing App

With 3D Slash, you can edit 3d models like a stonecutter. A unique interface: as fun as a building game! The perfect tool for non-designers and children to create in 3D.

App Info Launch App

Print through a distributed network of 3D printing enthusiasts from across the US, at a fraction of the cost of the competitors. We want to change the world for the better through technology, an...

App Info Launch App

Quickly Scale, Mirror or Cut your 3D Models

App Info Launch App

3D Print a wide range of designs with Treatstock. Easy to use tools to get the perfect result. The global 3D printing network that connects you with high-quality and fast working print services nea...

App Info Launch App

Is there a similar tool for creating a polyhedron?

This is so cool, its saved me a ton of time :-)

Thanks so much Mr. PieterBos! This is quite helpful. Being able to do this exact same thing in 3 dimensions would be super amazingly outstandingly useful (like for non-extruded 3D polygons). So. Feature request #2. It would come with my undying gratitude.

oef thats a big feature request ;-)

This is really awesome! I love it and I can hardly wait for new additions you make like curves, modules, etc.

Nice little GUI front-end for openSCAD.

I am working on that but it needs a bit more work ;)

Ill stop with the tries now. :-D Next one:

3rd try. A bit more complex. I made 2 versions out of it. Maybe i must outline totally, so that i can put more detail in the wings and body.

2nd try. Now are we playing with danger!

Nice and again use the idea use the code anyway you like :)

Thanks. Cool, i will see what i can do.

My first try with your program!

The result:

Very cool 8-)

AWESOME! As an OpenSCAD n00b, this toll will surely be helpful. Thanks for making it!

Really like some of the suggestions below. It'll be interesting to see where you take this. :-D

Wow, this is an awesome tool! The power of the GUI and openSCAD :)

Can't wait to let non-experts design boxes and stuff. Is there a wat to ofset a path in a polygon (other than just scaling it)? This would make for an excellent box generation system (or cookie cutter, etc.).

Hi Erik ;-)

Well you can change the offset by moving the green dot with the stepper controls in the left bottom (bit silly this way but it works, build it in 2 hours or so it will be buggy ;) )

B.t.w. I had trouble installing Adobe air for 64bit linux, but this did the trick: http://kb2.adobe.com/cps/521/cpsid_52132.htmlhttp://kb2.adobe.com/cps/521/c...

Also, I have a feature request. I would love to see a feature where you could add a module and module name, just like it prepends "extrude" to the polygon string right now. This is cool because then you can include the file from another project and have it decide where to place it how to extrude i
t, or use it multiple times! You could also allow it to name each path differently, but I like how it's kind of like a 'boolean' operation a.t.m. (drawing within subtracts, drawing outside will add something)

feature request woohoo :-D

well creating modules and stuff are on my wish-list as well. i also wanted to use this as a library style workflow.

This is great! For the past few weeks I've been watching the parts fall into place to make a nice OpenSCAD-based graphical CAD package like SolidWorks.

Yeah that would really be cool. But open scad as a fileformat with extra's why not :-D

Great stuff..

Should make life easier with a good simply tools.

Super cool ! Now polyhedrons :-D

once I was thinking in using javascript to write a simple html text page with the poly...whatever code to copy and paste into openscad but I never tried (give that js an array of coordinates and let document.write do the work for you). I like more your approach

yeah will work on that ;-) is a bit more work hehehe

I think this is a perfectly valid way to do things. You are essentially using the OpenScad language as the backend, or export format of your program. The same thing is done with the font generation thing.

Basically, you don't have to just sit in OpenScad to use it. I would find your tool very useful for things that are generated as extruded polygons.

You could probably easily add some curves to your drawings as well.

The curves thing is something i want myself but this was the quickest to build. Will look into that :-)

what if you like sitting in openscad? :P

Awesome, and a grid is all you need, we can always tweak the coordinates later.