Silly idea: Flatten all Bezier curves to small polylines. At rendering time, if zoomed in enough, render such polylines as Catmull-Rom splines. Avoids numerical precision issues because everything is lines until the last possible moment, and keeps curves looking curved.
-
Show this thread
-
-
-
Replying to @pcwalton
I’m just rendering user provided svg files so zooming is not actually an option. The svg files are cached, flatten and smoothed through lyon and RDP.
2 replies 0 retweets 1 like -
-
Replying to @pcwalton
Ramer–Douglas–Peucker algorithm to reduce line segments after flatten
1 reply 0 retweets 1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.