Raghav,
You can't typecast BoundingSphere to BoundingBox. J3D 1.3 is
responding correct, and it's likely that we've fixed a bug in J3D 1.1.3
with J3D 1.3.
thanks,
Chien Yang
Java 3D Team.
> Date: Wed, 17 Jul 2002 09:49:13 +0530
> From: Raghavendra R <[EMAIL PROTECTED]>
> Subject: [JAVA3D] ClassCastException for BoundingBox
> To: [EMAIL PROTECTED]
> MIME-version: 1.0
> Content-transfer-encoding: 7bit
> X-Accept-Language: en-us
> Delivered-to: [EMAIL PROTECTED]
> User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:0.9.4.1)
Gecko/20020508 Netscape6/6.2.3
>
> Hi,
>
> I am getting a java.lang.ClassCastException when i do the following
> using J3D 1.3. Previously, i was using J3D 1.1.3 without any such
> exceptions. Is it not possible to typecast BoundingSphere / BoundingBox?
>
> BoundingBox bounds = new BoundingBox(pt1, pt2) ;
>
> BranchGroup bgroup ;
> bgroup.setBounds(bounds) ;
>
> BoundingSphere newBounds = (BoundingSphere)bgroup.getBounds() ;
>
> Thanks
> Raghav
>
> ===========================================================================
> 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".