|
Hi All,
I have a createSceneGraph() method . In that
method i build the whole structure. Inside that method i add a behavior object.
This behavior is my own class which is a sub class of the Behaviour class. On
click of some button I call this createSceneGraph() method again. So wat happens
is that the behavior object is again created & added.
Instaed of creating it again & again...I thought of creating it only
once say in the Initailze() & just add the object in the createSceneGraph().
But i'm getting a MultipleParentException.
Branch Group
|
Transform Group ( to this TG i add few
Shape3D objects & my behavior)
Inside the createSceneGraph()...I recreate all objects. But i don't want to
create the Behavior object again.
How can i aviod this ???
Thanks in Advance,
Karthik |
- Re: [JAVA3D] Multiple Parent Exception K.R.Karthikeyan
- Re: [JAVA3D] Multiple Parent Exception Adriano Cavalcanti Silva
