Two New OpenSCAD Polygon Tools
In a recent OpenSCAD tutorial I described the basic process for creating 2D polygons in OpenSCAD. However, drawing polygons in OpenSCAD can be very problematic. Unless every triangle is described in the same “winding order,” some of the triangles in the polygon will be “flipped” causing OpenSCAD to freak out, rather than render them properly. Rather than designing using OpenSCAD polygons, I tend to either (a) design in Inkscape, export to DXF, and extrude the DXF in OpenSCAD or (b) build up the desired polygon out of boxes and circles.
However, these methods just might be a thing of the past. Just this week two Thingiverse users have each released a new way to easily create OpenSCAD polygons without all the potential pitfalls from manually writing them.
Simarilius created an Inkscape to Openscad Export extension which will allow you to export an Inkscape shape directly as a OpenSCAD code. This would be a huge shortcut on the first method I suggested above, since you won’t have to deal with an intermediary file format1 and potential translation problems that could occur.
The second OpenSCAD tool is the OpenSCAD Polygon Generator by PieterBos. This program provides a nice graphical user interface for designing an object. Once you’re happy with your designs, you can export them directly as OpenSCAD code. PieterBos even put together a nice video tutorial to go along with his contribution.
Both of these tools will go a really long way to creating an easier route to developing more complex forms and making OpenSCAD more accessible. I can’t wait to see what people design using these tools!
- In this case the DXF [↩]
| Tagged with | openscad, pieterbos, polygon, polygons, simarilius, Thingiverse | One comment |






One Comment so far
Pieter Bos
Wow a blog about my thing
. I am going to make a new version of de Polygon Generator. So that it is a bit ore user friendly.