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 › manipulate an instance of an object
Page Index Toggle Pages: 1
manipulate an instance of an object (Read 309 times)
manipulate an instance of an object
Jul 5th, 2007, 8:58pm
 
Hi,

I currently work on an application that creates randomly tree structures. then it combines some of them and produces offspring structures. The problem is that I can't find a way to create a clone of an object that belongs to my Tree class. I want to grab a substructure of say Tree 1 and attach it to a base structure of say Tree 2, and produce a third Tree without changing the parent Trees.

Any suggestions?

Page Index Toggle Pages: 1