gKit2 light
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
BVH Struct Reference

Public Member Functions

int build (const BBox &_bounds, const std::vector< Triangle > &_triangles)
 
void intersect (RayHit &ray) const
 
void intersect_fast (RayHit &ray) const
 

Public Attributes

std::vector< Nodenodes
 
std::vector< Triangletriangles
 
int root
 
int direct_tests
 

Protected Member Functions

int build (const BBox &bounds, const int begin, const int end)
 
BBox triangle_bounds (const int begin, const int end)
 
void intersect (const int index, RayHit &ray, const Vector &invd) const
 
void intersect_fast (const int index, RayHit &ray, const Vector &invd) const
 

Detailed Description

Definition at line 180 of file tuto_bvh.cpp.


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