Re: pfTraverser xform depth

New Message Reply Date view Thread view Subject view Author view

Kowsik Guruswamy (kowsik++at++coryphaeus.com)
Sat, 15 Jun 1996 13:53:12 -0700


On Jun 15, 11:32am, Hansong Zhang wrote:
> Subject: pfTraverser xform depth
> Hello Performers,
>
> pfTraverser seems to have no member function that return the
> depth of the current matrix stack, or return the stack itself
> (which has the depth info). Are there other ways to get the
> xform depth? I want to check depth to see if xform is really
> necessary (i.e. if there're dcs etc on the path). Any
> suggestions are welcome. Thanks!

Quick hack...

const pfPath *path = trav->getPath();

for (register int i=0; i<path->getNum(); ++i)
{
  pfNode *node = (pfNode *) path->get(i);

  if (node->isOfType (pfDCS::getClassType()))
  {
    // Ha...found dcs...
  }
}

Hope that helps...I haven't tried it though...

K.

-- 
kowsik++at++coryphaeus.com     | pirts suiboM a hguorht neeb sah txet sihT
http://www.coryphaeus.com |
                          | You are not you, you are me! - arnie
work: (408)-395-4537 e201 |

======================================================================= List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer.html Submissions: info-performer++at++sgi.com Admin. requests: info-performer-request++at++sgi.com


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:53:00 PDT

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