<p>I was not able to perform the download at your link. Instead, I visited the touch_terrain site and approximated the location. The modifications allow for a thicker base, which I selected to 4 mm arbitrarily, eliminating the non-closed (probably) as well as exaggerated the vertical scale to 4x.</p>
<p><a href="https://i.sstatic.net/e1b7J.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/e1b7J.png" alt="NZ 3D STL file image" /></a>
The result is satisfying and appears to have a minor validation problem surrounding the perimeter of the base, but no problems with the terrain.</p>
<p>If adjusting the base thickness does not resolve the problem you experience, consider also to increase the overall size of the model and use the tiling function to segment as needed.</p>
<p>For the roadway application, you can create an SVG of the map at appropriate scale. Thin lines will be problematic, but the thicker lines can be boolean-subtracted from the STL file. It will be necessary to extrude the SVG to sufficient thickness to impact the terrain STL in order to create the trenches.</p>
<p>It might also be possible, but far more complex, to use a feature in Fusion 360 that overlays an extrusion onto a surface in a uniform manner. Angus from Maker's Muse has a <a href="https://www.youtube.com/watch?v=Taymf_INu_U" rel="nofollow noreferrer">video explaining the process</a>, but it's a pair of primitives, not a complex terrain and may not apply.</p>
<p>With the permissions corrected, the file downloaded without complications. I note that the composition/analysis is in excess of 140K triangles (Meshmixer) and could create problems with some programs. Fusion 360 will either refuse to function or provide an alert.</p>
<p>I reduced the mesh using Meshmixer set to 70 percent, resulting in no apparent loss of detail, but fewer than 40K triangles. Tinkercad also dislikes high triangle count objects. <a href="https://www.dropbox.com/s/9lek02vmlx7lbbn/dunedin%20reduced.stl?dl=0" rel="nofollow noreferrer">The reduced file</a> will be available for download for a limited time.</p>
<p><a href="https://i.sstatic.net/4sOWi.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/4sOWi.png" alt="STL file image" /></a></p>
<p>Image from released (reduced) STL file.</p>
<hr />
<p>But wait, there's more. After some additional thought, with consideration for your constraints, I think I have a workable approach. I'm not sure how you'd approach this first step, though. I used Windows 3D Builder to repair the broken base. Meshmixer shows the flaw but does not repair it. I suspect other online repair facilities will resolve this simple problem. I could have tried Meshmixer (plane cut) and certainly Fusion 360's plane cut, but only thought of that as I type this addendum.</p>
<p>Once repaired, I saved your map image and traced it in a suitable program to create the SVG file. Both in Inkscape and in LightBurn (a laser editing/burning program), the tracing went well. LightBurn allowed me to confirm that the SVG generated had closed shapes, but Tinkercad would not import any variation I created. I used Inkscape's Path to OpenSCAD which previews fine the extrusion to 10 mm, but it would not render, complaining of non-closed shapes.</p>
<p><a href="https://i.sstatic.net/o2egv.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/o2egv.png" alt="extruded svg file" /></a></p>
<p>There are &quot;speckles&quot; all over the map, even though I enlarged it to 200% scale to reduce that aspect of the lines. I suspect this will be problematic and suggest to locate a better resource, to eliminate excessive detail in the map.</p>
<p>Once you have that solved and can extrude your map, scale and align it to match the <a href="https://www.dropbox.com/s/8zo5xwijc3206eb/dunedin%20reduced%20repaired.stl?dl=0" rel="nofollow noreferrer">terrain STL which has been repaired</a>. Create a duplicate of the terrain, also properly aligned and elevate it. The object of this step is to use the terrain to carve away the extruded map. If the boolean subtract does not destroy the terrain, great, otherwise, lower the extruded map into the terrain to the desired depth and perform another subtract.</p>
<p>This should give you the channels you require for painting.</p>

