Intersections again...

New Message Reply Date view Thread view Subject view Author view

Didier Guzzoni (guzzoni++at++imtsg14.epfl.ch)
Wed, 13 Aug 1997 17:43:15 -0600


Hi friends,

One more question about intersections. After an intersection detected, I'm
trying to get some values back, especially the pfGeoSet and some userData
previously stored in it.

We are using the following method :

    uint query[] = { PFQHIT_FLAGS, PFQHIT_POINT, PFQHIT_NORM,
                     PFQHIT_GSET, PFQHIT_NAME, NULL };
    struct
    {
        int flags;
        pfVec3 point;
        pfVec3 normal;
        pfGeoSet isectGeoset;
        char name[50];
    } result;

and then :

  (*mHits[0])->mQuery(query, &result);

When I check with the dubbuger in (*mHits[0]), adresses of both the pfGeode and
pfGeoset are OK, but I get wrong values in the "result" variable.

Could someone help me ?

Thanks in advance,

  Didier

-- 
Didier Guzzoni 
VRAI group, Swiss Federal Institute of Technology
Phone : ++41 21 693 3823   e-mail : guzzoni++at++imtsg7.epfl.ch         
Fax   : ++41 21 693 6540 
=======================================================================
List Archives, FAQ, FTP:  http://www.sgi.com/Technology/Performer/
            Submissions:  info-performer++at++sgi.com
        Admin. requests:  info-performer-request++at++sgi.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:55:43 PDT

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