Re: pfClone

New Message Reply Date view Thread view Subject view Author view

paul barham (barham++at++gnarly.cs.nps.navy.mil)
Thu, 19 May 1994 07:41:14 -0700 (PDT)


>
>
> After pfCloning a node, is there any good way of finding the node
> within the cloned graph that corresponds to a particular node in the
> original graph? (For instance a DCS that controls the articulation of
> a piece of a vehicle model.)
>
> Thanks,
> -Len Granowetter
> MaK Technologies
>
>

What version of Performer are you using? I found that in v1.0 and v1.1
that the pfFindNode does not work so I wrote my own. Basically, I had
pointers to the DCSs in the original. After I cloned, I backward
traversed (pfGetParent) the original scene graph until I reached the top level
node that was cloned (storing the path on a stack as I went up). I then
traversed downward using the names of the node stored on the stack one
level at a time.

If there is an easier way, I would like to know about it.

Hopefully, pfFindNode works in 1.2.

-- 

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ + Paul T. Barham Computer Specialist Computer Graphics Research + + + + Naval Postgraduate School barham++at++cs.nps.navy.mil + + Computer Science Department, Code CS Spanagel Hall Room 311A + + Monterey, Calfornia 93943 (408)656-2253 (2814 fax)+ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:50:17 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.