I’m trying to convert a Terrain2STL download to a DXF so I can cut it in Vectric Vcarve Desktop. I don’t need the terrain other than a slice at the surface to get an outline.
Search engine shows a bunch of converters, but so many require signup. I thought I had read stuff on here, but danged if I can find anything in a search.
It may work to import the STL into OpenSCAD, adjust/rotate as desired, then use the projection() command to allow rendering the 2D outline and exporting to a DXF.
Thanks, Will. I’ll try that, but now I’ve got to refresh my OpenSCAD. They had some discussion about improving all that import/export stuff, but that was back in 2015.
I tried Slic3r to get an SVG file, but apparently it puts all slices of the STL into one file and there’s no way to limit it to a single slice that I can see. It will import as an SVG, but I’m supposing I’m only getting the first or last slice. Well, it is designed for 3D printing and creating gcode.
The syntax for projection() command is escaping me. I’m importing the stl but projection() is not recognizing what I’m using. I’m thinking it should be the name of the .scad file, but it says it doesn’t recognize that and ignores the line.
Since it sounds like you just want a 2D slice from the 3D STL file, you might try one of the slicers that are used for laser cutting. Slicer for Fusion 360 works well, but it looks like it’s not going to be supported any longer. You might find a stand alone app or one that works with Sketchup, for example this or this.
I’m looking for an easy way to get a 2D slice out of the 3D STL. There are so many STLs around for 3D printing, and my current project is a lake outline from an STL created with Terrain2STL. Ideally, I could specify which slice, so I can adjust the edge profile without a ton of vector editing.
I found Slic3r. That will export a DXF (or maybe an SVG ) from an STL since it uses that system to do 3D printing. However, I found that the slices are stored sequentially in the resulting file with no obvious way to choose one.
Then Will suggested OpenSCAD would squeeze out a 2D slice, but I’m a bit rusty with that.
Calling the object is where I’ve lost my mind. I’ve referenced the the file name as local and with the full path without success. Am I somehow creating a default object name the isn’t visible to me?
Parsing design (AST generation)…
Compiling design (CSG Tree generation)…
Rendering Polygon Mesh using CGAL…
UI-WARNING: No top level geometry to render
Then if I do export from the file menu
ERROR: Nothing to export! Try rendering first (press F6).