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.
IndexProgramming Questions & HelpOther Libraries › Candy and SVG Content Information
Page Index Toggle Pages: 1
Candy and SVG Content Information (Read 307 times)
Candy and SVG Content Information
Mar 5th, 2008, 1:55am
 
I was wondering if there was any way to get information from an .svg file that can be drawn into processing. The get function only relays information about styling of the SVG. Is there a way to get vertex coordinates?

The purpose for such a question would be to potentially set up collision detection between a particle class and an SVG Object.
Re: Candy and SVG Content Information
Reply #1 - Mar 5th, 2008, 5:51pm
 
no, the get() function gives you all of the data--another SVG object, not styling information.

there's currently no methods for getting at the vertex data. i recommend taking the source of the svg library and modifying it to suit your needs.
Page Index Toggle Pages: 1