SLProject 4.0.000
|
SLAccelStruct is an abstract base class for acceleration structures. More...
#include <SLAccelStruct.h>
Public Member Functions | |
SLAccelStruct (SLMesh *m) | |
virtual | ~SLAccelStruct () |
virtual void | build (SLVec3f minV, SLVec3f maxV)=0 |
virtual void | updateStats (SLNodeStats &stats)=0 |
virtual void | draw (SLSceneView *sv)=0 |
virtual SLbool | intersect (SLRay *ray, SLNode *node)=0 |
virtual void | disposeBuffers ()=0 |
Protected Attributes | |
SLMesh * | _m |
Pointer to the mesh. More... | |
SLVec3f | _minV |
min. point of AABB More... | |
SLVec3f | _maxV |
max. point of AABB More... | |
SLuint | _voxelCnt |
NO. of voxels in accelerator. More... | |
SLuint | _voxelCntEmpty |
NO. of empty voxels. More... | |
SLuint | _voxelMaxTria |
max. no. of triangles pre voxel More... | |
SLfloat | _voxelAvgTria |
avg. no. of triangles per voxel More... | |
SLAccelStruct is an abstract base class for acceleration structures.
The SLAccelStruct class serves as common class for the SLUniformGrid, SLCompactGrid and the SLKDTree class. All derived acceleration structures must be able to build, draw, intersect with a ray and update statistics. All structures work on meshes.
|
inline |
|
inlinevirtual |
Implemented in SLCompactGrid.
|
pure virtual |
Implemented in SLCompactGrid.
|
pure virtual |
Implemented in SLCompactGrid.
Implemented in SLCompactGrid.
|
pure virtual |
Implemented in SLCompactGrid.
|
protected |
Pointer to the mesh.
|
protected |
max. point of AABB
|
protected |
min. point of AABB
|
protected |
avg. no. of triangles per voxel
|
protected |
NO. of voxels in accelerator.
|
protected |
NO. of empty voxels.
|
protected |
max. no. of triangles pre voxel