Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Java 3D / February 2004

Tip: Looking for answers? Try searching our database.

capabilityNotSet ???

Thread view: 
rolf - 10 Jul 2003 18:29 GMT
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.


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.