I wanted to improve the existing library QB curves sampling and came up with a way to sample curves based on how much a curve segment bulges out from a straight line connecting the segment endpoints, so essentially, it’s a division based on the amount of curvature.
The idea is that if the farthest (from the line) curve point is less than, say, a pixel away, the curve should visually appear smooth enough.
I made this tool to test the difference between the built-in curve sampling and this method:
https://jsfiddle.net/tfoller/81qyh0w2/188/
Questions:
-
Is this method familiar to anyone? I did it off the top of my head.
-
What do you think of it?
Thank you!