Optimization problem
Got an optimizing algorithm problem here. Maybe you can help out with some idea or pseudo-code?
I have a bunch of lines, but as you see on the picture they are not optimized. What seems one line consists of many points on the same line. I want to remove those points so that I have only the necessary points building the lines.