Public Member Functions | |
| PrimitiveTestCache () | |
| PrimitiveTestCache (const std::vector< DrawableGeo > &objects) | |
| std::vector< unsigned int > & | operator[] (unsigned int i) |
| CollisionResult * | getCollisionResult () const |
| void | setCollisionResult (CollisionResult *res) |
| void | setCurrGeoId (int id) |
| int | getCurrGeoId () const |
| bool | isInit () const |
| void | init (const std::vector< DrawableGeo > &objects) |
PrimitiveTestCache testCache(drawables); for ( i = 0; i < numRays; i++) { Create and initialise a ray, and then call: sceneGrid.testRayIntersection( param1, param2, testCache); }
Note that no part of the PrimitiveTestCache needs to be reset before the next ray cast. The only requirement is that one PrimitiveTestCache needs to be created per thread.
| PrimitiveTestCache::PrimitiveTestCache | ( | ) |
| ©2009 The Foundry Visionmongers, Ltd. All Rights Reserved. |