Re: Intersection testing bug?
Kowsik Guruswamy (kowsik++at++buggy.coryphaeus.com)
Fri, 15 Dec 1995 09:02:32 -0800
On Dec 15, 9:45am, Morten Eriksen wrote:
> Subject: Intersection testing bug?
> Just wondering if there is a bug in the Performer intersection
> testing routine "pfChanPick()"? When I try to read the endpoint
> of the intersection segment with "pfQueryHit()", I get a point that
> is way off any of the picked object's polygons (as a matter of fact,
> it looks like the point returned is the point which the intersection
> line is supposed to cross in the object's bounding box). And yes;
> I did call "pfChanPick()" with the mode OR'ed with PFTRAV_IS_PRIM.
>
> If this is a bug, does any simple work-around exist?
>
> Morten
>-- End of excerpt from Morten Eriksen
Look at the man page for pfHit. One of the queries is PFQHIT_FLAGS which
basically tells you which queries are valid. If the flag has PFHIT_XFORM, then
you should get the matrix associated and the xform the point. The returned
point will be 'raw', meaning that the point returned will be the same 'geode'
withouht a DCS or SCS on top off it.
Hope that helps,
K.
--
kowsik++at++coryphaeus.com
This archive was generated by hypermail 2.0b2
on Mon Aug 10 1998 - 17:52:09 PDT