OpenSCAD – The Programmers Solid 3D CAD Modeller
OpenSCAD is a software for creating solid 3D CAD objects… OpenSCAD is not an interactive modeller. Instead it is something like a 3D-compiler that reads in a script file that describes the object and renders the 3D model from this script file (see examples below). This gives you (the designer) full control over the modelling process and enables you to easily change any step in the modelling process or make designes that are defined by configurable parameters.
In days gone by I used to post examples demonstrating the power of DSLs over GUIs. This is a nice example I came across recently. The scripting approach may be useful, of coursed, to 2D CAD as well. Here is an amusing example.
Maybe the analog computing DSL I fantasized about should output SCAD scripts instead of compiling directly to g-code…