Re: Defeating pfdCleanTree

New Message Reply Date view Thread view Subject view Author view

From: Allan Schaffer (allan++at++sgi.com)
Date: 02/10/2000 15:52:56


On Feb 8, 11:59am, Simon Mills wrote:
> I'm subclassing a pfGroup to add some extra functionality. It's attached
> to the scene graph with no children. However, when I load my whole
> database and it's optimized with pfdCleanTree it's being removed. How
> can I defeat pfdCleanTree from removing my specialized pfGroup (or
> copying it's callbacks to it's parent and effectively renaming it)?
>
> BTW, I first tried to subclass pfNode but this proved very difficult so
> I tried pfGroup with success. The down-side is that I get the above
> problem.

There are a few possibilities here -- pfdCleanTree will remove
pfGroup nodes (or derivatives) with 0 children; but what I'd really
suggest is taking a close look through the pfdCleanTree code itself
(shipped in /usr/share/Performer/src/lib/libpfdu/pfdCleanTree.c) to
see the cause of your undesired optimization. You could then make
modifications accordingly..

Allan

-- 
Allan Schaffer                                            allan++at++sgi.com
Silicon Graphics                           http://reality.sgi.com/allan


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Thu Feb 10 2000 - 15:53:01 PST

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