On Mon, 2013-09-30 at 19:35 +0200, Markus Engel wrote:
Hi,
I also noticed that the Object->Path command converts a circle/ellipse to a path using eight Bezier curves (and would thus have eight markers). It seems to me that it should be converting to four elliptical arc segments.
The code's there, see "svg/svg-path.cpp", l. 92. It would output elliptical arcs, if Circle::getPath (2geom/circle.cpp, l. 102) created elliptical arcs in the first place. With this I could need a bit of help ;) . Btw, the number of Bezier curves depends on the size of the objects it seems.
Inkscape currently represents circles and arcs as two path elliptical arc segments. In order to have four markers, it should be using four elliptical arc segments.
I was a bit mistaken, Inkscape currently represents an opened circle/ellipse with one arc segment regardless of its length.
Inkscape should be using the SVG circle or ellipse element. Converting a circle/ellipse to a path would produce a path of four arc segments (so marker rendering won't change). I might have a go at changing Inkscape to use a circle or ellipse element as suggested by Krzysztof.
I don't know. Let's say I create a pizza slice. I'd expect to get exactly one elliptical arc and two straight lines if I convert it to a path, even if there were a marker point on the way. Then the user should rather divide the elliptical arc into two parts manually in order to get a marker there. Usually, you first create your shape and then add your markers afterwards, don't you?
I agree that the default for a pizza slice is to have one arc segment and two straight lines. Inkscape already does this. One could have an option to break the path into multiple arcs so that changing a circle into an arc doesn't change the marker rendering (except adding markers at the start and end of the arc) but I don't think this in really necessary.
It would be very nice if Inkscape could directly create the SVG circle and ellipse elements rather than use the SVG path element.
The problem here is that then it must be possible to convert between circles and ellipses and paths in both directions. This probably adds lots of buttons and menu entries to the UI.
See Krzysztof's comment. Explicitly converting to a circle or ellipse to a path (via Path->Object to Path) always has been a one way process.
Tav