Rob,
The code segment looks fine. Have you tried without compiling the
scene graph ? If the problem goes away, then it might be a j3d compile bug.
We would be happy to look at your test program, if you've one.
thanks,
- Chien Yang
Java 3D Team.
> X-Sent: 21 Feb 2001 13:35:37 GMT
> MIME-Version: 1.0
> Content-Transfer-Encoding: 7bit
> X-Priority: 3
> X-MSMail-Priority: Normal
> X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
> Date: Wed, 21 Feb 2001 13:35:16 -0000
> From: Rob Nugent <[EMAIL PROTECTED]>
> Subject: [JAVA3D] Exception with intersect
> To: [EMAIL PROTECTED]
>
> Hello all,
>
> With 1.2.1 beta 2 I'm sometimes getting exceptions like the following:
>
> at
> javax.media.j3d.Shape3DCompileRetained.intersect(Shape3DCompileRetained.java
> :453)
> at javax.media.j3d.Shape3D.intersect(Shape3D.java:456)
> at rob.ref.CameraBehaviour.permit(CameraBehaviour.java:282)
> at rob.ref.CameraBehaviour.processStimulus(CameraBehaviour.java:174)
> at
> javax.media.j3d.BehaviorScheduler.doWork(BehaviorScheduler.java:167)
> at javax.media.j3d.J3dThread.run(J3dThread.java:256)
>
> This is when making an intersect call like:
>
> PickSegment ps = new PickSegment(pickStart,pickEnd);
> SceneGraphPath sgp = l.pickClosest(ps);
> if (sgp != null)
> {
> Object o = sgp.getObject();
> Shape3D sh = (Shape3D)o;
> if (sh.intersect(sgp,ps))
> {
> rc = false;
> }
> }
>
> (l is my Locale)
>
> None of my parameters appear wrong - the SceneGraphPath and PickSegment
> are non-null, as is the Shape3D. The PickSegment has sensible start and end
> points.
>
> Anyone any ideas ?
>
> Puzzled.
> Rob
>
> Rob Nugent
> Development Manager
> Critical Path Southampton
> [EMAIL PROTECTED]
> http://www.cp.net
> 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".