From: Juergen Wind (juergen.wind++at++vertigo-systems.de)
Date: 04/13/2005 06:48:53
Denis Mohnhaupt wrote:
> hello,
>
> i have an application with self-generated terrain (vertex values are in
> world coordinates, no transformations) and want to place objects on it. so i
> have to do a ray intersection, where the user point's with the mouse, to
> achieve the exact point of the intersection.
>
> i found out, that i can achieve this by
> pfHit ** pfvPicker::getPickList();
>
> so i get the pointer to an array of hit objects
> the first (and actual only) entry is my nearest hit, and thus the thing i
> want. pfHit has a member "pfVec3 point;" but it is protected.
> there are no methods to read out it's value, so how can i access this
> information?
>
> thanks in advance
> Denis
>
Hi,
you have to use the quey() or mquery() method of pfHit. Don't use the
members directly. Have a look at "man pfHit".
Regards,
Jürgen
-----------------------------------------------------------------------
List Archives, Info, FAQ: http://www.sgi.com/software/performer/
Open Development Project: http://oss.sgi.com/projects/performer/
Submissions: info-performer++at++sgi.com
Admin. requests: info-performer-request++at++sgi.com
-----------------------------------------------------------------------
This archive was generated by hypermail 2b29 : Thu Apr 14 2005 - 21:30:40 PDT