CC BY-SA 4.0
2022-10-31T15:32:00.173Z
The artifacts stem from the line being too thin or pixels not being fully filled I guess.
Trish
CC BY-SA 4.0
2022-10-31T08:27:04.880Z
2022-10-31T12:21:07.953Z
2022-10-31T12:21:07.953Z
fred_dot_u
<p>I have a request to create a jigsaw puzzle based on a road layout, for a customised christmas gift.  Imagine a Secret Santa present.</p>
<p>The city in question is Dunedin, New Zealand, which is on the waterline and has surrounding hills.   I'd like to combine a download from  <a href="https://touchterrain.geol.iastate.edu/?DEM_name=JAXA%2FALOS%2FAW3D30%2FV2_2" rel="nofollow noreferrer">https://touchterrain.geol.iastate.edu/?DEM_name=JAXA%2FALOS%2FAW3D30%2FV2_2</a>  (available in OBJ, STL Binary, STL ASCII, or GeoTIFF)  with an overlay like this in JPG/PNG.</p>
<p><a href="https://i.sstatic.net/E3krb.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/E3krb.jpg" alt="enter image description here" /></a></p>
<p>Last step before printing would be to carve out individual jigsaw shapes for printing separately.</p>
<p>I imagine each road would be a slight &quot;trench&quot; or hollow in the STL's surface.  Clearly a filament swap would not work to paint the roads as they climb, so either coloured marker or a fine paintbrush  would be used, followed by clearcoat to preserve.</p>
<p><strong>What software workflow would give a useful result?</strong></p>
<p>I've looked at blender and freecad and tinkercad but nothing gives any result close to what I imagine but I haven't the experience.</p>
<hr />
<ul>
<li><p>A low-res STL at 6.7 Mbytes can be found at <a href="https://criggie.org.nz/crap/V2_2_170.51_-45.88_tile_1_1.STL" rel="nofollow noreferrer">This Link</a></p>
</li>
<li><p>Importing the above STL into tinkercad returns this mess of triangles, not a solid shape.   <a href="https://www.tinkercad.com/things/6nAgsF3lykG-dunedin-stl-imported" rel="nofollow noreferrer">https://www.tinkercad.com/things/6nAgsF3lykG-dunedin-stl-imported</a></p>
</li>
<li><p>The STL above displays perfectly with  <code>fstl</code></p>
</li>
<li><p>But same STL fails with blender etc.</p>
</li>
<li><p>I am using Linux, but have access to a modern mac or an older windows 2008 host if necessary.</p>
</li>
</ul>
<p>I suspect the STL is not &quot;closed&quot; which is leading to all manner of difficulties.</p>
<p><strong>What would get me close to my desired print outcome?</strong></p>

CC BY-SA 4.0
2024-03-13T14:25:00.363Z
Totally random thought, and nothing to do with a solution, but after seeing Fred's images, and the textures - making a 2D jigsaw out of a landscape *might* useful for blind people to put together. I'm not blind myself, but someone I knew was, and the thought just now popped into my head -  feeling the textures to make sure that the pieces lined up correctly. Anyway, like I said - just a random thought... :-)
Greenonline
<software><stl><pre-processing>
Software workflow for merging a flat image and a STL?
Criggie
# Software workflow for merging a flat image and a STL?

(Asked by: username_0 on 2022-10-31)

I have a request to create a jigsaw puzzle based on a road layout, for a customised christmas gift. Imagine a Secret Santa present.

The city in question is Dunedin, New Zealand, which is on the waterline and has surrounding hills. I'd like to combine a download from <https://touchterrain.geol.iastate.edu/?DEM_name=JAXA%2FALOS%2FAW3D30%2FV2_2> (available in OBJ, STL Binary, STL ASCII, or GeoTIFF) with an overlay like this in JPG/PNG.

