Hi,
we have currently a problem removing TransformGroup from other
TransformGroups; at certain code elements with a certain TransformGroup we
get the error message stated in the subject. We also can't add a another
TransformGroup. Please help us! The code in question is attached below.
< ------------------ code ------------------>
public void run() {
Thread t = Thread.currentThread();
Particle c_p;
Particle c_p2;
Alpha c_a;
try
{
t.sleep(2000);
}
catch(InterruptedException e)
{
}
while (true) {
for (int i=0;i<p_vector.size();i++)
{
c_p = (Particle) p_vector.elementAt(i);
c_a = c_p.getAlpha();
if (c_a.finished()) {
//System.out.println(p_vector.size());
ps_root_TG.removeChild((c_p.getChildNum()+1));
c_p2 = new
Particle(1,p_alpha_factor,p_TCB_keys,p_x_disp_factor,
p_y_disp_factor, p_z_disp_factor,
axis_ofrotposscale, ps_apps, c_p.getChildNum());
TransformGroup c_TG = new TransformGroup();
c_TG.addChild(c_p2.getTG());
ps_root_TG.addChild(c_TG);
}
else t.yield();
}
}
}
< ------------------ code ------------------>
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".