pub fn parse(
    svg: &str,
    tol: f64,
    preprocess: bool
) -> Result<Vec<Polyline>, Error>
Expand description

Parse an SVG string into a vector of Polylines.

Flattening tolerance

The tol parameter controls the flattening tolerance. A large value (e.g. 10.0) results in very coarse, jagged curves, while a small value (e.g. 0.05) results in very smooth curves, but a lot of generated polylines.

Using a value of 0.15 is a good compromise.

Preprocessing

If preprocess is set to true,