Cone is a primitive object, not a Geometry object. you should get exception
for that.


At 12:39 PM 1/31/2003 -0500, you wrote:
 hi all:

given the code below:

sceneGraphPath = branchGroup.pickAny(pickRay);
                        System.out.println("scene  graph="+"
"+sceneGraphPath.toString());
                Shape3D shape3d = (Shape3D)sceneGraphPath.getObject();
                Geometry geom = shape3d.getGeometry();
                Cone conex=(Cone)geom;
                        if(     conex instanceof Cone)
                        {
                                Cone conex=(Cone)someCone;
                        float Ht=conex.getHeight();
                        System.out.println("cone height="+" "+Ht);
                        }

i have a problem on line " Cone conex=(Cone)geom; "

what is the best way to get a cone from the scenegraph path ?
this  is the path;

scene  graph= javax.media.j3d.Locale@dfcb47 :
com.sun.j3d.utils.geometry.Cone, Protein@9abc69 :
javax.media.j3d.Shape3Djavax.media.j3d.TriangleFanArray@c792d4

LocalToVworld Transform:
0.0375749076740305, -0.005965948985267853, -0.012350453208999744,
0.020183997378
483642

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".
Lan Wu-Cavener
Dept. of Landscape Architecture

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