We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
Page Index Toggle Pages: 1
SVG Path importer (Read 2325 times)
SVG Path importer
Aug 3rd, 2005, 3:47am
 
I'm working on a new SVG bezier path importer similar to the one I wrote for Manifest, the a-life looking project. http://users.design.ucla.edu/~mflux/manifest/

The code currently looks like this. I still have a few features I want to add before I pack it up as a first version of the library. Code will be in a rep



Right now it only works for a few SVG commands, as it is not meant to be a full blown SVG converter. However, it is mainly used to transfer bezier lines from Adobe Illustrator into processing.

I want to eventually add a tween-morph feature between two similar SVGs so that one can easily create SVG procedural animations.

Here's a screenshot of the importer working:

http://users.design.ucla.edu/~mflux/posted/svgimpss.jpg

Any feedback would be great. Thanks!
Re: SVG Path importer
Reply #1 - Aug 3rd, 2005, 3:49am
 
Here's the importer
http://users.design.ucla.edu/~mflux/posted/svg.pde

Here's the file used to run an example
http://users.design.ucla.edu/~mflux/posted/svgimport.pde

The reason I didn't use the xml library is because I didn't want my library to be dependant on another library. I'm not sure if that was the right move, but I did it anyway... lol
Re: SVG Path importer
Reply #2 - Aug 3rd, 2005, 12:23pm
 
Thanks for this.
I'll be able to use part of this code for some libraries I'm working on.

I like how you dealt with creating subpaths and dynamically resizeble arrays.

cheerss!!
Re: SVG Path importer
Reply #3 - Sep 7th, 2005, 8:28pm
 
mflux,

what's the status on putting this into library format?

casey

Page Index Toggle Pages: 1