Re: getting hpr form pfDCS

New Message Reply Date view Thread view Subject view Author view

Brian Furtaw (brian++at++sgi.com)
Thu, 20 Feb 1997 12:25:10 -0500


I looked at the function call I think you need to pass it a pointer to a struct
not an empty pointer. Try the changes below.

On Feb 17, 4:05pm, Yann Andenmatten wrote:
> Subject: getting hpr form pfDCS
> Hi,
>
> I'm trying to get the hpr values from a pfDCS. I've tried that :
>
> const pfMatrix* m = Coord->getMatPtr();
> if (m != NULL)
> {
> pfCoord* dst=NULL;

        pfCoord dst;
        m->getOrthoCoord(&dst);

> m->getOrthoCoord(dst);
> if (dst == NULL)
> printf("HPR...NULL\n");
> else
> printf(" HPR : %3.2f %3.2f %3.2f\n",
> dst->hpr[0], dst->hpr[1], dst->hpr[2]);
> }
> else
> printf("HPR...NULL2\n");
>
> but dst is NULL. What is wrong ? Is it the best way ?
>
> Thanks for help !
>
> Yann
>
> --
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> [][][] [][] [][][] [] > Ecole Polytechnique Federale de Lausanne
> [] [] [] [] [] > Swiss Federal Institute of Technology
> [][] [][][] [][] [] >
> [] [] [] [] > Yann Andenmatten, +41.22 693.58.50
> [][][] [] [] [][][] > yandenmat++at++di.epfl.ch
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> =======================================================================
> List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
>-- End of excerpt from Yann Andenmatten

Brian

-- 
o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o-o

Brian Furtaw (brian++at++sgi.com) VisSim Technical Consultant 12200-G Plum Orchard Drive Office:(301)572-3293 Fax: (301)872-3293 Silver Spring, Maryland 20904 OpenGL/ImageVision/OpenInventor/Performer ======================================================================= 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:54:41 PDT

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