Dear all:

consider the snippet below:

int x = ((MouseEvent)event[i]).getX();
                        int y = ((MouseEvent)event[i]).getY();
                        System.out.println("x="+" "+x);
                        PickRay pickRay = generatePickRay(x,y);
SceneGraphPath []Path = branchGroup.pickAll(pickRay);
                     for (int b=0;b<Path.length;b++)
                        {
                                System.out.println("path[b]="+Path[b]);
                         }

the following print below shows the result of  the path, i want to retrieve
the object Protein which i used to make the cone.something like

Protein tein =(Protein)Path[0].getObject();

but that throws an exception, any ideas on how really get to this object ?

path[i]=javax.media.j3d.Locale@1fe571f : com.sun.j3d.utils.geometry.Cone,
Protein@109ea96 :
javax.media.j3d.Shape3Djavax.media.j3d.TriangleFanArray@83b1b

LocalToVworld Transform:
0.0375749076740305, -0.005965948985267853, -0.012350453208999744,
0.285124270664246 0.0, 0.03601788328904463, -0.017398620975559716,
0.12078290366391121 0.013715911991643523, 0.01634378978561484,
0.033834216736250124, 0.6479161499920172
0.0, 0.0, 0.0, 1.0


this is what i really want to process

path[i]=javax.media.j3d.Locale@1fe571f : com.sun.j3d.utils.geometry.Cone,
Protein@109ea96 :
javax.media.j3d.Shape3Djavax.media.j3d.TriangleFanArray@83b1b

and get to the protein object.

any Ideas ?


thanks,

Isaac

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