
On 24-8-2014 21:54, Tavmjong Bah wrote:
On Sun, 2014-08-24 at 21:38 +0200, Johan Engelen wrote:
Hi Chris, Seems like a good change, so it behaves similar to bezier segments.
Then my question becomes, how to form the segment between currentPoint(x,y) and (x1,y1)? Is currentPoint(x,y) to be doubled? Would be fine to me.
The other question is, at which point to stop drawing. I read that people want 2 points to result in a straight line, i.e. M 0,0 r 1,1 should create a straight line. However, there are only 2 points there. This would need startpoint and endpoint doubling. Again, would be fine to me. It conflicts with the current draft where it is specified that drawing stops at second to last point.
Draft has probably not been fully updated. In the case you asked about, the "zeroth" point would be the second point mirrored around the first (-1,-1) and the "third" point would be the first mirrored around the second (2,2).
If there is a Bezier to Catmull-Rom transition, the "zeroth" point would be the previous "handle" point so that the line is smooth across the node. This behavior can be inhibited by inserting a 'm 0,0' into the path between the Bezier and Catmull-Rom.
Any specific reason for mirroring? The result is not identical to node-doubling. I thought node-doubling is more common.
-Johan