gKit2 light
|
bvh 2 niveaux et instances More...
#include <algorithm>
#include <vector>
#include <cfloat>
#include "vec.h"
#include "mat.h"
#include "color.h"
#include "image.h"
#include "image_io.h"
#include "orbiter.h"
#include "mesh.h"
#include "wavefront.h"
Go to the source code of this file.
Classes | |
struct | Ray |
rayon. More... | |
struct | Hit |
intersection avec un triangle. More... | |
struct | BBoxHit |
intersection avec une boite / un englobant. More... | |
struct | BBox |
boite englobante. More... | |
struct | Node |
construction de l'arbre / BVH. More... | |
struct | BVHT< T > |
bvh parametre par le type des primitives, cf triangle et instance... More... | |
struct | Triangle |
triangle pour le bvh, cf fonction bounds() et intersect(). More... | |
struct | Instance |
instance pour le bvh, cf fonctions bounds() et intersect(). More... | |
Typedefs | |
typedef BVHT< Triangle > | BVH |
typedef BVHT< Triangle > | BLAS |
typedef BVHT< Instance > | TLAS |
Functions | |
Node | make_node (const BBox &bounds, const int left, const int right) |
Node | make_leaf (const BBox &bounds, const int begin, const int end) |
int | main (int argc, char **argv) |
bvh 2 niveaux et instances
Definition in file tuto_bvh2.cpp.