Export svg?
in
Programming Questions
•
1 year ago
Searched the forums and the web, not much on this: I'd like to be able to export curves from processing as a svg, and bring those curves into Inkscape as paths.
Currently I'm using Processing's
PDF Export library to do this, which works. But it's not perfect: Inkscape will happily import the pdf and generate
strokes from the resultant graphics. But the issue stems from the fact if I create an
ellipse in Processing (noFill(), no smooth(), strokeWeight() of 1), in Inkscape the given ellipse has a physical width when I 'convert the strokes to path', giving me a shape with one circular path inside the other, filled with black to define the outline: I need to have a single path matching the curve generated in Processing, not 'one path inside another' (giving a donut \ torus effect).
I've been looking for other pdf export options, but not coming up with much. The Processing PDF Export library has this bit of text:
"
There is also a contributed library for exporting images to SVG format; check the
libraries
section of the website for more information."
However I can find nothing that matches this description in the lower docs. Searching online finds the
proSVG plugin, however it seems incompatible with the latest version of Processing.
It's quite possible that Processing's PDF export is doing the correct thing and this is simply my ignorance of how Inkscape works. Or maybe it's possible that the PDF export is exporting 'more than it should', and I need another export solution.
Again, my goal is: Make curves in Processing, see the exact same curves represented as paths in Inkscape. And if you're wondering 'why would I want to do this?': It will allow me to generate graphics in Processing and
etch them using my Ostrich-Egg Bot, via the Eggbot Inkscape plugins.
Any thoughts? Thanks
1