Expand description
Convert an SVG file to a list of polylines (aka polygonal chains or polygonal paths).
This can be used e.g. for simple drawing robot that just support drawing straight lines and liftoff / drop pen commands.
Flattening of Bézier curves is done using the Lyon library. SVG files are preprocessed / simplified using usvg.
Note: Currently the path style is completely ignored. Only the path itself is returned.
§MSRV
This library does not guarantee a fixed MSRV.
§Serialization
You can optionally get serde 1 support by enabling the serde
feature.
Structs§
- Coordinate
Pair - A pair of x and y coordinates.
- Polyline
- A polyline is a vector of
CoordinatePair
instances.