Hi,
in the mailingListArchive( 07/02/2002) i've find a
mail post by Kelvin Chung
bug 4516752 - IntersectTest throws runtime exceptions
is fixed in the next v1.3 beta2 release.

But I'm getting this error with J3d 1.3 (with jdk
1.4.1)
 I am getting the error "interp point outside
triangle" when I do a pick.
see my code and the output bellow.
it's not fixed or i'm doing some think wrong?

thanks in advance.
Regards
Renaud


The code I am using to pick is this:

x = event.getX();
y = event.getY();

 // Pick the closest node
pickCanvas.setShapeLocation(x, y);
Point3d eyePos        = pickCanvas.getStartPosition();
PickResult pickResult = pickCanvas.pickClosest();

if (pickResult != null){
       PickIntersection pickIntersection =
pickResult.getClosestIntersection(eyePos);
       Point3d intersectPt =
pickIntersection.getPointCoordinates();
       .....
}

the output :

Exception occurred during Behavior execution:
java.lang.RuntimeException: Interp point outside
triangle
        at
com.sun.j3d.utils.picking.PickIntersection.getInterpWeights(PickIntersection.java:1467)
        at
com.sun.j3d.utils.picking.PickIntersection.getPointCoordinates(PickIntersection.java:1115)



___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran�ais !
Yahoo! Mail : http://fr.mail.yahoo.com

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