So for a school project Iam supposed to program a so called "V-Plotter", my team built it and I managed to program all calculations and so on, basicly I can make it move to a certain x/y coordinate and lift/raise the pen. I converted an Image with potrace to an .svg file and as far as I understood it, the file should contain a certain path which the plotter would follow.
My idea here would be to read the vector path and save it in multiple vectors via an Array, then simply make an loop going through those arrays and thus drawing the vectors. Or simply said: Loop variable i=0 Loop:
- pen up
- move to (x1/y1) of Array i
- pen down
- move to (x2/y2) of Array i
- increase i by 1 (this is not program code, but easy to program)
But i can not find any way to read the vector coordinates, shouldn't it be easy to get the coordinates where a vector starts (x1/y1) and where it stops (x2/y2)?