"approve"
Hi...

I am trying to apply the method getShape(int partID) of the Box class.

I have defined like the following :
.......

Box contactor = new Box(1.0f, 0.5f, 0.3f, cupAppear);
Shape3D contShape = contactor.getShape(Box.LEFT);
Shape3D contShape1 = contactor.getShape(Box.RIGHT);

TransformGroup tgContBox = new TransformGroup();
tgContBox.addChild(contShape);
tgContBox.addChild(contShape1);
...........

I could not execute my class file. There was the message telling that
the child has more than one parent.

I don't understand, because I have created different Shape3D object for
each part of the contactor object. 

May be you can tell the error of my program.

Thank's a lot.......

Alita
=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/

Reply via email to