Re: Find Node in DBASE?
Chris Mitchell (chris++at++scotch.physics.ucla.edu)
Mon, 10 Mar 1997 14:53:49 -0800 (PST)
> Is there an easy way to go about finding named nodes in a loaded model in the
> DBASE process? I have been using pfNode::find() to retreive pointers to DOF
> beads in the scene graph once the model has been loaded. Unfortunately, this
> code does not function properly (i.e. dies in find()) when run in the DBASE
> process. Of course, this probably makes sense to those of us who fully
> understand all of the caveats associated with multiprocessing; unfortunately, I
> seem to find myself trying to do a lot of things in forked processes that can't
> be done.
>
> I am going to try using the flight loader callbacks to get the pointers I want;
> however, this will probably take some pretty creative coding to get it to work
> the way I want it to. If anyone has a suggestion of an easier method, I would
> certainly appreciate it.
I'm sure there are more elegant solutions, but my workaround for this problem
was to first clone the scene graph in the dbase process and then do the
node->find() call on the cloned version. Then do updates and call buffer->merge().
Chris Mitchell
UCLA Physics Department
LAPD Plasma Lab
310-206-1772
chrism++at++ucla.edu
http://scotch.physics.ucla.edu/~chris
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2.0b2
on Mon Aug 10 1998 - 17:54:52 PDT