Tachio,
I believe the fastest way is to use the VrmlLoader interface to
aquire the VrmlScene object from which you can get a Hashtable
of DEF'd objects' j3d implementations keyed by the DEF name.
This method is
Hashtable getNamedObjects()
So provided you know the name of the Shape node you can look up its
Java 3D Shape3D implementation through this table.
--
Rick Goldberg
Sun Microsystems
>Date: Wed, 31 Mar 1999 19:34:23 -0500 (EST)
>From:
Terauchi <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: [java3d] Extracting Shape3D nodes from VRML?
>MIME-Version: 1.0
>
>Hi,
>
>What's the fastest way to extract the Shape3D nodes from a scene loaded by
>the VrmlLoader? Do I need to recursively search the tree nodes one by
>one? Thanx in advance.
>
>-Tachio
>
>
>=====================================================================
>To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
>Java 3D Home Page: http://java.sun.com/products/java-media/3D/
=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/