Hi all,
I'm writing a separate application that parses and renders SVG files. However, I am completely baffled by the Arc.. After much thought, I have come to the conclusion that it may be better to just alter the Inkscape source to automatically convert Arcs to Paths before saving the file.
However, I can't find where this (Object to Path) actually happens in the source. If I could find the method that the menu item calls, I could just call that method before it saves the SVG.
Either that or I would love to know how to convert an SVG "A" to a "C"!!
Thanks
Chris-688 wrote:
However, I am completely baffled by the Arc.
for the arc, there is good documentation available at : http://www.w3.org/TR/SVG11/paths.html#PathDataEllipticalArcCommands
I would suggest that rendering an arc directly is probably a lot easier than trying to convert an arc to a curveto, which as far as I can tell is not possible to do exactly, and is not trivial to do inexactly.
hth, Alvin
-----Original Message----- From: Chris [mailto:blupub@...36...] Sent: vrijdag 30 januari 2009 1:06 To: inkscape-devel@lists.sourceforge.net Subject: [Inkscape-devel] Object to path
Hi all,
I'm writing a separate application that parses and renders SVG files. However, I am completely baffled by the Arc.. After much thought, I have come to the conclusion that it may be better to just alter the Inkscape source to automatically convert Arcs to Paths before saving the file.
However, I can't find where this (Object to Path) actually happens in the source. If I could find the method that the menu item calls, I could just call that method before it saves the SVG.
Either that or I would love to know how to convert an SVG "A" to a "C"!!
You could take a look at lib2geom. http://lib2geom.sourceforge.net/
-johan
participants (3)
-
unknown@example.com
-
Alvin Penner
-
Chris