I am trying to achieve something close to what Adobe Illustrator does with a brush. It correctly analyzes and simplifies the path, including its bezier handles. However, I implemented Ramer-Douglas-Peucker_algorithm , but that turned out to be not quite what I needed. It works great for line segments, but does not affect bezier handles. Is there an algorithm that this algorithm can do, but allow for cubic bezier handles? The problem is that the curve can be at an angle, but the algorithm sees only a straight line.
thanks
c ++ c algorithm vector graphics
jmasterx
source share