On Wed, 2019-02-13 at 15:26 -0800, Bryce Harrington wrote:
On Wed, Feb 13, 2019 at 11:15:41AM +0100, bryan rasmussen wrote:
> As per the subject line I often notice that what comes out of
> inkscape and
> other svg capable editors uses paths to represent circles and other
> simple
> shapes. I suppose this is for some reason of code optimization (i.e
> code
> optimization in the editor not in the output SVG).
> Can anyone shed any light on this?
Yes, in vector graphics Bézier curves are a wonderful generalized way
to
create shapes. Once you have the code to do them, all the other
shapes
can just use the same rendering code if you represent them the same
way.
The way the SVG specification is written, I'm not surprised that
other
SVG editors also use paths for representing basic geometrical shapes.
If you use Inkscape's ellipse tool, the SVG representation will use a
<circle> element if it is truly a circle, an <ellipse> element if it is
an ellipse, and a <path> element if it is pie shape or a partial
circle/ellipse. The SVG 2 standard does prescribe a standard way to
decompose a circle and an ellipse into paths, mostly for positioning
markers, dashes and text on a path.
Tav
Bryce
_______________________________________________
Inkscape-devel mailing list
Inkscape-devel(a)lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/inkscape-devel