{laugh} Thanks Ralph...
Ralph Jones wrote:
>
> I think John actually meant this!!!:
>
> TransformGroup grandfather = new TransformGroup();
> TransformGroup father = new TransformGroup();
> TransformGroup son = new TransformGroup();
> Shape3D gfS3d = // your geometry and appearance
> Shape3D fS3d = // your geometry and appearance
> Shape3D sS3d = // your geometry and appearance
> grandfather.addChild(gfS3d);
> grandfather.addChild(father);
> father.addChild(fS3d);
> father.addChild(son);
> son.addChild(sS3d);
>
> Slap wrists John!!! You really should check these messages before clicking
> send! :p
>
> Sheng,
>
> It might be easier to think of it in terms of TransformGroups rather
> than BranchGroups (but you can always put each TG in it's own BG). So
> try something like:
> TransformGroup grandfather = new TransformGroup();
> TransformGroup father = new TransformGroup();
> TransformGroup son = new TransformGroup();
> Shape3D gfS3d = // your geometry and appearance
> Shape3D fS3d = // your geometry and appearance
> Shape3D sS3d = // your geometry and appearance
> grandfather.addChild(gfS3d);
> grandfather.addChild(father);
> father.addChild(fS3d);
> father.addChild(fS3d);
> son.addChild(sS3d);
>
> Now when you move the grandfather the father and son will move. When
> you move the father the son will move. When you move the son then only
> the son will move.
>
> - John Wright
> Starfire Research
>
> > Sheng Feng Qin wrote:
> >
> > Hi, I am a new comer in java 3D. I seek for helping in Java3D. I have
> > read Java3D tutorials. But, It seems that there is no example of
> > showing how to construct tree-structure in geometry. For example, a
> > father (a box) has a son (a cylinder, doesn't sound son!). i don't
> > know how to build a scence like
> >
> >
> >
> > Universer
> >
> > BG 1 BG2
> > BG3
> >
> > BG1-1
> > BG1-2 .... BG3-1 BG3-2
> > BG3-3.....
> > ...........................................
> >
> >
> > Here Bg1-1 and BG1-2 are children of BG1, How can I add a child
> > BranchGroup to a father BG node with their own local co-ordinate
> > system (Locale).
> >
> >
> >
> >
> > Shengfeng
>
> ===========================================================================
> 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".
===========================================================================
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".