Thanks! I've made lots of wide area and close-up terrain models using DEM and lidar before, but trimming to state boundaries has always been the challenge. Every time I try to trim the raster data in qgis I don't get anywhere, even though it should be possible.
The OpenSCAD primitive is a new one for me though - thanks! In the past I've just used the DEMto3D plugin in qgis.