Hi,

Hopefully, the terminology below is correct.

I am working on a simulation which uses Java3D for visualization.

I need to rapidly show or hide a given leaf node (one of thousands) based
on the state of the simulation.

This is my first Java3D app so I have hacked up hiding nodes by
replacing their geometry with a single point and restoring them by
replacing the original geometry (a simple Shape3D cube).

In order to reference the geometry, I store a reference toeach leaf node's
geometry in an array at the beginning of the simulation.

So, to turn on or off the node at (x,y,z), I tweak the geometry referenced
by the array[x][y][z].

As things are now, I can populate the simulation with 1000 nodes and
show/hide them once every 1/2 second.

1) What is the most efficient way to show/hide a node? Is it via
removing/adding the entire leaf node?

2) Is there a way to reference a given node in the tree at runtime without
storing a reference to each node in an external array and still be able to
address it easily?

Thanks,

:)
Jalon Zimmerman

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