Sharon Clay (src++at++rose.asd.sgi.com)
Sat, 7 Dec 1996 12:27:50 -0800
->pfdLoadFile() returns a pfNode*, which is a higher level object than a
->pfGeoSet. If you want to get down to geoset level and change geoset attributes,
->you'll have to traverse the graph returned from pfdLoadFile(), all the way down
->to the geosets. Right now you are trying to call pfGSetHlight() with a pfGroup
->or a pfGeode as an argument. I suppose that performer doesn't like it.
->
Exactly. However, for exactly this purpose we have the pfuTravNodeHlight()
traversal that will traverse a subtree under the provided node and place
a provided hlight structure (or NULL to turn off highlighting) on all of the
pfGeoSets in the subtree. This is what perfly uses to highlight the scene
graph when you select pieces of it thorugh the hierarchy display (h-key).
As a final note, be sure to allocate your highlight structures from the
shared arena (pfGetSharedArena()) if you want to be able to run MP.
Good Luck!
src.
--
-----{-----{---++at++ -----{----{---++at++ -----{----{---++at++ -----{----{---++at++
Sharon Rose Clay (Fischler) - Silicon Graphics, Advanced Systems Dev.
src++at++sgi.com (415) 933 - 1002 FAX: (415) 965 - 2658 MS 8U-590
-----{-----{---++at++ -----{----{---++at++ -----{----{---++at++ -----{----{---++at++
=======================================================================
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:06 PDT