More questions on intersections

New Message Reply Date view Thread view Subject view Author view

tidrowd++at++cc.tacom.army.mil
Wed, 3 May 1995 18:16:16 -0400


        Since this week's topic seems to be intersections, here's my question -
         
        pfQueryHit is segfaulting in the following discriminator callback:
         
        long projDiscFunc( pfHit* hit )
        {
            static pfGeoSet* gset;
            ...
         
            pfQueryHit( hit, PFQHIT_GSET, gset );
            ...
        }
         
         
        The thing I don't understand is why pfMQueryHit works (and apparently
        not pfQueryHit). The following code works fine:
         
        long HitQuery[]
        {
            PFQHIT_FLAGS,
            PFQHIT_GSET,
            PFQHIT_NODE
        };
         
        struct HitData
        {
            long flags;
            pfGeoSet* gset;
            pfNode* node;
        };
         
        long projDiscFunc( pfHit* hit )
        {
            static HitData hit_data;
            ...
         
            pfMQueryHit( hit, HitQuery, &hit_data );
            ...
        }
         
         
         
        Is there something obvious I'm missing, or is this a known bug???
         
        In addition, how do you determine how many intersections occurred
        along a single segment (assuming that the disc. callback turns off
        segment clipping)?
         
        Any enlightenment would be greatly appreciated!
         
         
        Don Tidrow
        Visual Simulation Developer
        US Army Tank-automotive and Armaments Command
         
        (imagine pithy saying here)

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:51:28 PDT

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