[Note: Requires version 2019.05]
OpenSCAD can import the geometric structure of SVG files.
import("file.svg"); import(file = "file.svg", center = false, dpi = 96);
Parameters
Scalable Vector Graphics (SVG), as the name already implies, is designed to be a scalable graphics format targeting rendering on Web pages with support for interactivity and animation.
This means there are a number of features that do not translate well into the use as CAD format. Especially all animation features and most visual properties in the SVG file are ignored. In general the OpenSCAD SVG import extracts the core geometric information of the objects and transforms that into closed 2D polygons.
Main features not imported are:
The ViewBox attribute of the SVG file defines the initial coordinate system for displaying it's content. The OpenSCAD import supports the tranformations including the preserveAspectRatio attribute. The article Understanding SVG Coordinate Systems and Transformations gives a nice introduction of how all combinations of the viexBox related attributes affect the display.
OpenSCAD handles only closed polygons, so importing lines or open polygons is not possible. Instead open polygons are treated as shapes defined by their stroke-width.
Closed shapes are always using the geometric specification regardless of fill or stroke-with defined in the SVG file.