Bezier curve approximation algorithm with biarcs
This is more or less a one-to-one implementation of https://github.com/domoszlai/bezier2biarc for openFrameworks.
You can install this as any other openFrameworks addon.
The algorithm is explained by Domoszlai in this blog post: http://dlacko.org/blog/2016/10/19/approximating-bezier-curves-by-biarcs/.
Create a number of cubic bezier paths in openFrameworks.
Convert them to BiArcs by calling ofxCubicBezierToBiArc::ApproxCubicBezier().
- The code only works in 2D space.
- It will not check if the input actually is cubic beziers, and it has not been tested on other inputs.