From 3f78cacdd93036dbd51bae77d5d8e5430a0bc75f Mon Sep 17 00:00:00 2001 From: Julian T Date: Sat, 6 Mar 2021 16:15:26 +0100 Subject: Several changes to bounding boxes For instance removed support for shapes without a bounding box, such as planes --- src/world/hittable.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/world/hittable.rs') diff --git a/src/world/hittable.rs b/src/world/hittable.rs index 720a019..c5a353e 100644 --- a/src/world/hittable.rs +++ b/src/world/hittable.rs @@ -27,7 +27,5 @@ pub trait Hittable: Sync + Send { fn intersect(&self, ray: &Ray) -> Option; /// Returns the axis alligned bounding box containing self - fn bounding_box(&self) -> Option { - None - } + fn bounding_box(&self) -> Bound3f; } -- cgit v1.2.3