The first question has been discussed here recently, check the archives to see if 
there's some answers.

For the second, check the class of the node and cast it back to it's original, then 
just do the get/set appearance commands. Make sure you set the write capabilities of 
the appearance *BEFORE* you added it to the live scene originally.

Have fun,
              Jason.

>>> [EMAIL PROTECTED] 24/10/2002 16:21:38 >>>
Dear members,

I created my class from which I can pick objects by single mouse clicks.

1) Now how can I improve my code so that I could select many objects with
the windows created by mouse. Like I click a point on the canvas, open a
window and select the objects inside this window. Is this possible? What
should be the procedure?

2) Secondly, the pick selection in my code returns "Node". How can I access
the appearance of this selected object.


//MY CODE
ray = createPickRay(ModelClipTest.canvas, x, y);
SceneGraphPath sgp = ModelClipTest.IFCRoot.pickClosest(ray);
if (sgp!=null)
{
    Node object = sgp.getObject();
    System.out.println("Selected: " +object);
}


Kind regards,
Ali

===========================================================================
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".

==========================================================================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".

Reply via email to