I checked for if (1+(dy*scale_factor)) to ensure that its greater than 0
before i go through the transformation but it doesn't help.

I do not quite understand about the part on using Math.pow. Do you mean that
I can try to replace if
(1+(dy*scale_factor)) with Math.pow(2.0, exp)? And exp will be calculated
according to the mouse movement?


Jasmine Kwok



----- Original Message -----
From: "Mark Hood" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, February 19, 2003 8:46 AM
Subject: Re: [JAVA3D] Modified MouseZoom but canvas hangs


> > Date:         Tue, 18 Feb 2003 14:27:39 -0800
> > From: Mark Hood <[EMAIL PROTECTED]>
> >
> > It's possible that the expression 1+(dy*scale_factor) could evaluate
close
> > enough to 0.0 under some conditions that you're getting a non-affine
> > transformation, which is illegal for a TransformGroup.
>
> Sorry, I was thinking non-congruent.  You only get a non-affine transform
if
> the 4th row is not {0, 0, 0, 1}, which probably isn't going to happen for
a
> scale :)
>
> -- Mark Hood
>
>
===========================================================================
> 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".

Reply via email to