The PickCanvas methods do not always return an intersection when picking on
either of the two sides in my example, and never return an intersection when
picking the roof, windows, hood, trunk etc.  I think this is a bug in one of
the picking utility classes that crops up when using Shape3Ds with multiple
geometries, and will file a bug report.  My example is attached.  I'd
appreciate any tips if I've done something wrong.
Daniel Dvorak

-----Original Message-----
From: Dvorak, Daniel J. [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 29, 2000 9:23 AM
To: [EMAIL PROTECTED]
Subject: Re: [JAVA3D] PickResult on Shape3D with multiple geometry


When I try to use PickResult.GetGeometryArrayIndex(), I get an exception
"GeometryArray: no capability to get vertex count".  I'm having trouble
finding where to set that capability.

Daniel Dvorak

-----Original Message-----
From: Doug Gehringer [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 21, 2000 1:53 PM
To: [EMAIL PROTECTED]
Subject: Re: [JAVA3D] PickResult on Shape3D with multiple geometry


> From: "Dvorak, Daniel J." <[EMAIL PROTECTED]>
>
> The doc for PickResult says "If the Shape3D being picked has multiple
> geometry arrays, the arrays are stored in the PickResult and referred to
by
> a geometry index. "  It sounds like there's some index that points to
which
> geometry of the Shape3D was picked.  How do I get this index?


This is stored as part of the PickIntersection, since it is specific to the
intersection.  Use PickIntersection.getGeometryArrayIndex().
PickIntersection.getGeometryArray() will return the array directly.

Doug Gehringer
Sun Microsystems

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

Small.java

Reply via email to