jzbrooks / vgo

vector graphic optimization
MIT License
43 stars 2 forks source link

Avoid elision by even odd rules #59

Closed jzbrooks closed 3 months ago

jzbrooks commented 3 months ago

It might be possible to avoid evenOdd issues by determining if a particular path would be omitted from the final render based on surroundings, but this is simpler for now.

vgo# vgo/build/libs/vgo --indent 2 --stats vgo/src/test/resources/baseline/eleven_below_single_optimized.xml -o ~/Desktop/test.xml
Size before: 59.29 KiB
Size after: 57.71 KiB
Percent saved: 2.6519519024872347

After the change.