Hi all,
i got the following problem:
I load an object-file into a BrachGroup with just one group and one
Face inside.
and I planed to make this pickable !
I wanna use the PickTool.GEOMETRY Mode,
so I have to set "myBG.setCapability(Geometry.ALLOW_INTERSECT)"
but I am unable to locate where the correct place to set is....
I tried all possiblities
in the loading Class:
Scene s=loader.load(myFile);
BranchGroup bg=s.getSceneGroup().setCapability(Geometry.ALLOW_INTERSECT);
return bg;
or (!!)
in the calling class:
BranchGroup bg2= getLoaded();
bg2.setCapability(Geometry.ALLOW_INTERSECT)
then I gave this to my PickMouseBehavior-Class,
where
MypickCanvas.setMode(PickTool.GEOMETRY); is set
during running the programm and clicking at the "pickable" objekt the
CapabilityNotSetException:
"Shape3D; no capability to allow intersect"
occurs...
so my question is where to set the capability rightplaced?
...all other capabilitys work without Exception and do what they has
to do...
has anybody ideas, hints about how to manage this?
best regards
rolf
iwoj - 24 Feb 2004 04:54 GMT
I'm having the same problem. Did you find a solution to this? I am setting Geometry.ALLOW_INTERSECT at the Shape3D level, but I keep getting this error.