this post was submitted on 16 Jun 2023
7 points (88.9% liked)
3D Printing
4351 readers
1 users here now
For everyhting 3D printing related.
Please be excellent to each other :)
Icon by Freepik, Banner photo by Thiago Medeiros Araujo
founded 4 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
If you can get state boundary image data coincident with height map data (such as by taking two screenshots on the USGS website, one with the heightmap data opaque and with it translucent, without panning or zooming between), you could use a normal image editor (eg: GIMP) to mask the height map data so that it's zero (black) outside the state boundary and at least slightly gray inside the state boundary. With OpenSCAD's
surface
, this would give you a rectangle that's flat outside the state and at some minimum height inside the state. You could then use one difference or intersection to cut across the model by height, trimming off the flat rectangular base.(I.e., doing the trimming the image seems much easier than trimming an STL, & would totally work.)
Ah interesting - that makes sense. I didn't think to treat it like an image mask like that. Thanks!