mathandy / svgpathtools

A collection of tools for manipulating and analyzing SVG Path objects and Bezier curves.
MIT License
557 stars 142 forks source link

Outlining example issues #180

Open themindfactory opened 2 years ago

themindfactory commented 2 years ago

Trying to run the example to outline am SVG path, I have one of a letter M, hope someone can help, I can sort of see why it does it but would like to add code to circumvent the issue....

Here is the code that created the example: paths, attributes = svg2paths('output2.svg') p1 = offset(paths[1], -30, 1000) p2 = offset(paths[1], +30, 1000) wsvg([p1],filename='output-example-1.svg') wsvg([p2],filename='output-example-2.svg') wsvg([paths[1]],filename='output-example-3.svg')

output-example-3

Below is the outline using a positive and negative offset to outline on both sides, both leave weird artifacts.

output-example-2

output-example-1