More questions on intersections
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)
This archive was generated by hypermail 2.0b2
on Mon Aug 10 1998 - 17:51:28 PDT