#include <Bvh.h>
Public Member Functions | |
template<bool initial> | |
void | buildBvh (__m128 minimum, __m128 maximum, float *centroidMin, float *centroidMax, Triangle *faces, unsigned node, unsigned *indices, unsigned count, unsigned depth) |
Bvh (Scene &scene) | |
~Bvh (void) | |
void | prepareCuda (unsigned *&cells, uint4 *&triangles, cudaArray *&vertices, cudaArray *&normalsOut) |
Public Attributes | |
float3 | mini |
float3 | maxi |
int | vertexSum |
int | facesSum |
Vertex * | transformed |
Vertex * | normals |
Triangle * | triangles |
GrowArray< BvhCell > | cells |
GrowArray< Triangle > | cellTriangles |
TailPool< unsigned > * | cellPrimitives |
Bvh::Bvh | ( | Scene & | scene | ) |
Bvh::~Bvh | ( | void | ) |
void Bvh::buildBvh | ( | __m128 | minimum, | |
__m128 | maximum, | |||
float * | centroidMin, | |||
float * | centroidMax, | |||
Triangle * | faces, | |||
unsigned | node, | |||
unsigned * | indices, | |||
unsigned | count, | |||
unsigned | depth | |||
) | [inline] |
void Bvh::prepareCuda | ( | unsigned *& | cells, | |
uint4 *& | triangles, | |||
cudaArray *& | vertices, | |||
cudaArray *& | normalsOut | |||
) |
TailPool<unsigned>* Bvh::cellPrimitives |
int Bvh::facesSum |
float3 Bvh::maxi |
float3 Bvh::mini |
int Bvh::vertexSum |