Skip to content

Working with the OpenSCAD file

Pawel Szymczykowski edited this page Jun 3, 2015 · 14 revisions

The original version of the SumoBot was create in Adobe Illustrator. This was great for prototyping and creating something visually, but it wasn't ideal because the file had to be recreated from scratch every time we changed the material thickness or cutting method to account for different kerf.

There were several points in the design that interlock and all needed to be changed at the same time. We needed something parametric, where we could specify the material thickness and the kerf in one spot, and then have all of the dependent sizes be calculated automatically and cascade down. The first attempt at this was a weird file format called psvg that embedded variables into an SVG file. It worked pretty well, but it was unfortunately pretty hard to work with and understand the source file because it wasn't a true declarative programming language - rather it was a bunch of polygon points with embedded mathematical formulas.

OpenSCAD is a declarative CAD language for creating STL files for 3D printing. It is also possible to export to DXF and SVG. After another rewrite, the OpenSCAD files have become the most current version of the SumoBot files, supporting not only kerf and material thickness but a bunch of other parameters you might like to tweak.

Clone this wiki locally