From f0bff29063b062f54ffe856fef7f8885e2aae9de Mon Sep 17 00:00:00 2001 From: Yoel <s73017@beuth-hochschule.de> Date: Fri, 4 Sep 2020 15:02:21 +0200 Subject: [PATCH] Added virtual function bounds to give AABBs to shapes --- RayTracer/shape/Shape.h | 1 + 1 file changed, 1 insertion(+) diff --git a/RayTracer/shape/Shape.h b/RayTracer/shape/Shape.h index ff92bbf..15bb456 100644 --- a/RayTracer/shape/Shape.h +++ b/RayTracer/shape/Shape.h @@ -8,5 +8,6 @@ namespace shapes { class Shape { public: virtual std::shared_ptr<cam::Hit> intersect(const cam::Ray& r) const = 0; + virtual util::AxisAlignedBoundingBox bounds() const = 0; }; } // namespace shapes \ No newline at end of file -- GitLab