>
> My problem is that I need to be able to do this once the scene is live so
> the geometry is continuously being updated and displayed as a result of
> manipulating the muscles. I'm not sure how to do this - Do I need a method
> to get a pointer to the Shape3D node from the scene and then update the
> geometry component ? WIll this cause the displayed face to alter ? or do I
> need to detach the node, modify it and then reattach it ?.
I've found the best way is to just modify the geometry directly.
First, set the appropriate capability bit:
geometry.setCapability(GeometryArray.ALLOW_COORDINATE_WRITE);
then use
geometry.setCoordinate(s)
to do your updating. The new geometry will be used the next
time the scene is drawn. It's probably best to modify the geometry in a
Behavior with a WakeupOnXXX driving your modifications.
Jon Beniston.
=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/