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 & HelpSyntax Questions › PShape child transform
Page Index Toggle Pages: 1
PShape child transform (Read 309 times)
PShape child transform
Feb 16th, 2009, 6:58pm
 
Hello-

I am trying to figure out a way to get a child shape from a SVG file, and then transform that child shape using its own centroid as it's origin instead of the parent document's
origin.

It looks like its possible to somehow extract individual points from a path.. but I couldn't quite follow the docs on that. (All the child objects will be SVG paths)

PShape is alpha or beta quality - I understand..  But I was hoping I could hack out a way to do this.  Any ideas?
Re: PShape child transform
Reply #1 - Feb 18th, 2009, 12:06pm
 
Maybe you would want to try Geomerative which gives you access to points, handles and centroids of Shapes (which can be loaded from SVGs).

http://www.ricardmarxer.com/geomerative/
Re: PShape child transform
Reply #2 - Feb 18th, 2009, 7:54pm
 
Interesting..  I have heard of this library but didn't realize it could handle SVG.  Looks cool, I will give it a try.

Thanks Ricard-
Page Index Toggle Pages: 1