I hope you're fine with me starting a new Issue for every new topic.
While making the sketches for the other issue, I realized that the Inkling creates a lot of spikes:
how it looks like after conversion to svg:
about how it looks on my paper (actually after cleaning it up an coloring using inkscape):
Inspecting the spikes in Inkscape I figured out that they consists of singular points positioned far away the stroke.
You could measure the distance between adjacent points: If the distance from point 1 to point 2 or from 2 to 3 is much larger than the distance from 1 to 3 you should throw point 2 away. (maybe you have to include also the point before and after in such a filter)
Sadly I'm not an expert in C and I can't try out my ideas myself. But maybe if you add more and more features one day you produced enough code so that I can add something by modifying and recombining of what is already there.
I hope you're fine with me starting a new Issue for every new topic. While making the sketches for the other issue, I realized that the Inkling creates a lot of spikes: how it looks like after conversion to svg: about how it looks on my paper (actually after cleaning it up an coloring using inkscape): Inspecting the spikes in Inkscape I figured out that they consists of singular points positioned far away the stroke.
You could measure the distance between adjacent points: If the distance from point 1 to point 2 or from 2 to 3 is much larger than the distance from 1 to 3 you should throw point 2 away. (maybe you have to include also the point before and after in such a filter)
Sadly I'm not an expert in C and I can't try out my ideas myself. But maybe if you add more and more features one day you produced enough code so that I can add something by modifying and recombining of what is already there.