jnweiger / inkscape-round-corners

An inkscape 1.0 extension to apply a radius to sharp corners of a path.
GNU General Public License v2.0
10 stars 2 forks source link

test/rect.svg cannot round both top-left and bottom-left corners with radius 4 together #3

Open jnweiger opened 3 years ago

jnweiger commented 3 years ago

Rounding them individually works. When computing the avilable trim, we currently always divide the segment length by two to allow rounding at the other end too. This should not be done.

a) when trimming along a handle, and b) at the segment to the previous node.

At the previous node, the rounding was either already done, or we did not want to do it. In either case we need not reserve room for that. We sort the indices before processing.

jnweiger commented 3 years ago

Workaround in v1.4: use

max_trim_factor = 0.90

instead of the proper 0.49 for the time being ....