9 Sep
2012
9 Sep
'12
12:13 p.m.
On 9-9-2012 12:15, Tavmjong Bah wrote:
Hi,
Can someone quickly remind me what the problem is with the current SVG 'z' syntax to close a path?
I believe the 'problem' is that 'z' is not only a flag to tell the path is closed, it is also used to actually close the path with a straight line segment if the start and end points don't align. In our implementation (2geom), this implicit closing line segment is always there, also if the start and end points are equal. For new 2geom programmers, this can be confusing as the path length given by 2geom may not be the number of segments one sees in Inkscape. One always has to check for 'degenerate' (zero length) path segments.
Ciao, Johan