Re: [JAVA3D] Live Object

2002-07-24 Thread R CM
hi all, two way for do this : first: in your PickBehavior (you can find a exemple in the J3d Demo) pickcanvas = new PickCanvas(canvas,rootBG); pickcanvas.setMode( PickTool.GEOMETRY_INTERSECT_INFO) ; public void updateScene(int xpos, int ypos) { PickResult pickResult = null; pickCanvas.setShapeL

Re: [JAVA3D] Live Object

2002-07-24 Thread Philip Wong
In Mr. Selman's book, there is a section that mentions a way to index your node using the setUserData method. You can then remove the node using a Group's removeChild method. The only thing I don't understand is that setUserData takes ClassificationObject as an arguement. What exactly is a Classif

Re: [JAVA3D] Live Object

2002-07-24 Thread Georg Rehfeld
Re: Re: [JAVA3D] Live ObjectHi Jonathan and others on this thread, there were too many "might be ..."s and "is'nt it that ..."s in this thread, so, in short: RTFM. In long: please (re)read the excellent Java3D tutorial chapter 4.6 Picking; it explains it very well. Specifically look at Figure 4-

Re: [JAVA3D] Live Object

2002-07-24 Thread Andreas Jerke
PROTECTED]Subject: Re: [JAVA3D] Live Object The getParent() method only work on non-lived, non-compiled object. What I need is a way to retrieve the parent node of a lived-object. For example, I want to get the Transform3D associated to the TransformGroup of a picked object from my

Re: [JAVA3D] Live Object

2002-07-24 Thread Jason Taylor
Alas my IDE has died so I can't check this myself but what I do is setUserData all my nodes and then do searches from the root when live. As long as all the capibilities are set I'm sure you should be able to find the object you need. Of course I maybe talking complete cr*p! :) Jase.

Re: [JAVA3D] Live Object

2002-07-24 Thread Kevin Glass
Title: Re: Re: [JAVA3D] Live Object Arn't there some capabilities you can set on the shape to allow getting the parent on a live node? Kev Jonathan Smolarski wrote: 000201c23316$0fa90f30$420a@Active3DSt3"> The getParent() method only work on non-lived, non-compiled o

Re: [JAVA3D] Live Object

2002-07-24 Thread Jonathan Smolarski
Title: Re: Re: [JAVA3D] Live Object The getParent() method only work on non-lived, non-compiled object. What I need is a way to retrieve the parent node of a lived-object. For example, I want to get the Transform3D associated to the TransformGroup of a picked object from my sceneGraph

Re: [JAVA3D] Live Object

2002-07-24 Thread Andreas Jerke
16:20To: [EMAIL PROTECTED]Subject: [JAVA3D] Live Object Hi, Here's my question : how could I retrieve the TransformGroup parent of a live Shape3D object ? The fact is that I could get a Node object using getObject from SceneGraphPath, but I also need the TransformGroup assoc

[JAVA3D] Live Object

2002-07-23 Thread Jonathan Smolarski
Title: [JAVA3D]Live Object Hi, Here's my question : how could I retrieve the TransformGroup parent of a live Shape3D object ? The fact is that I could get a Node object using getObject from SceneGraphPath, but I also need the TransformGroup associated to my Shape3D. Thanks in ad