From 3d33885858e59402ec8c6807987a2fd01be01829 Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Wed, 19 Oct 2011 11:38:45 -0400 Subject: [PATCH] oh my god -- how many attempts will it take me to compute volumes correctly :) --- include/mitsuba/core/aabb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/mitsuba/core/aabb.h b/include/mitsuba/core/aabb.h index 043fdd5f..6a9ef24b 100644 --- a/include/mitsuba/core/aabb.h +++ b/include/mitsuba/core/aabb.h @@ -101,7 +101,7 @@ template struct TAABB { /// Calculate the n-dimensional volume of the bounding box inline value_type getVolume() const { vector_type diff = max-min; - value_type result = diff[1]; + value_type result = diff[0]; for (int i=1; i