gKit2 light
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
BVHT< T > Struct Template Reference

bvh parametre par le type des primitives, cf triangle et instance... More...

Public Member Functions

int build (const std::vector< T > &_primitives)
 
Hit intersect (const Ray &ray, const float htmax) const
 
Hit intersect (const Ray &ray) const
 
int build (const std::vector< T > &_primitives)
 
Hit intersect (const Ray &ray, const float htmax) const
 
Hit intersect (const Ray &ray) const
 
int build (const std::vector< T > &_primitives)
 
Hit intersect (const Ray &ray, const float htmax) const
 
Hit intersect (const Ray &ray) const
 

Protected Member Functions

int build (const int begin, const int end)
 
BBox primitive_bounds (const int begin, const int end)
 
BBox centroid_bounds (const int begin, const int end)
 
void intersect (const int index, const Ray &ray, const Vector &invd, Hit &hit) const
 
int build (const int begin, const int end)
 
BBox primitive_bounds (const int begin, const int end)
 
BBox centroid_bounds (const int begin, const int end)
 
void intersect (const int index, const Ray &ray, const Vector &invd, Hit &hit) const
 
int build (const int begin, const int end)
 
BBox primitive_bounds (const int begin, const int end)
 
BBox centroid_bounds (const int begin, const int end)
 
void intersect (const int index, const Ray &ray, const Vector &invd, Hit &hit) const
 

Protected Attributes

std::vector< Nodenodes
 
std::vector< T > primitives
 
int root
 

Detailed Description

template<typename T>
struct BVHT< T >

bvh parametre par le type des primitives, cf triangle et instance...

Definition at line 127 of file tuto_bvh2.cpp.


The documentation for this struct was generated from the following files: