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

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
 
BVHobject_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)
 

Detailed Description

instance pour le bvh, cf fonctions bounds() et intersect().

Definition at line 302 of file tuto_bvh2.cpp.


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