Loading
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!

Description

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 ?

youtube.com/watch?v=0oSW9zlKsZ8

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
thingiverse.com/thing:13348
Or
protorabbit.nl/?p=32

Recent Comments

view all

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

oef thats a big feature request ;-)

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.

Makes

Liked By

view all

License

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

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

Instructions

- Install the air program (you need the air runtime from adobe)
- Look at vid on youtube
youtube.com/watch?v=0oSW9zlKsZ8
- 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

Comments

You must be logged in to post a comment.

somethings on Apr 1, 2014 said:

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

Anonymous on Oct 17, 2011 said:

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.

PieterBos on Oct 19, 2011 said:

oef thats a big feature request ;-)

sxt173 on Aug 3, 2011 said:

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.

PieterBos on Aug 10, 2011 said:

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

Dippo on Jun 16, 2011 said:

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

Dippo on Jun 16, 2011 said:

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.

Dippo on Jun 16, 2011 said:

2nd try. Now are we playing with danger!

PieterBos on Jun 16, 2011 said:

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

Dippo on Jun 14, 2011 said:

My first try with your program!

The result:

PieterBos on Jun 14, 2011 said:

Very cool 8-)

DigiFab on Jun 14, 2011 said:

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

Erik on Jun 14, 2011 said:

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.).

PieterBos on Jun 14, 2011 said:

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 ;) )

Erik on Jun 14, 2011 said:

B.t.w. I had trouble installing Adobe air for 64bit linux, but this did the trick: http://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)

charlespax on Jun 14, 2011 said:

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.

PieterBos on Jun 14, 2011 said:

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

Auzze on Jun 14, 2011 said:

Great stuff..

Should make life easier with a good simply tools.

aubenc on Jun 14, 2011 said:

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

PieterBos on Jun 14, 2011 said:

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

WilliamAAdams on Jun 14, 2011 said:

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.

PieterBos on Jun 14, 2011 said:

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

hintss on Jun 14, 2011 said:

what if you like sitting in openscad? :P

syvwlch on Jun 14, 2011 said:

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

PieterBos on Jun 14, 2011 said:

Thanks!

Top