rama++at++graphics.cis.upenn.edu
Mon, 26 Jun 1995 11:49:21 -0400
....
root = (pfGroup *)LoadFile(DatabaseFiles[i], NULL);
pfAddChild(ViewState->sceneGroup, root);
pfNodeTravFuncs(root,PFTRAV_CULL,PreNodeCull,NULL);
....
long
PreNodeCull(pfuTraverser *trav, void *data)
{
Here, I first want to check the type of node being traversed.
If it is of type geode, I want to do further calculations here
return PFTRAV_CONT;
}
The problem that I am facing is within the PreNodeCull function.
For starters, I am just checking the contents of
trav->node,
trav->mstack
and they are always 0x0.
Do I have to initialize the pfTraverser *trav
or am I missing something here?
Appreciate any help that I can get
Thanks
Rama
---------------------------------------------------------------------
Rama Bindiganavale
rama++at++graphics.cis.upenn.edu
http://www.cis.upenn.edu/~rama/home.html
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:51:37 PDT