Hi..
I've successfully created a scene with various shapes and setup some custom
interactions which are switched off or on via a toolbar.
I've extended the pick behaviour, which is now picking by Geometry, which
changes
the colour of the picked shape and all seems to run very well
However I have a small problem when I put shapes into the scene which I
don't want to
be pickable I get the following exception..
"CapabilityNotSetException: Shape3D: no capability to allow intersect"
I'm creating my NON pickable shapes as usual (ie. not setting any
capabilties explicitly)
and turned both the shape and its associated transform off using
SetPickable = false
I've managed to trace the exception down to the fact that the shapes I have
set as NON pickable
do not have the intersect capability set.
My scene looks like this..
BG
\
O InteractiveTG (transformgroup for rotating )
\
O ScaleTG (transformgroup for scaling)
/ \
/ O PickingTG (transformgroup for picking on)
/ \
Non O O Pickable
Pickable Objects
Objects (TGs and shapes)
(TGs and shapes)
Is this a bug or do I need to set the intersect capability for all shapes in
the scene even if they
are not pickable (This does seem a bit of a waste as I suspect it then
includes them in all pick
calculations.. so slowing the task).
If I don't need to set the intersect capability thenwhat is the solution to
avoid raising the exception.
Thanks again to all of you..
Andy Knight
Software Engineer
Syngenta
===========================================================================
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".