lundi 10 octobre 2016

Use SVG in OpenSCAD

How to import SVG file in OpenSCAD

First convert SVG to EPS

$ inkscape -E logo.eps logo.svg

After convert EPS to DXF. You can play with the value 48 to get more or less resolution.

$ pstoedit -dt -f dxf_s:-splineaspolyline\ -splineprecision\ 48\ -mm logo.eps logo.dxf

And in OpenSCAD

linear_extrude(height=10)
import("logo.dxf");