Hi Rob,

   Bug 4669026 is filed for this. There is a typo
in QuadArrayRetained intersect() method in case
of intersectSegment which pass the wrong argument.

Thanks.

- Kelvin
------------------
Java 3D Team
Sun Microsystems Inc.

>Date: Tue, 16 Apr 2002 15:03:54 +0100
>From: Rob Nugent <[EMAIL PROTECTED]>
>Subject: [JAVA3D] Exception with Shape3D.intersect
>To: [EMAIL PROTECTED]
>MIME-version: 1.0
>Content-transfer-encoding: 7bit
>X-Accept-Language: en-us, en
>Delivered-to: [EMAIL PROTECTED]
>User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.9)
Gecko/20020311
>
>Hi all,
>
>Having moved to J3D 1.3 Beta, I'm now getting an exception with
>Shape3D.intersect(SceneGraphPath path, PickShape pickShape) that I
>didn't seem to get before.
>
>I first do a Locale.pickClosest() with a pickSegment to locate
>a Shape3D and then do a Shape3D.intersect(SceneGraphPath path, PickShape
pickShape)
>with the returned Shape3D/SceneGraphPath and the same PickSegment.
>
>This second call NPEs, but apparently only when geometry concerned is a
QuadArray.
>My other geometries all seem to be passing this test OK, and I have the same
>capability bits set for each.
>
>Has anyone seen anything like this ? I think it's going to take some time
>to generate a standalone testcase, so I'd welcome any feedback before I
>embark on this.
>
>
>Thanks
>Rob (Sample exception follows)
>
>Exception occurred during Behavior execution:
>java.lang.NullPointerException
>         at
javax.media.j3d.GeometryArrayRetained.intersectSegment(GeometryArrayR
>etained.java:7361)
>         at
javax.media.j3d.QuadArrayRetained.intersect(QuadArrayRetained.java:73
>)
>         at javax.media.j3d.Shape3DRetained.intersect(Shape3DRetained.java:622)
>         at javax.media.j3d.Shape3D.intersect(Shape3D.java:579)
>         at javax.media.j3d.Shape3D.intersect(Shape3D.java:512)
>         at rob.ref.CameraBehaviour.permit(CameraBehaviour.java:287)
>         at rob.ref.CameraBehaviour.processStimulus(CameraBehaviour.java:174)
>         at
javax.media.j3d.BehaviorScheduler.doWork(BehaviorScheduler.java:174)
>         at javax.media.j3d.J3dThread.run(J3dThread.java:256)
>--
>
>
>Rob Nugent
>Sun Microsystems, Southampton, UK
>
>[EMAIL PROTECTED]
>
>Tel: +44 (0) 1489 585503
>Fax: +44 (0) 1489 881363
>
>===========================================================================
>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