Hi people,

I am doing this funky bit of code where i have the coordinates of several points making a single line... did some work to join the dots and kinda get the equation of a line/curve (cubic/quadratic beziers). This part is pretty much functioning well.:cool:

Now, where i want help is,:sweat:

Now i have like 2-3 or even more lines that are criss-crossing each other. I do not know which point belongs to which. Nor do i know how many lines there could be.

It is like a join the dots problem.

Luckily... yeah guys take a breather...:P

Luckily all the points are associated with each other strongly ie.right next to each other. So figuring out a pattern should not be too hard.

Any inputs are welcome... even tiny ideas that will fit in a larger picture.

Thanks in advance.:)