Hi Lan,

Not sure if I understood your question well. The only thing I can say is
that
I am using SharedGroups extensively, placing single objects at all loactions
in the 3D space. And it works perfectly. The shared object can be a single
Shape3D or a combination of shapes and group objects. I always use the
following standard structure:

Shape3D or Group (whatever Branch, Transform, etc.) is a child of:

SharedGroup, which is pointed to by one or more than one:

Link node, which is a child of:

TransformGroup, which most of te time is a child of a BranchGroup (this
to allow detaching and re-attaching the whole structure in a live universe).

I can assure you, other TransformGroups don't change your original
SharedGroup. I mean TransformGroups above the various links. Of
course, TransformGroups included in the SharedGroup may change
the SharedGroup, but then it happens at all locations where the
SharedGroup is referenced.

Dirk

----- Original Message -----
From: "Lan Wu-Cavener" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 18, 2003 5:45 PM
Subject: [JAVA3D] question regarding SharedGroup


> Hi,
>
> I would like to have someone to confirm the correctness following
approach:
> I have a grid that was divided into four triangles. I rendered shrubs for
> this grid and use this as a stamp of under story of my terrain.
> gridStamp class has a SharedGroup SG[4]
>                                      |
>                          -------------------------------------
>                          |       |       |       |
>                        triangle     triangle   triangle   triangle
>                         SG1      SG2      SG3        SG4
> For each grid that I need to reference these triangles, I will add a
> TransformGroup node on top of the Link that points to the SG[i]. i.e.
> for any grid BranchGroup:       gridBG1
>                                      |
>                          ---------------------------------------
>                          |       |       |       |
>                             TG1      TG2      TG3      TG4
>                          |       |       |       |
>                           Link1     Link2    Link3    Link4
>                          |       |       |       |
>                        triangle     triangle   triangle   triangle
>                         SG1      SG2      SG3        SG4
>
> My question is that the TransformGroups applied to the one set of link
> objects should not change the SharedGroups themselves, correct? So when
the
> other grids use their own TransformGroups to link to the SharedGroups,
they
> are not affected by previous grids who referenced the SharedGroups.
> Thanks for you time!
> Lan
>
> Lan Wu-Cavener
> Dept. of Landscape Architecture
>
>
===========================================================================
> 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