VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtTriangleIntersectionCache Class Reference

Realization of a DtIntersectionCache that caches a previous intersection with a triangle. More...

Inheritance diagram for makVrv::DtTriangleIntersectionCache:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtTriangleIntersectionCache ()
 CTOR.
virtual ~DtTriangleIntersectionCache ()
 DTOR.
virtual void setCacheFromIntersectionResult (const DtIntersectorResult &result)
 cache a triangle intersection result
virtual bool intersectWithCache (const DtVector &point, const DtVector &dir, DtVector &hitPoint, DtVector &hitNormal)
 determine if a ray from a point in the specified direction intersects the currently cached triangle (and return the hit point and normal)

Protected Member Functions

bool intersectRayTriangle (const DtVector &point, const DtVector &dir, DtVector &hitPoint)
 Perform the actual ray/triangle intersection test.

Protected Attributes

bool myCacheSet
DtVector myVert0
DtVector myVert1
DtVector myVert2
DtVector myNormal

Detailed Description

Realization of a DtIntersectionCache that caches a previous intersection with a triangle.


Constructor & Destructor Documentation

CTOR.

DTOR.


Member Function Documentation

cache a triangle intersection result

Implements makVrv::DtIntersectionCache.

virtual bool makVrv::DtTriangleIntersectionCache::intersectWithCache ( const DtVector point,
const DtVector dir,
DtVector hitPoint,
DtVector hitNormal 
) [virtual]

determine if a ray from a point in the specified direction intersects the currently cached triangle (and return the hit point and normal)

Implements makVrv::DtIntersectionCache.

bool makVrv::DtTriangleIntersectionCache::intersectRayTriangle ( const DtVector point,
const DtVector dir,
DtVector hitPoint 
) [protected]

Perform the actual ray/triangle intersection test.


Member Data Documentation


The documentation for this class was generated from the following file:

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)