SLProject
4.2.000
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
|
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.
Definition at line 21 of file SLAccelStruct.h.
|
inline |
Definition at line 24 of file SLAccelStruct.h.
|
inlinevirtual |
Definition at line 25 of file SLAccelStruct.h.
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.
Definition at line 34 of file SLAccelStruct.h.
|
protected |
max. point of AABB
Definition at line 36 of file SLAccelStruct.h.
|
protected |
min. point of AABB
Definition at line 35 of file SLAccelStruct.h.
|
protected |
avg. no. of triangles per voxel
Definition at line 41 of file SLAccelStruct.h.
|
protected |
NO. of voxels in accelerator.
Definition at line 38 of file SLAccelStruct.h.
|
protected |
NO. of empty voxels.
Definition at line 39 of file SLAccelStruct.h.
|
protected |
max. no. of triangles pre voxel
Definition at line 40 of file SLAccelStruct.h.