gKit2 light
Classes | Functions
tuto_englobant.cpp File Reference
#include <algorithm>
#include <vector>
#include <cfloat>
#include <chrono>
#include "vec.h"
#include "mat.h"
#include "color.h"
#include "image.h"
#include "image_io.h"
#include "image_hdr.h"
#include "orbiter.h"
#include "mesh.h"
#include "wavefront.h"

Go to the source code of this file.

Classes

struct  RayHit
 
struct  BBox
 boite englobante. More...
 
struct  Triangle
 triangle pour le bvh, cf fonction bounds() et intersect(). More...
 
struct  triangle_less1
 
struct  ray_less1
 

Functions

void direct (const std::vector< Triangle > &triangles, const int tbegin, const int tend, std::vector< RayHit > &rays, const int rbegin, const int rend)
 
void divide (const BBox &bounds, std::vector< Triangle > &triangles, const int tbegin, const int tend, std::vector< RayHit > &rays, const int rbegin, const int rend)
 
int main (const int argc, const char **argv)