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".

Reply via email to