Page MenuHome

Various improvements in svg import: fixed handles in rectangulars
Needs ReviewPublic

Authored by Michael Soluyanov (crantisz) on Thu, Feb 7, 1:39 PM.

Details

Summary

side by side: new version / old version / inkscape's convert to path:

Diff Detail

Event Timeline

Is this a generic fix or specific for some files?
Did you test it with .svg files exported from other programs?

io_curve_svg/import_svg.py
1482

I already commented on that like, I don't think it is necessary to precompute this constant. Better explain why that formula is correct.

Is this a generic fix or specific for some files?
Did you test it with .svg files exported from other programs?

This is specific for files with rect elements with rounded corners:

https://developer.mozilla.org/en-US/docs/Web/SVG/Element/rect

Round corner it is a quarter of circle, so the constant explanation:

https://stackoverflow.com/questions/1734745/how-to-create-circle-with-b%C3%A9zier-curves