Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndre Susano Pinto <andresusanopinto@gmail.com>2009-07-01 15:27:43 +0400
committerAndre Susano Pinto <andresusanopinto@gmail.com>2009-07-01 15:27:43 +0400
commit91226e6807435c6e0163865fea4cb45e22b14e16 (patch)
tree4ccd28dd08b8bc8fa22b22ed8f613be1d239a354 /source/blender/render/intern/include/rayobject.h
parent1deba75110aebda447beb79a8f07dae35f5bcc65 (diff)
*Added rayobject_bvh
A bvh structure to use on the raytracer
Diffstat (limited to 'source/blender/render/intern/include/rayobject.h')
-rw-r--r--source/blender/render/intern/include/rayobject.h6
1 files changed, 6 insertions, 0 deletions
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)