The attribute 'height' isn't a public data member of the class Cone. Using someCone.height assumes height is public (as opposed to protected, package, or private)
Instead, use the accessor method: getHeight() For further issues like that, I suggest checking out the J3d docs ~ddd -----Original Message----- From: Brobbey,Isaac (neuron) [mailto:[EMAIL PROTECTED]] Sent: Friday, January 24, 2003 11:13 AM To: [EMAIL PROTECTED] Subject: [JAVA3D] Cone height Dear all: i am trying to retrieve the height of a cone with this code below: Cone someCone = (Cone)sceneGraphPath.getObject(); for (int b=0;b<allVec.size();b++) { float Ht=someCone.height; .................. ............... } and i am getting the error below: Testhandler.java:2164: height is not public in com.sun.j3d.utils.geometry.Cone; cannot be accessed from outside package float Ht=someCone.height; ^ 1 error any Ideas on how to get this Cone height ? 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". =========================================================================== 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".