I wrote this code to generate SVG for 3d printing puzzle pieces for my kids. Some interesting challenges.