From 91226e6807435c6e0163865fea4cb45e22b14e16 Mon Sep 17 00:00:00 2001 From: Andre Susano Pinto Date: Wed, 1 Jul 2009 11:27:43 +0000 Subject: *Added rayobject_bvh A bvh structure to use on the raytracer --- source/blender/render/intern/include/rayobject.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source/blender/render/intern/include/rayobject.h') diff --git a/source/blender/render/intern/include/rayobject.h b/source/blender/render/intern/include/rayobject.h index d516c122bcc..3b77341f229 100644 --- a/source/blender/render/intern/include/rayobject.h +++ b/source/blender/render/intern/include/rayobject.h @@ -123,6 +123,12 @@ void RE_rayobject_merge_bb(RayObject *ob, float *min, float *max); */ int RE_rayobject_intersect(RayObject *r, Isect *i); +/* + * Returns distance ray must travel to hit the given bounding box + * BB should be in format [2][3] + */ +float RE_rayobject_bb_intersect(const Isect *i, const float *bb); + #define ISECT_EPSILON ((float)FLT_EPSILON) -- cgit v1.2.3