Hello,
I want to change the attributes of a BranchGroup's children. I have set the capability of the BranchGroup :
 BranchGroup bgRoot = new BranchGroup();
 bgRoot.setCapability(BranchGroup.ALLOW_CHILDREN_READ);
 bgRoot.setCapability(BranchGroup.ALLOW_CHILDREN_WRITE);
 
and when I want to read the children like below I get error :
 
for (int i=0; i < bgRoot.numChildren(); i ++)
        {
           Object obj = (Object) bgRoot.getChild(i);
           if ( obj instanceof Building ) System.out.println(" OK ");
        }
 
Do you know what is the problem ?
 
Regards,
Saeed


Discover Yahoo!
Have fun online with music videos, cool games, IM & more. Check it out! =========================================================================== 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