I wrote this (in golang) to satisfy my need to generate STLs for 3d printing.
https://github.com/deadsy/sdfx
In general I like to write code to define objects, but there are some situations where a graphical editing UI would be nice. ie- Curve and polygon design.
You can sort of imagine a hybrid approach where you could crack open a mini editor to design a curve and then use it to generate code (table of numbers) which you could then extrude/sweep/loft or whatever.