Scott,
From the trace you aren't using j3d1.3beta1. Can you update
your Java3d to j3d1.3beta1 ? If the bug still exist, please send
us a complete test program that can reproduce your finding. From
the trace, we do know what causes the exception but we also like to
know what leads to it.
thanks,
- Chien Yang
Java 3D Team.
> Delivered-To: [EMAIL PROTECTED]
> X-Sender: scott@mail
> Mime-Version: 1.0
> Date: Mon, 3 Dec 2001 10:22:00 -0700
> From: Scott Rutledge <[EMAIL PROTECTED]>
> Subject: [JAVA3D]
> To: [EMAIL PROTECTED]
>
> When getting the PickIntersecetions from a PickResult returned from using a
> PickBounds shape, the following exception is thrown:
>
> java.lang.NullPointerException
> at
>
com.sun.j3d.utils.picking.PickIntersection.setPointCoordinatesVW(PickIntersectio
n.java:367)
> at
com.sun.j3d.utils.picking.PickResult.intersectTri(PickResult.java:966)
> at
com.sun.j3d.utils.picking.PickResult.intersectTA(PickResult.java:1211)
> at com.sun.j3d.utils.picking.PickResult.intersect(PickResult.java:758)
> at
>
com.sun.j3d.utils.picking.PickResult.generateIntersections(PickResult.java:600)
> at
>
com.sun.j3d.utils.picking.PickResult.getClosestIntersection(PickResult.java:417)
> ...
>
> This happens with any type of bounds object (BoundingSphere, BoundingBox,
> or BoundingPolytope).
>
> The following code should demonstrate this behavior:
>
> public static void doPick(BranchGroup bg)
> {
> PickTool picker = new PickTool(bg);
> picker.setMode(PickTool.GEOMETRY_INTERSECT_INFO);
> PickBounds pickBounds = new PickBounds(new BoundingSphere(new
> Point3d(),0.25f));
> picker.setShape(pickBounds,new Point3d());
> PickResult result = picker.pickClosest();
> if (result != null)
> {
> PickIntersection intersection = result.getClosestIntersection(new
> Point3d()); // throws Exception here
> } // if
> } // doPick()
>
> The BranchGroup should, of course, have something in it to collide with.
>
> ===========================================================================
> 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".