1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#include "raytracer/raytracer.h" #ifndef PROJECTS_RAY_BVH_H class bvh { public: bvh(const std::vector<KdShape> &shapes, int dimension); std::vector<KdShape> shapes; int dimension; BoundingRegion region{}; bvh *leftChild; bvh *rightChild; }; #define PROJECTS_RAY_BVH_H #endif //PROJECTS_RAY_BVH_H