|
Public Member Functions | |
AtlasGeomChunkTracer (AtlasGeomChunk *chunk) | |
bool | castRay (const Point3F &start, const Point3F &end, RayInfo *info) |
Perform a raycast against the quadtree. | |
Protected Member Functions | |
const AtlasGeomChunk::ColNode * | findSquare (const U32 &level, const Point2I &pos) const |
virtual const F32 | getSquareMin (const U32 &level, const Point2I &pos) const |
Children better implement these! They return min/max height bounds of the specified square. | |
virtual const F32 | getSquareMax (const U32 &level, const Point2I &pos) const |
virtual bool | castLeafRay (const Point2I pos, const Point3F &start, const Point3F &end, const F32 &startT, const F32 &endT, RayInfo *info) |
And this does checks on leaf nodes. | |
bool | castRayTriangle (Point3F orig, Point3F dir, Point3F vert0, Point3F vert1, Point3F vert2, F32 &t, Point2F &bary) |
Protected Attributes | |
AtlasGeomChunk * | mChunk |
Point3F | mRayDelta |
Point3F | mRayStart |
Point3F | mRayEnd |
Point3F | mScale |
Point3F | mOffset |
AtlasGeomChunkTracer::AtlasGeomChunkTracer | ( | AtlasGeomChunk * | chunk | ) | [inline] |
const AtlasGeomChunk::ColNode* AtlasGeomChunkTracer::findSquare | ( | const U32 & | level, | |
const Point2I & | pos | |||
) | const [inline, protected] |
virtual const F32 AtlasGeomChunkTracer::getSquareMin | ( | const U32 & | level, | |
const Point2I & | pos | |||
) | const [inline, protected, virtual] |
Children better implement these! They return min/max height bounds of the specified square.
Implements QuadTreeTracer.
virtual const F32 AtlasGeomChunkTracer::getSquareMax | ( | const U32 & | level, | |
const Point2I & | pos | |||
) | const [inline, protected, virtual] |
Implements QuadTreeTracer.
bool AtlasGeomChunkTracer::castRayTriangle | ( | Point3F | orig, | |
Point3F | dir, | |||
Point3F | vert0, | |||
Point3F | vert1, | |||
Point3F | vert2, | |||
F32 & | t, | |||
Point2F & | bary | |||
) | [protected] |
Perform a raycast against the quadtree.
This expects positions in FILE space, not CHUNK space.
Reimplemented from QuadTreeTracer.
AtlasGeomChunk* AtlasGeomChunkTracer::mChunk [protected] |
Point3F AtlasGeomChunkTracer::mRayDelta [protected] |
Point3F AtlasGeomChunkTracer::mRayStart [protected] |
Point3F AtlasGeomChunkTracer::mRayEnd [protected] |
Point3F AtlasGeomChunkTracer::mScale [protected] |
Point3F AtlasGeomChunkTracer::mOffset [protected] |