[![enter image description here](https://i.sstatic.net/E3krb.jpg)](https://i.sstatic.net/E3krb.jpg)

Last step before printing would be to carve out individual jigsaw shapes for printing separately.

I imagine each road would be a slight "trench" or hollow in the STL's surface. Clearly a filament swap would not work to paint the roads as they climb, so either coloured marker or a fine paintbrush would be used, followed by clearcoat to preserve.

**What software workflow would give a useful result?**

I've looked at blender and freecad and tinkercad but nothing gives any result close to what I imagine but I haven't the experience.

---

* A low-res STL at 6.7 Mbytes can be found at [This Link](https://criggie.org.nz/crap/V2_2_170.51_-45.88_tile_1_1.STL)
* Importing the above STL into tinkercad returns this mess of triangles, not a solid shape. <https://www.tinkercad.com/things/6nAgsF3lykG-dunedin-stl-imported>
* The STL above displays perfectly with `fstl`
* But same STL fails with blender etc.
* I am using Linux, but have access to a modern mac or an older windows 2008 host if necessary.

I suspect the STL is not "closed" which is leading to all manner of difficulties.

**What would get me close to my desired print outcome?**

**Tags:** software, stl, pre-processing
> **Comments:**
> **username_1**: Totally random thought, and nothing to do with a solution, but after seeing Fred's images, and the textures - making a 2D jigsaw out of a landscape *might* useful for blind people to put together. I'm not blind myself, but someone I knew was, and the thought just now popped into my head -  feeling the textures to make sure that the pieces lined up correctly. Anyway, like I said - just a random thought... :-)  

---

## 1 answers

### Answer by username_2 on 2022-10-31. Score: 4 | Accepted answer

I was not able to perform the download at your link. Instead, I visited the touch\_terrain site and approximated the location. The modifications allow for a thicker base, which I selected to 4 mm arbitrarily, eliminating the non-closed (probably) as well as exaggerated the vertical scale to 4x.

[![NZ 3D STL file image](https://i.sstatic.net/e1b7J.png)](https://i.sstatic.net/e1b7J.png)
The result is satisfying and appears to have a minor validation problem surrounding the perimeter of the base, but no problems with the terrain.

If adjusting the base thickness does not resolve the problem you experience, consider also to increase the overall size of the model and use the tiling function to segment as needed.

For the roadway application, you can create an SVG of the map at appropriate scale. Thin lines will be problematic, but the thicker lines can be boolean-subtracted from the STL file. It will be necessary to extrude the SVG to sufficient thickness to impact the terrain STL in order to create the trenches.

It might also be possible, but far more complex, to use a feature in Fusion 360 that overlays an extrusion onto a surface in a uniform manner. Angus from Maker's Muse has a [video explaining the process](https://www.youtube.com/watch?v=Taymf_INu_U), but it's a pair of primitives, not a complex terrain and may not apply.

With the permissions corrected, the file downloaded without complications. I note that the composition/analysis is in excess of 140K triangles (Meshmixer) and could create problems with some programs. Fusion 360 will either refuse to function or provide an alert.

I reduced the mesh using Meshmixer set to 70 percent, resulting in no apparent loss of detail, but fewer than 40K triangles. Tinkercad also dislikes high triangle count objects. [The reduced file](https://www.dropbox.com/s/9lek02vmlx7lbbn/dunedin%20reduced.stl?dl=0) will be available for download for a limited time.

[![STL file image](https://i.sstatic.net/4sOWi.png)](https://i.sstatic.net/4sOWi.png)

Image from released (reduced) STL file.

---

But wait, there's more. After some additional thought, with consideration for your constraints, I think I have a workable approach. I'm not sure how you'd approach this first step, though. I used Windows 3D Builder to repair the broken base. Meshmixer shows the flaw but does not repair it. I suspect other online repair facilities will resolve this simple problem. I could have tried Meshmixer (plane cut) and certainly Fusion 360's plane cut, but only thought of that as I type this addendum.

Once repaired, I saved your map image and traced it in a suitable program to create the SVG file. Both in Inkscape and in LightBurn (a laser editing/burning program), the tracing went well. LightBurn allowed me to confirm that the SVG generated had closed shapes, but Tinkercad would not import any variation I created. I used Inkscape's Path to OpenSCAD which previews fine the extrusion to 10 mm, but it would not render, complaining of non-closed shapes.

[![extruded svg file](https://i.sstatic.net/o2egv.png)](https://i.sstatic.net/o2egv.png)

There are "speckles" all over the map, even though I enlarged it to 200% scale to reduce that aspect of the lines. I suspect this will be problematic and suggest to locate a better resource, to eliminate excessive detail in the map.

Once you have that solved and can extrude your map, scale and align it to match the [terrain STL which has been repaired](https://www.dropbox.com/s/8zo5xwijc3206eb/dunedin%20reduced%20repaired.stl?dl=0). Create a duplicate of the terrain, also properly aligned and elevate it. The object of this step is to use the terrain to carve away the extruded map. If the boolean subtract does not destroy the terrain, great, otherwise, lower the extruded map into the terrain to the desired depth and perform another subtract.

This should give you the channels you require for painting.

> **Comments:**
> **username_3**: The artifacts stem from the line being too thin or pixels not being fully filled I guess.  

---

