diff --git a/include/mitsuba/core/aabb.h b/include/mitsuba/core/aabb.h index 3e9db7f4..04fd075b 100644 --- a/include/mitsuba/core/aabb.h +++ b/include/mitsuba/core/aabb.h @@ -129,6 +129,32 @@ template struct TAABB { return (max + min) * (Scalar) 0.5; } + /// Return the position of one of the corners (in 0..2^dim-1) + inline PointType getCorner(int index) const { + PointType result; + for (int d=0; d