Dear all:
        I want to group a few object that intersect with each other, I
have get a class called pickGroupBehavior(), in which, I have a
updateScene method, in which, I store all the shape that I want to group

public void updateScene(int xpos, int ypos) 
{
                                                                        
 shapeGroup = (BranchGroup)pickScene.pickNode(pickScene.pickClosest(xpos,
                                                ypos, 
                                                PickObject.USE_BOUNDS),
                                                PickObject.BRANCH_GROUP);

        if(shapeGroup != null)
        {
                shape = (Shape3D)shapeGroup.getChild(0);
                shapes.addElement(shape);
                shapeGroupVector.addElement(shapeGroup);
        }
        else System.out.println("shapeGroup is null");

It doesn't return the branchgroup, it is always null. 

Can anybody tell me what is wrong with the code.  And if anybody know any
better way to group some Shape3D shape together.

Thanks for your help in advance.

Kelan

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

Reply via email to