VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
makVrv::DtTriangleIntersectionCache Class Reference

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

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

Public Member Functions

 DtTriangleIntersectionCache ()
 
virtual ~DtTriangleIntersectionCache ()
 
virtual void setCacheFromIntersectionResult (const DtIntersectorResult &result)
 
virtual bool intersectWithCache (const DtVector &point, const DtVector &dir, DtVector &hitPoint, DtVector &hitNormal)
 
- Public Member Functions inherited from makVrv::DtIntersectionCache
virtual ~DtIntersectionCache ()
 

Protected Member Functions

bool intersectRayTriangle (const DtVector &point, const DtVector &dir, DtVector &hitPoint)
 
- Protected Member Functions inherited from makVrv::DtIntersectionCache
 DtIntersectionCache ()
 

Protected Attributes

bool myCacheSet
 
DtVector myVert0
 
DtVector myVert1
 
DtVector myVert2
 
DtVector myNormal
 

Constructor & Destructor Documentation

makVrv::DtTriangleIntersectionCache::DtTriangleIntersectionCache ( )

CTOR.

virtual makVrv::DtTriangleIntersectionCache::~DtTriangleIntersectionCache ( )
virtual

DTOR.

Member Function Documentation

virtual void makVrv::DtTriangleIntersectionCache::setCacheFromIntersectionResult ( const DtIntersectorResult result)
virtual

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

bool makVrv::DtTriangleIntersectionCache::myCacheSet
protected
DtVector makVrv::DtTriangleIntersectionCache::myVert0
protected
DtVector makVrv::DtTriangleIntersectionCache::myVert1
protected
DtVector makVrv::DtTriangleIntersectionCache::myVert2
protected
DtVector makVrv::DtTriangleIntersectionCache::myNormal
protected

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

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)