As a final note/request, I guess I can understand why the Geometry class
defaults to having the capability turned off. But it does seem a bit
redundant to have to set the capability for everything in the scene
since PickTool throws an exception and dies if it finds something that
does not have the capability set. I figured that if a Geometry did not
have the right bits set, it would just ignore that Geometry. Instead,
it dies and you can't even get to the Geometry that you DID enable the
bit on.
I think this is a quick fix. PickTool should do a try/catch around
Shape3D.intersect(), and ignore the Shape3D on exception.
Any thoughts??
-Lee
> -----Original Message-----
> From: J. Lee Dixon [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, January 16, 2001 10:24 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [JAVA3D] PickTool GEOMETRY mode
>
>
> Okay, finally found it. It's in the Geometry class... the
> documentation
> was literal. Go figure.... ;)
>
> -Lee
>
> > -----Original Message-----
> > From: J. Lee Dixon [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, January 16, 2001 9:37 AM
> > To: [EMAIL PROTECTED]
> > Subject: [JAVA3D] PickTool GEOMETRY mode
> >
> >
> > The JavaDoc for PickTool says:
> > PickTool.GEOMETRY will pick using the geometry of the
> pickable nodes.
> > The PickResult returned will contain the SceneGraphPath to
> the picked
> > Node. Geometry nodes in the scene must have the ALLOW_INTERSECT
> > capability set for this mode.
> > Well, I've looked at Shape3D, and there is no such thing as
> > ALLOW_INTERSECT. Am I looking in the wrong place? I have used the
> > PickTool.setCapabilities() function in my loader which creates the
> > Shape3Ds, but I still get the exception:
> >
> > javax.media.j3d.CapabilityNotSetException: Shape3D: no
> capability to
> > allow intersect
> >
> > whenever I try to select something. Also, I am using the Cylinder
> > class. What flag should I set in the constructor to allow
> > interesections??
> >
> > I was using the default BOUNDS selection, but this does not
> work well
> > with selectable objects that are very close together.
> >
> > -Lee
> >
> >
> > J. Lee Dixon
> > SAIC - Celebration, FL
> > 407-566-1438
> > [EMAIL PROTECTED] AOL: LeeOrlando
> >
> > ==============================================================
> > =============
> > 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".
>
===========================================================================
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".