This task is similar to tools like FreePen in Photoshop and etc.
A set of points (we get them from mouse input) needed to be interpolated into optimal count of splines.
I just don't know where to look.
This task is similar to tools like FreePen in Photoshop and etc.
A set of points (we get them from mouse input) needed to be interpolated into optimal count of splines.
I just don't know where to look.
Probably, you need to reduce number of points at first. There is Douglas–Peucker algorithm to simplify polylines. C++ implementation