From: Vidya Vaidyanathan (vidya++at++cair.res.in)
Date: 07/05/2000 11:31:10
Hi,
Could anyone please tell me. when could such a problem occur on
detecting an intersection.
On querying the segset for intersections using
isect = root->isect(&seg1,(pfHit ***)hits); isect is returned as
non zero. Here seg1 is a pfSegSet and hits is a pfHit * [][].
On querying the point of intersection using PFQHIT_FLAGS,
transformation matrix is not valid.
Enclosing Code :
------------------------------------------------------------
isect = root->isect(&seg1,(pfHit ***)hits);
unsigned int hit_flags;
pfVec3 pnt,xpnt;
pfMatrix xmat;
if(isect)
{
(*hits[i])->query(PFQHIT_FLAGS, &hit_flags);
if((hit_flags & PFHIT_POINT ))
{
(*(hits[i]))->query(PFQHIT_POINT, pnt.vec);
(*(hits[i]))->query(PFQHIT_XFORM,(float*)xmat.mat);
xpnt.xformPt(pnt,xmat);
}
}
------------------------------------------------------------
Hope someone can help.
thanks in advance
regards,
Vidya
This archive was generated by hypermail 2b29 : Wed Jul 05 2000 - 01:05:27 PDT