Hi
Grouping all SHAPE nodes into one single SHAPE node might be a
bit difficult. Or do you want to group all SHAPES into one
Transform? That is possible. You would want to do the following:
1. Start with a TransformGroup (TG) holding all other TG and shapes
2. Do some sort of depth-first search on the tree, while multiplying
all Transforms on the way
3. For every shape found, put it into a new TG with the total transform
computed along the way
4. for every Group do a recursive function call to branch into that
subtree
Cheers, Thomas
"Leung, Sunny" schrieb:
>
> Hi all,
>
> Does anybody have experience in dealing with multiple VRML2.0 Shape nodes in
> Java3D?
>
> I have a VRML2.0 model with number of transform groups, and within each
> transform group there are a number of SHAPE nodes. Is there a way to group
> all the SHAPE nodes from different transform group into a single SHAPE node
> under one transform group.
>
> Please comments? Thanks.
>
> Best regards,
> Sunny Leung
>
> ===========================================================================
> 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".
--
-------------------------------------------------------------------
Thomas Auinger . [EMAIL PROTECTED] . Tel
Kranichsteiner Str. 93 . 64289 Darmstadt . www.postspiel.de
===========================================================================
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".