My discFunc has dumped and it can't get up...

New Message Reply Date view Thread view Subject view Author view

Andy Mirkis (mandy++at++jupiter.UCSD.EDU)
Sat, 18 Feb 1995 16:41:30 -0800


I've implemented a discriminator function for my call to pfSegsIsectNode(),
which is core dumping after (during) the first statement (pfQueryHit). Is
there another source for information about discFuncs other than the
man pages? Is there something I'm missing? Thanks in advance for all info!

BTW, I'm using Performer 1.2. I'm including the begining of my discFunc.
I see the first debugging statement but not the second. The stack dump
also suggests it's dumping in pfQueryHit():

> 0 queryHit(_pfHit*,unsigned long,float*)(0x746c40, 0x14, 0x5ff993ac, 0x14,
0x400441) ["../../../lib/libpf/cNode.C":304, 0x5ffe0090]
   1 pfQueryHit(0x746c40, 0x14, 0x5ff993ac, 0x14, 0x0)
["../../../lib/libpf/cNode.C":331, 0x5ffe01f0]
   2 vrDiscriminate(hit = 0x746c40)
["/users/people/vital/proto1/vrDiscriminate.c":62, 0x41aabc]
   3 _pfGeodeDiscFunc(_pfHit*)(0x746c40, 0x14, 0x5ff993ac, 0x726a28, 0x0)
["../../../lib/libpf/pfGeode.C":378, 0x5ff994e0]

-Andy

---------------------------------------------------------------

long
vrDiscriminate(pfHit *hit)
{
        pfNode *geode;
        pfGroup *parent;
        VREvent *colEvent;
        ulong isectMask;
        ulong pIsectMask;
        int junctionFound;
        int atSceneNode;

        vrAssert(hit); /* This will terminate the program if hit == 0 */

        /*
        ** Get the geode for the geometry that we collided with.
        */

pfNotify(PFNFY_DEBUG,0, "Before pfQueryHit\n"); /* I see this */

        pfQueryHit(hit, PFQHIT_NODE, geode);

pfNotify(PFNFY_DEBUG,0, "After pfQueryHit\n"); /* I DON'T see this */

        /*
        ** Get the geode intersection traversal mask.
        */
        isectMask = pfGetNodeTravMask(geode, PFTRAV_ISECT);
                             .
                             .
                             .


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:50:58 PDT

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