From: Uwe Wössner (woessner++at++hlrs.de)
Date: 06/23/2001 01:20:20
Hi Bryan,
try this:
pfMatrix xform;
pfVec3 hitPoint
hits[0][0]->query(PFQHIT_XFORM, &xform);
hitPoint.fullXformPt(result.point, xform);
(see man pfHit for details)
Uwe
Bryan Housel wrote:
> If you have a pfHit containing an intersection, you can get the local
> point of intersection by querying the pfHit with the PFQHIT_POINT
> flag... But what if I want the point in world coordinates?.. I know I
> can use PFQHIT_PATH to get the path to the object and, using the SCS and
> DCS nodes, determine where that point would be, but is this the best
> way?
>
> I looked at pfGeoSet.h, and the transformation to world coordinates is
> actually stored in the pfHit, but as protected data.. Shouldn't there be
> a way to get at it?
>
> Thanks,
> Bryan
>
>
>
--
\\\|/// *Rechenzentrum Universitaet Stuttgart*
_I_ ( o o ) *Visualisierung* _I_
(_++at++_)----oo0O--(_)--O0oo----------------------------------------(_++at++_)
| | Uwe Woessner woessner++at++rus.uni-stuttgart.de | |
| | .ooo0 http://www.hlrs.de/people/woessner/ | |
|_| ( ) Oooo. Phone: +49-711-685-5790 |_|
(_++at++_)---------\ (---( )---------------------------------------(_++at++_)
I \_) ) / I
(_/
This archive was generated by hypermail 2b29 : Sat Jun 23 2001 - 00:59:18 PDT