diff --git a/RayTracer/tools/AxisAlignedBoundingBox.cpp b/RayTracer/tools/AxisAlignedBoundingBox.cpp index e3361e6e0454a4883b8a55b5801aa27c50952d4a..1ef77b2af8c09d53e7200ba03dd9981e4700bc27 100644 --- a/RayTracer/tools/AxisAlignedBoundingBox.cpp +++ b/RayTracer/tools/AxisAlignedBoundingBox.cpp @@ -104,6 +104,7 @@ bool AxisAlignedBoundingBox::contains(const AxisAlignedBoundingBox& bb) const { Vec3(bb.maxBound().x(), bb.maxBound().y(), bb.maxBound().z())}; for (Vec3 v : vertices) if (!contains(v)) return false; + return true; } // This Method is not entirely correct. It only checks if the corners of this bb