Brad Colbert (bcolbert++at++coralsea.ait.nrl.navy.mil)
Thu, 6 Mar 1997 08:36:55 -0500
" The pfiPick has a complete C++ API following the conventions of general
IRIS Performer C++ API; C++ methods are declared in
/usr/include/Performer/pfui/pfiPick.h. "
Here is an example of what I've done...
pfInit ();
pfiInit ();
pfConfig ();
...
picker = new pfiPick;
picker->init ();
picker->addChan (theDisplay->getLeftChan());
picker->setupChans ();
picker->setHitFunc (dink, NULL);
picker->pPickMode = PFPK_M_NEAREST;
picker->pIsectMode = PFTRAV_IS_CULL_BACK;
while (!done)
{
cout << picker->getCount () << "\n" << flush;
cout << picker->getNode () << "\n" << flush;
...
}
I get 0 for the count, and null for the node, as I'm mouse clicking on
the geometry.
Thanks in advance,
Brad
--
-| How I want a break, Caribbean of course, after the heavy lectures involving
-| quantum mechanics. All of thy geometry, Herr Planck, is fairly hard...
-+-----------------------------------------------------------------------------
-| bcolbert++at++ait.nrl.navy.mil (202) 404-4708 ITD Virtual Reality Lab, NRL
=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:54:51 PDT