Hi,

I have some trouble in picking and removing the object. My structure is
simple -  a TransformGroup node, under which I have many BranchGroup nodes.
I want to pick and delete one BrachGroup node one time. I can not get access
to BrachGroup node, so I can not use removeChild() and detach().

My code is as following:

BranchGroup pickBG =
(BranchGroup) pickResult.getNode (PickResult.BRANCH_GROUP);
Shape3D  shape = (Shape3D) pickResult.getNode (PickResult.SHAPE3D);
if (pickBG != null)
{ pickTG.removeChild (1);
  System.out.println("Brach");
}
if (shape != null) {
     System.out.println("Shape");
}


The problem here is that I alway got a null of 'pickBG'  while 'shape' is
not null.

Why? Any comments?

Any similar example?

Qiuli

===========================================================================
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".

Reply via email to