Re: pfSegsIsectNode

New Message Reply Date view Thread view Subject view Author view

Jim Helman (jimh++at++surreal)
Wed, 25 May 94 23:48:38 -0700


There is a bug in the libpfutil code for emulating the old
1.0/1.1 intersection API (pfuSegsIsectNode). The result
is that end clipping is not enabled unless you specify a
discriminator callback which does so. The fix is to add
such a discriminator callback or change line 153 of
libpfutil/isect.c:

        old: retVal = PFTRAV_CONT;
        new: retVal = PFTRAV_CONT|PFTRAV_IS_CLIP_END;

However, that's not an issue here since you are using
pfSegsIsectNode directly (as all new code should be).
Perhaps you are looking at the request (i.e. the pfSegSet)
rather than at the data returned in the pfHit. The pfSeg
returned in the pfHit structure is is clipped, but the
pfSegSet itself is read-only so the request can be static
and reused.

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

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