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.setShapeLocation( xpos, ypos ) ;
pickResult = pickCanvas.pickClosest();
currentShape = (Shape3D)pickResult.getNode(
PickResult.SHAPE3D ) ;
currentTG =
(TransformGroup)pickResult.getNode(PickResult.TRANSFORM_GROUP);
.....
}
second :
make a Class with a BG--TG--Shape
and set the userData of your shape with the reference
of your Class
Regards
Renaud Carassou
--- Jonathan Smolarski <[EMAIL PROTECTED]> a
�crit : > 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.
>
> Cordialement, Jonathan Smolarski.
> Mail : [EMAIL PROTECTED]
>
> I watch myself drown
> In the blue aura
> Of mine and I see
> The swans leave the pond
> ...And Oceans, The Black Vagabond and the Swan of
> Two Heads
>
>
___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran�ais !
Yahoo! Mail : http://fr.mail.yahoo.com
===========================================================================
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".