Re: Intersection testing bug?

New Message Reply Date view Thread view Subject view Author view

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

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:52:09 PDT

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