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 & HelpPrograms › Positioning objects based on their relationships
Page Index Toggle Pages: 1
Positioning objects based on their relationships (Read 714 times)
Positioning objects based on their relationships
Dec 9th, 2009, 2:53pm
 
Hey all,

I'd like to spatially position objects based on their relationship towards one another. For instance a tag 'cloud' in which tags group together if they are commonly share the same entry. Calculating these relationships is easy enough, but I have an incredible hard time positioning them relative to each other.
Up to three is okay, but 4 already poses a problem. Tongue

Please see my sketch here, though no positioning is going on there yet.

Any help on relative positioning would be appreciated!  Smiley

Best regards,
Tiemen
Re: Positioning objects based on their relationships
Reply #1 - Dec 9th, 2009, 3:21pm
 
If you want to be more dynamic and dont want to calculate it yourself. i would recommend to take a look at a physics library. for example traer physics http://www.cs.princeton.edu/~traer/physics/

if you can calculate the relationships you can use these data to create springs or force to group them or keep them apart.
i would say its a nice way especially when the data changes, cause the graph rearranges itself
Page Index Toggle Pages: 1