I’ve written an OpenSCAD library for generating dovetail pins and tails. No longer will beautiful dovetail joints be solely in the domain of skilled woodworkers; now, anyone with a 3-D printer or CNC router can participate too.
Include it in your OpenSCAD script like so:
dovetail_pins() will generate just the pins of a dovetail joint.
dovetail_tails() will generate just the tails of a dovetail joint.
board_with_dovetail_pins() are much more useful; they will generate boards with pins or tails cut into each end.
If you render
dovetails.scad on its own, it will output a pair of example boards with pins and tails.
There’s a second file in the repository called
dovetail-box.scad. This file is an example of how to generate all of the boards needed to create a dovetailed box, and it shows how they’re oriented when fit together. It’s also an example of generating pins and tails of different thicknesses.
The library is available on GitHub.