gKit2 light
|
instance pour le bvh, cf fonctions bounds() et intersect(). More...
Public Member Functions | |
Instance (const BBox &bounds, const Transform &model, BVH &bvh, const int id) | |
BBox | bounds () const |
Hit | intersect (const Ray &ray, const float htmax) const |
Instance (const BBox &bounds, const Transform &model, BVH *bvh, const int id) | |
BBox | bounds () const |
Hit | intersect (const Ray &ray, const float htmax) const |
Instance (const BBox &bounds, const Transform &model, BVH *bvh, const int id) | |
BBox | bounds () const |
Hit | intersect (const Ray &ray, const float htmax) const |
Public Attributes | |
Transform | object_transform |
BBox | world_bounds |
BVH * | object_bvh |
int | instance_id |
Protected Member Functions | |
BBox | transform (const BBox &bbox, const Transform &m) |
BBox | transform (const BBox &bbox, const Transform &m) |
BBox | transform (const BBox &bbox, const Transform &m) |
instance pour le bvh, cf fonctions bounds() et intersect().
Definition at line 302 of file tuto_bvh2.cpp.