svg2scad
is a perl script and requires some additional modules, which you can install
like this:
% sudo cpan XML::Simple Math::Bezier Data::Dumper
that's all.
% sudo cp svg2scad /usr/bin/
or
% sudo make install
-
Draw a path in Inkscape, save it as file.svg
-
Run
svg2scad
% svg2scad file.svg
creates a file.scad
- OpenSCAD you can include that file:
linear_extrude(height=10) include <file.scad>
and hit F5 to display the polygon, or make a nice extrusion:
% svg2scad -openrot sample4.svg
the -openrot
switch ensures open polygon prepared for rotational extrusion:
first and last coordinate x-position to be the same, making a closed volume;
OpenSCAD otherwise cannot compile and create a STL file.
rotate_extrude ($fn=100) include <sample4.scad>
- higher bezier curve subdivision (default = 32)
% svg2scad -bzsteps 64 myvase.svg
that's it!