Re: [info-performer] remove a geode

New Message Reply Date view Thread view Subject view Author view

From: Yair Kurzion (yair++at++polygon.engr.sgi.com)
Date: 06/04/2002 11:11:05


Hello Wei !

When you pfDelete a pfGeode, Performer runs pfUnrefDelete on all its geosets.
When you pfDelete a pfGeoSet, Performer runs pfUnrefDelete on all its
pfGeoState's (see man page for pfUnrefDelete).

In other words, if your pfGeode, pfGeoSet, pfGeoState don't have
extra references to them, calling pfDelete on a pfGeode deletes the entire
hierarchy under it.

Objects may have extra references if:
(1) You called pfRef on them.
(2) You added them as children of more than one parent. E.g. A pfGeode can be
    added as a child of multiple pfGroup nodes.

-yair

> I have a question on deleting the geode. When a
> pfGeode is deleted by pfDelete() , is the associated
> pfGeoState and pfGeoSet deleted as well?
> When I set the coordinates of pfGeoSet, I supply a
> pointer to the coordinate data. When this pfGeoSet is
> deleted, are the coordinate data that it refers to
> deleted automatically as well?
> Wei
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com
>

-- 
\_________  \_____  \__    \__  \_____        
\_________  \_____   \__   \__  \_____         Yair Kurzion
       \__     \__   \____\__      \__         yair++at++sgi.com
       \__          \__  \__                  (650) 933-6502
       \__          \__   \__          
       \__          \__    \__             


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Tue Jun 04 2002 - 11:11:10 PDT

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