Re: More questions on intersections

New Message Reply Date view Thread view Subject view Author view

Jim Helman (jimh++at++surreal)
Wed, 03 May 95 22:19:03 -0700


> pfQueryHit is segfaulting in the following discriminator callback:
>
> static pfGeoSet* gset;
> pfQueryHit( hit, PFQHIT_GSET, gset );
       
This should read:
  
     pfQueryHit( hit, PFQHIT_GSET, &gset );
           
> In addition, how do you determine how many intersections occurred
> along a single segment (assuming that the disc. callback turns off
> segment clipping)?

You'll need to keep a count of how many times the discriminator
was invoked for that segment.

In the future, there will be an option to have

pfSegsIsectNode(pfNode *node, pfSegSet *segSet, pfHit **hits[]);

return all hits along each segment. Hence the 2D hit array,
hits[iseg][jhit], in the API, although currently only jhit=0
is useful.

rgds,

-jim helman

jimh++at++surreal.asd.sgi.com
415/390-1151


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.