diff --git a/RayTracer/shape/Shape.h b/RayTracer/shape/Shape.h index ff92bbf107d795f4f344403fdb8c88dc4009eb4d..15bb4565457f91a612bc2c2c4746536596a50381 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