This is just a quick note on reversing the direction of bézier curves to produce the same curve with the start and end points reversed.
The situation where this came up is the SVG map for ECODev's page. I already had the basic outline, but I needed the different regions outlined so that people could click on them. I used Sodipodi to draw the internal borders, but that was just different lines. The lines needed to be combined before they'd make shapes. And all the lines were a part of two different shapes: the border between the Brakna and Gorgol is a part of the outlines for both regions.
The problem is in how a SVG shape is filled. Take these two examples:
Both shapes are made of two bézier curves, for the top one the curves are going opposite directions and so make a circle. In the bottom one the curves are going the same way and so to make a contiguous shape it is necessary to jump back. This is what causes the crossing shape in the fill.
To avoid this it is necessary at times to reverse the direction of curves. For static curves it is pretty easy:
Relative curves are a bit more complex, though easily manageable:
(for the notation here, <R2> - <R3> = <R2x,R2y> - <R3x,R3y> = <R2x - R3x,R2y - R3y>)